Documentation
¶
Index ¶
- Constants
- func AddIfVar(uri turtle.URI, m map[string]int)
- func AppendString(strlist, _str interface{}) ([]string, error)
- func AppendVar(varlist, _var interface{}) ([]string, error)
- func ClearDebug()
- func NewStringList(_str interface{}) ([]string, error)
- func NewURI(value interface{}) (turtle.URI, error)
- func NewVarList(_var interface{}) ([]string, error)
- func ParseString(_var interface{}) (string, error)
- func SetDebug()
- func VarsFromGroup(group GraphGroup, m map[string]int)
- type FromClause
- type GraphGroup
- type PathPattern
- func AddPathMod(_pred, _mod interface{}) (PathPattern, error)
- func AppendPathSequence(_seq, _pred interface{}) ([]PathPattern, error)
- func NewPathPattern(_pred interface{}) (PathPattern, error)
- func NewPathSequence(_pred interface{}) ([]PathPattern, error)
- func PathFromVar(_var interface{}) ([]PathPattern, error)
- type Pattern
- type Query
- type SelectClause
- type Triple
- type WhereClause
Constants ¶
View Source
const ( PATTERN_SINGLE = iota + 1 PATTERN_ZERO_ONE PATTERN_ONE_PLUS PATTERN_ZERO_PLUS )
Variables ¶
This section is empty.
Functions ¶
func AppendString ¶
func ClearDebug ¶
func ClearDebug()
func NewStringList ¶
func NewVarList ¶
func ParseString ¶
func VarsFromGroup ¶
func VarsFromGroup(group GraphGroup, m map[string]int)
Types ¶
type FromClause ¶
func NewAllFromClause ¶
func NewAllFromClause() (FromClause, error)
func NewFromClause ¶
func NewFromClause(dblist interface{}) (FromClause, error)
func (FromClause) Empty ¶
func (from FromClause) Empty() bool
type GraphGroup ¶
type GraphGroup struct { Terms []Triple Unions []GraphGroup }
func AddTriplesToGraphGroup ¶
func AddTriplesToGraphGroup(left, triples interface{}) (GraphGroup, error)
func GraphGroupFromTriples ¶
func GraphGroupFromTriples(triples interface{}) (GraphGroup, error)
func GraphGroupUnion ¶
func GraphGroupUnion(left, right interface{}) (GraphGroup, error)
func MergeGraphGroups ¶
func MergeGraphGroups(left, right interface{}) (GraphGroup, error)
func (GraphGroup) Expand ¶
func (grp GraphGroup) Expand() [][]Triple
func (GraphGroup) Iter ¶
func (grp GraphGroup) Iter(f func(t turtle.URI))
func (*GraphGroup) IterTriples ¶
func (grp *GraphGroup) IterTriples(f func(t Triple) Triple)
type PathPattern ¶
func AddPathMod ¶
func AddPathMod(_pred, _mod interface{}) (PathPattern, error)
func AppendPathSequence ¶
func AppendPathSequence(_seq, _pred interface{}) ([]PathPattern, error)
func NewPathPattern ¶
func NewPathPattern(_pred interface{}) (PathPattern, error)
func NewPathSequence ¶
func NewPathSequence(_pred interface{}) ([]PathPattern, error)
func PathFromVar ¶
func PathFromVar(_var interface{}) ([]PathPattern, error)
func (PathPattern) String ¶
func (pp PathPattern) String() string
type Query ¶
type Query struct { Select SelectClause From FromClause Count bool Where WhereClause Variables []string }
func NewQueryMulti ¶
func (Query) CopyWithNewTerms ¶
func (Query) IterTriples ¶
func (*Query) PopulateVars ¶
func (q *Query) PopulateVars()
type SelectClause ¶
func NewAllSelectClause ¶
func NewAllSelectClause() (SelectClause, error)
func NewSelectClause ¶
func NewSelectClause(varlist interface{}) (SelectClause, error)
type Triple ¶
type Triple struct { Subject turtle.URI Predicates []PathPattern Object turtle.URI }
func AppendTripleBlock ¶
func NewTripleBlock ¶
type WhereClause ¶
type WhereClause struct { Terms []Triple GraphGroup *GraphGroup }
func NewWhereClause ¶
func NewWhereClause(triples interface{}) (WhereClause, error)
func NewWhereClauseGraphGroup ¶
func NewWhereClauseGraphGroup(group interface{}) (WhereClause, error)
func NewWhereClauseWithGraphGroup ¶
func NewWhereClauseWithGraphGroup(triples, group interface{}) (WhereClause, error)
Click to show internal directories.
Click to hide internal directories.