Documentation ¶
Index ¶
- Constants
- Variables
- func NewTripleFromStrings(sub *node.Node, pred string, obj string) (*triple.Triple, error)
- type Diff
- type Differ
- type Graph
- func (g *Graph) Add(triples ...*triple.Triple)
- func (g *Graph) AddGraph(graph *Graph)
- func (g *Graph) CountTriplesForSubjectAndPredicate(subject *node.Node, predicate *predicate.Predicate) (int, error)
- func (g *Graph) CountTriplesForSubjectAndPredicateObjectOfType(subject *node.Node, predicate *predicate.Predicate, objectType string) (int, error)
- func (g *Graph) HasTriple(t *triple.Triple) bool
- func (g *Graph) IsEmpty() bool
- func (g *Graph) ListAttachedFrom(n *node.Node, pred *predicate.Predicate) ([]*node.Node, error)
- func (g *Graph) ListAttachedTo(n *node.Node, pred *predicate.Predicate) ([]*node.Node, error)
- func (g *Graph) Marshal() ([]byte, error)
- func (g *Graph) MustMarshal() string
- func (g *Graph) NodesForType(t string) ([]*node.Node, error)
- func (g *Graph) TriplesForGivenPredicate(pred *predicate.Predicate) ([]*triple.Triple, error)
- func (g *Graph) TriplesForPredicateObject(predicate *predicate.Predicate, object *triple.Object) ([]*triple.Triple, error)
- func (g *Graph) TriplesForSubjectPredicate(subject *node.Node, predicate *predicate.Predicate) ([]*triple.Triple, error)
- func (g *Graph) TriplesForType(t string) ([]*triple.Triple, error)
- func (g *Graph) Unmarshal(data []byte) error
- func (g *Graph) VisitBottomUp(startNode *node.Node, each func(*Graph, *node.Node, int) error, ...) error
- func (g *Graph) VisitSiblings(start *node.Node, each func(*Graph, *node.Node, int) error, distances ...int) error
- func (g *Graph) VisitTopDown(root *node.Node, each func(*Graph, *node.Node, int) error, distances ...int) error
- type QueryType
Constants ¶
View Source
const ( UP direction = iota DOWN )
Variables ¶
View Source
var ( ExtraLiteral *literal.Literal MissingLiteral *literal.Literal )
Functions ¶
Types ¶
type Diff ¶
type Diff struct {
// contains filtered or unexported fields
}
func (*Diff) MergedGraph ¶
type Graph ¶
func NewGraphFromFile ¶
func NewGraphFromTriples ¶
func (*Graph) CountTriplesForSubjectAndPredicate ¶
func (*Graph) CountTriplesForSubjectAndPredicateObjectOfType ¶
func (*Graph) ListAttachedFrom ¶
func (*Graph) ListAttachedTo ¶
func (*Graph) MustMarshal ¶
func (*Graph) TriplesForGivenPredicate ¶
func (*Graph) TriplesForPredicateObject ¶
func (*Graph) TriplesForSubjectPredicate ¶
func (*Graph) VisitBottomUp ¶
func (*Graph) VisitSiblings ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.