Versions in this module Expand all Collapse all v0 v0.1.0 Oct 25, 2023 Changes in this version + func EvaluateDocument(doc Document, cwd string) (nt.Document, error) + func ValidateDocument(doc Document) bool + type A struct + func (a A) Equal(v any) bool + func (a A) String() string + type Base string + func ParseBase(n *parser.Node) (*Base, error) + func (b Base) Equal(v any) bool + func (b Base) String() string + type BlankNode string + func ParseBlankNode(n *parser.Node) (*BlankNode, error) + func (b BlankNode) Equal(v any) bool + func (b BlankNode) String() string + type BlankNodePropertyList PredicateObjectList + func ParseBlankNodePropertyList(n *parser.Node) (BlankNodePropertyList, error) + func (b BlankNodePropertyList) Equal(v any) bool + func (b BlankNodePropertyList) String() string + type BooleanLiteral bool + func (bl BooleanLiteral) Equal(v any) bool + func (bl BooleanLiteral) String() string + type Collection []Object + func ParseCollection(n *parser.Node) (Collection, error) + func (c Collection) Equal(v any) bool + func (c Collection) String() string + type Context struct + Base string + BnIndex int + ElIndex int + Prefixes map[string]string + func NewContext() *Context + func (ctx *Context) EvaluateBlankNodePropertyList(pl BlankNodePropertyList) ([]nt.Object, []nt.Triple, error) + func (ctx *Context) EvaluateBooleanLiteral(o *BooleanLiteral) (*nt.Literal, error) + func (ctx *Context) EvaluateCollection(c Collection) (nt.Object, []nt.Triple, error) + func (ctx *Context) EvaluateIRI(iri *IRI) (*nt.IRIReference, error) + func (ctx *Context) EvaluateNumericLiteral(o *NumericLiteral) (*nt.Literal, error) + func (ctx *Context) EvaluateObject(o Object) ([]nt.Object, []nt.Triple, error) + func (ctx *Context) EvaluateObjectList(os ObjectList) ([]nt.Object, []nt.Triple, error) + func (ctx *Context) EvaluatePredicateObject(po PredicateObject) (nt.IRIReference, []nt.Object, []nt.Triple, error) + func (ctx *Context) EvaluateStringLiteral(o *StringLiteral) (*nt.Literal, error) + func (ctx *Context) EvaluateTriple(t *Triple) ([]nt.Triple, error) + func (ctx *Context) ValidateCollection(c Collection) bool + func (ctx *Context) ValidateIRI(i *IRI) bool + func (ctx *Context) ValidatePredicateObjectList(p PredicateObjectList) bool + func (ctx *Context) ValidateTriple(t *Triple) bool + type Directive interface + Equal func(v any) bool + func ParseDirective(n *parser.Node) (Directive, error) + type Document []Statement + func ParseDocument(doc string) (Document, error) + func (d Document) Equal(other Document) bool + func (d Document) Len() int + func (d Document) Less(i, j int) bool + func (d Document) String() string + func (d Document) SubjectMap() (map[string]*Triple, error) + func (d Document) Swap(i, j int) + type IRI struct + Prefixed bool + Value string + func ParseIRI(n *parser.Node) (*IRI, error) + func (i IRI) Equal(v any) bool + func (i IRI) String() string + type Literal interface + Equal func(v any) bool + func ParseBooleanLiteral(n *parser.Node) (Literal, error) + func ParseDecimal(n *parser.Node) (Literal, error) + func ParseDouble(n *parser.Node) (Literal, error) + func ParseInteger(n *parser.Node) (Literal, error) + func ParseLiteral(n *parser.Node) (Literal, error) + func ParseNumericLiteral(n *parser.Node) (Literal, error) + func ParseRDFLiteral(n *parser.Node) (Literal, error) + type NumericLiteral struct + Type NumericType + Value string + func (nl NumericLiteral) Equal(v any) bool + func (nl NumericLiteral) String() string + type NumericType int + const Decimal + const Double + const Integer + type Object interface + Equal func(v any) bool + func ParseObject(n *parser.Node) (Object, error) + type ObjectList Collection + func ParseObjectList(n *parser.Node) (ObjectList, error) + func (ol ObjectList) Equal(v any) bool + func (ol ObjectList) Len() int + func (ol ObjectList) Less(i, j int) bool + func (ol ObjectList) String() string + func (ol ObjectList) Swap(i, j int) + type PredicateObject struct + ObjectList ObjectList + Verb Verb + func ParsePredicateObject(n *parser.Node) (*PredicateObject, error) + func (po PredicateObject) Equal(v any) bool + func (po PredicateObject) String() string + type PredicateObjectList []PredicateObject + func ParsePredicateObjectList(n *parser.Node) (PredicateObjectList, error) + func (pol PredicateObjectList) Equal(v any) bool + func (pol PredicateObjectList) Len() int + func (pol PredicateObjectList) Less(i, j int) bool + func (pol PredicateObjectList) String() string + func (pol PredicateObjectList) Swap(i, j int) + type Prefix struct + IRI string + Name string + func ParsePrefix(n *parser.Node) (*Prefix, error) + func (p Prefix) Equal(v any) bool + func (p Prefix) Less(other any) bool + func (p Prefix) String() string + type Statement interface + Equal func(v any) bool + type StringLiteral struct + DatatypeIRI *IRI + LanguageTag string + Multiline bool + SingleQuote bool + Value string + func ParseStringLiteral(n *parser.Node) (*StringLiteral, error) + func (sl StringLiteral) Equal(v any) bool + func (sl StringLiteral) String() string + type Subject interface + Equal func(v any) bool + func ParseSubject(n *parser.Node) (Subject, error) + type Triple struct + BlankNodePropertyList BlankNodePropertyList + PredicateObjectList PredicateObjectList + Subject Subject + func ParseTripleBlankNodePropertyList(n *parser.Node) (*Triple, error) + func ParseTripleSubject(n *parser.Node) (*Triple, error) + func ParseTriples(n *parser.Node) (*Triple, error) + func (t Triple) Equal(v any) bool + func (t Triple) PredicateObjectMap() (map[string]ObjectList, error) + func (t Triple) String() string + type Verb interface + Equal func(v any) bool + func ParseVerb(n *parser.Node) (Verb, error)