nodes to represent graph structures, and also stores literal properties of
This makes it easy for Dgraph to ingest the RDF N-Quad format, where each line represents
Node, RelationName, Node, Labelor
Node, RelationName, ValueLiteral, Label
The first represents relations among entities (nodes in graph terminology) and the second represents the relationship of a Node to all it’s named attributes.
Often, the optional
Label is omitted, and therefore the N-Quad data is also referred to as “triples.” When it is included, it represents which
Namespace the data lives in within Dgraph.
Relationships, the subject and object are represented as 64-bit numeric UIDs and the relationship name itself links them:
For literal attributes of a
Node, the subject must still (and always) be a numeric UID, but the Object will be a primitive value. These can be thought of as