package
Version:
v0.9.0
Opens a new window with list of versions in this module.
Published: Sep 3, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 25
Opens a new window with list of known importers.
Documentation
¶
Package node provides the abstraction to build and use BadWolf nodes.
ID represents a node ID.
NewID create a new ID from a plain string.
String converts a ID to its string form.
Node describes a node in a BadWolf graph.
func NewBlankNode() *Node
NewBlankNode creates a new blank node. The blank node ID is guaranteed to
be unique in BadWolf.
NewNode returns a new node constructed from a type and an ID.
NewNodeFromStrings returns a new node constructed from a type and ID
represented as plain strings.
Parse returns a node given a pretty printed representation of a Node or a BlankNode.
Covariant checks if the types of two nodes is covariant.
ID returns the ID of the node.
String returns a pretty printing representation of Node.
Type returns the type of the node.
UUID returns a global unique identifier for the given node. It is
implemented as the SHA1 UUID of the node values.
Type describes the type of the node.
NewType creates a new type from plain string.
Covariant checks for given two types A and B, A covariant B if B _is a_ A.
In other word, A _covariant_ B if B is a prefix of A.
String converts a type to its string form.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.