relationships
among nodes
to represent graph structures, and
also stores literal properties of nodes
.
This makes it easy for Dgraph to ingest the RDF
N-Quad format, where each line represents
Node, RelationName, Node, Label
orNode, RelationName, ValueLiteral, Label
Label
is omitted, and therefore the N-Quad data is also
referred to as “triples.” When it’s included, it represents which Tenant
or
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:
<subjectUID> <relationshipName> <objectUID>
.
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 <subjectUID> <relationshipName> <value>
, where value is not a 64-bit UID,
and is instead a: string, float, int, dateTime, geopoint, or boolean.