Rules
A valid model matches the JSON Schema and follows the rules on this page. The schema can’t express these rules, so a document can pass a JSON Schema validator and still be invalid. Most of them check that one part of the document refers correctly to another.
Tools may apply stricter rules for their own purposes. For example, a tool that imports data may require every property
to set its name.
| The libraries check these rules when they validate a model. |
References
-
The
nodeof a relationship’sfromandto, when set, must be the id of a node in the document. -
The
propertiesof a node constraint must be ids of the node’s properties. -
The
propertiesof a relationship constraint must be ids of the relationship’s properties. -
The
propertiesof a node index must be ids of the node’s properties. -
The
propertiesof a relationship index must be ids of the relationship’s properties. -
The
keyof a relationship mapping must contain only ids of the mapped relationship’s properties.
Constraints
-
An
EXISTSconstraint must cover exactly one property. -
A
PROPERTY_TYPEconstraint must cover exactly one property.