Model
A model document is a YAML or JSON object. The JSON Schema at
https://neo4j.com/docs/ontology-graph-spec/1.1.0/schema.json is the normative definition of the format, and fields it
doesn’t define are not allowed.
| Field | Type | Required | Description |
|---|---|---|---|
|
string |
Yes |
Schema specification uri used. |
|
string |
Yes |
User-defined version of this model document, e.g. a revision number or label. |
|
string |
Yes |
Unique identifier of the model, typically a kebab-case version of the name, used for referencing. |
|
string |
No |
Human readable name for the model. |
|
string |
No |
Description of the model. |
|
map of node |
No |
Node definitions keyed by node id. |
|
map of relationship |
No |
Relationship definitions keyed by relationship id. |
|
No |
Extensions to the model: data source tables, mappings and external custom data. |
See Versioning for how schema and version relate.
Ids
Nodes, relationships, properties, constraints and indexes are keyed by ids, which other parts of the document use to refer to them. Ids are separate from the labels, types and names used in the graph, so a label can be renamed without breaking references to it. For the same reason, ids should rarely change.