Class Schema

  • All Implemented Interfaces:
    Cloneable

    public class Schema
    extends ElementDefinitions<SchemaEntityDefinition,​SchemaEdgeDefinition>
    implements Cloneable

    Contains the full list of Element types to be stored in the graph.

    Each type of element should have the identifier type(s) listed and a map of property names and their corresponding types. Each type can either be a full java class name or a custom type. Using custom types then allows you to specify validation and aggregation for the element components.

    This class must be JSON serialisable. A schema should normally be written in JSON and then it will be automatically deserialised at runtime. An example of a JSON schemas can be found in the Example module.

    See Also:
    Schema.Builder, ElementDefinitions