Relationships
A relationship describes how entities in the domain relate. Relationships are listed under relationships, keyed by
relationship id.
relationships:
acted-in:
type: ACTED_IN
description: The person appeared in the movie as a cast member.
from:
node: person
to:
node: movie
min_count: 1
properties:
role:
type: STRING
Relationship
A relationship of the graph.
| Field | Type | Required | Description |
|---|---|---|---|
|
string |
Yes |
Type of the relationship. |
|
Yes |
The node the relationship starts at. |
|
|
Yes |
The node the relationship ends at. |
|
|
map of property |
No |
Properties of the relationship keyed by id. |
|
map of relationship constraint |
No |
Constraints on the relationship keyed by id. |
|
No |
Extensions for the relationship. |
|
|
string |
No |
Description of the relationship. |
|
list of strings |
No |
Alternative names for the relationship. |
|
string |
No |
Reference or URI of an external resource describing the relationship. |
Relationship end
One end of a relationship.
| Field | Type | Required | Description |
|---|---|---|---|
|
string |
No |
Id of the node at this end. |
|
string |
No |
Label of the node at this end. |
|
integer |
No |
Exact number of relationships per node at this end. Null when unconstrained. |
|
integer |
No |
Minimum number of relationships per node at this end. |
|
integer |
No |
Maximum number of relationships per node at this end. |
A relationship end sets either count, or min_count and max_count.