Dgraph terms
name
and
predicate value is the string Alice
. It becomes a node property.knows
with the
node representing Alice. The value of this predicate would be the UID
of the node representing Bob. In that case, knows
is a
relationship.<subject>> <predicate> <object>
. Dgraph supports the RDF format to
create, import and export data. Note that Dgraph also supports the JSON format.
<subject> <predicate> <object>
, they’re called triples. A triple represents a
single atomic statement about a node. The object in an RDF triple can be a
literal value or can point to another node. See
DQL RDF Syntax for more details.
name
and
predicate value is the string Alice
. The string becomes a node property.knows
with the
node representing Alice. The value of this predicate would be the UID
of the node representing Bob. In that case, knows
is a
relationship.uid
is a reserved property
holding the UID value for every node. UIDs can either be generated by Dgraph
when creating nodes, or can be set explicitly.