Documentation ¶
Index ¶
- func BlankNodeObject(blankNode string) *rdfpb.Object
- func BlankNodeSubject(blankNode string) *rdfpb.Subject
- func BoolLiteral(b bool) *rdfpb.Literal
- func BoolObject(b bool) *rdfpb.Object
- func BytesLiteral(b []byte) *rdfpb.Literal
- func BytesObject(b []byte) *rdfpb.Object
- func Float64Literal(f float64) *rdfpb.Literal
- func Float64Object(f float64) *rdfpb.Object
- func IntLiteral(i int64) *rdfpb.Literal
- func IntObject(i int64) *rdfpb.Object
- func IriObject(iri string) *rdfpb.Object
- func IriSubject(iri string) *rdfpb.Subject
- func LiteralObject(literal *rdfpb.Literal) *rdfpb.Object
- func NewTriple(subject *rdfpb.Subject, predicate Predicate, object *rdfpb.Object) *rdfpb.Triple
- func StringLiteral(s string) *rdfpb.Literal
- func StringObject(s string) *rdfpb.Object
- type Graph
- type Predicate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlankNodeObject ¶
func BlankNodeSubject ¶
func BoolLiteral ¶
func BoolObject ¶
func BytesLiteral ¶
func BytesObject ¶
func Float64Literal ¶
func Float64Object ¶
func IntLiteral ¶
func IriSubject ¶
func StringLiteral ¶
func StringObject ¶
Types ¶
type Graph ¶
Graph represents a set of RDF Triples.
func (Graph) MarshalBinary ¶
MarshalBinary implements the encoding.BinaryMarshaler interface.
Binary format = repeat 8 bytes + n bytes 8 bytes = length of RDF Triple protobuf message n bytes = RDF Triple protobuf message
func (Graph) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface.
CAUTION!! Always prefer MarshalBinary over this. This relies in protojson which does not define a stable version.
func (*Graph) UnmarshalBinary ¶
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.
Binary format = repeat 8 bytes + n bytes 8 bytes = length of RDF Triple protobuf message n bytes = RDF Triple protobuf message
func (*Graph) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler interface.
CAUTION!! Always prefer UnmarshalBinary over this. This relies in protojson which does not define a stable version.