Documentation
¶
Overview ¶
Package graph provides types and functions for generic knowledge representation, including items,messages, events, and statements about these in an RDF-like fashion.
Index ¶
- func CreateGraph() *graph
- type Collection
- type Graph
- type Identifier
- type Iterator
- type ROGraph
- type Step
- func (s *Step) AsNumber() (v.Number, bool)
- func (s *Step) AsStep() (v.Step, bool)
- func (s *Step) AsText() (v.Text, bool)
- func (s *Step) GoString() string
- func (sc Step) Id() Identifier
- func (s *Step) IsEmpty() bool
- func (s *Step) IsTerminal() bool
- func (s Step) Item() v.Step
- func (s Step) Property() v.Step
- func (s *Step) String() string
- func (s *Step) Type() v.TypeCode
- func (s Step) Value() v.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGraph ¶
func CreateGraph() *graph
Types ¶
type Collection ¶
type Identifier ¶
type Identifier = v.Identifier
type Iterator ¶
An Iterator allows iterating over query results, like this: `it := graph.Query(...).Iterator()
for it.Next() { s := it.Value(); ... }`
func SliceIterator ¶
type Step ¶
type Step struct {
// contains filtered or unexported fields
}
func (Step) Id ¶
func (sc Step) Id() Identifier
func (*Step) IsTerminal ¶
Click to show internal directories.
Click to hide internal directories.