Documentation ¶
Overview ¶
Package rdf provides primitives to work with RDF
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BindingsGroup ¶
BindingsGroup represents a group of bindings, a pair (variable, RDF term), as described in SPARQL 1.1 language reference.
SPARQL 1.1 reference : https://www.w3.org/TR/sparql11-query/
func NewBindingsGroup ¶
func NewBindingsGroup() BindingsGroup
NewBindingsGroup creates a new BindingsGroup.
func (BindingsGroup) Clone ¶
func (b BindingsGroup) Clone() BindingsGroup
Clone creates a duplicate of the group of bindings
func (BindingsGroup) Equals ¶
func (b BindingsGroup) Equals(other BindingsGroup) (bool, error)
Equals is a function that compare two group of bindings and return True if they are equals, False otherwise.
type BlankNode ¶
type BlankNode struct {
Value string
}
BlankNode represents a Blank Node in a RDF Graph.
RDF Blank Node reference : https://www.w3.org/TR/rdf11-concepts/#section-blank-nodes
func NewBlankNode ¶
NewBlankNode creates a new Blank Node.
type Literal ¶
Literal represents a Literal node in a RDF Graph.
RDF Literal reference : https://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal
func NewLangLiteral ¶
NewLangLiteral returns a new Literal with a language.
func NewTypedLiteral ¶
NewTypedLiteral returns a new Literal with a type.
type Node ¶
Node represents a generic node in a RDF Grapg
RDF Graph reference : https://www.w3.org/TR/rdf11-concepts/#section-rdf-graph
type Triple ¶
Triple represents a RDF Triple
RDF Triple reference : https://www.w3.org/TR/rdf11-concepts/#section-triples
func (Triple) Complete ¶
func (t Triple) Complete(group BindingsGroup) Triple
Complete use a group of bindings to complete the variable in the triple pattern and then return a new completed Triple pattern
type URI ¶
type URI struct {
Value string
}
URI represents a URI node in a RDF Graph
RDF URI reference : https://www.w3.org/TR/rdf11-concepts/#section-IRIs
type Variable ¶
type Variable struct {
Value string
}
Variable represents a SPARQL variable used when querying data in a RDF graph