Documentation ¶
Overview ¶
rdf package parses N-Quad statements based on http://www.w3.org/TR/n-quads/
Index ¶
Constants ¶
View Source
const ( AT_SUBJECT int = iota AT_PREDICATE AT_OBJECT AT_LABEL )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NQuad ¶
type NQuad struct { Subject string Predicate string ObjectId string ObjectValue []byte Label string }
func (NQuad) ToEdge ¶
func (nq NQuad) ToEdge() (result x.DirectedEdge, rerr error)
ToEdge is useful when you want to find the UID corresponding to XID for just one edge. ToEdgeUsing(map) is useful when you do this conversion in bulk, say over a network call. None of these methods generate a UID for an XID.
func (NQuad) ToEdgeUsing ¶
Click to show internal directories.
Click to hide internal directories.