Documentation
¶
Overview ¶
Package triple implements and allows to manipulate BadWolf triples.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object is the box that either contains a literal, a predicate or a node.
func NewLiteralObject ¶
NewLiteralObject returns a new object that boxes a literal.
func NewNodeObject ¶
NewNodeObject returns a new object that boxes a node.
func NewPredicateObject ¶
NewPredicateObject returns a new object that boxes a predicate.
func ParseObject ¶
ParseObject attempts to parse an object.
type Triple ¶
type Triple struct {
// contains filtered or unexported fields
}
Triple describes a <subject predicate object> used by BadWolf.
func Parse ¶
Parse process the provided text and tries to create a triple. It assumes that the provided text contains only one triple.
func (*Triple) Reify ¶
Reify given the current triple it returns the original triple and the newly reified ones. It also returns the newly created blank node.
Directories
¶
Path | Synopsis |
---|---|
Package literal provides an abstraction to manipulate BadWolf literals.
|
Package literal provides an abstraction to manipulate BadWolf literals. |
Package node provides the abstraction to build and use BadWolf nodes.
|
Package node provides the abstraction to build and use BadWolf nodes. |
Package predicate allows to build and manipulate BadWolf predicates.
|
Package predicate allows to build and manipulate BadWolf predicates. |