Versions in this module Expand all Collapse all v1 v1.1.0 May 25, 2020 Changes in this version + var XsdTime = "http://www.w3.org/2001/XMLSchema#time" v1.0.0 Mar 2, 2020 Changes in this version + var XsdBoolean = "http://www.w3.org/2001/XMLSchema#boolean" + var XsdByte = "http://www.w3.org/2001/XMLSchema#byte" + var XsdDate = "http://www.w3.org/2001/XMLSchema#date" + var XsdDateTime = "http://www.w3.org/2001/XMLSchema#dateTime" + var XsdDateTimeStamp = "http://www.w3.org/2001/XMLSchema#dateTimeStamp" + var XsdDay = "http://www.w3.org/2001/XMLSchema#gDay" + var XsdDecimal = "http://www.w3.org/2001/XMLSchema#decimal" + var XsdDouble = "http://www.w3.org/2001/XMLSchema#double" + var XsdDuration = "http://www.w3.org/2001/XMLSchema#Duration" + var XsdInteger = "http://www.w3.org/2001/XMLSchema#integer" + var XsdMonth = "http://www.w3.org/2001/XMLSchema#gMonth" + var XsdString = "http://www.w3.org/2001/XMLSchema#string" + var XsdYear = "http://www.w3.org/2001/XMLSchema#gYear" + var XsdYearMonth = "http://www.w3.org/2001/XMLSchema#gYearMonth" + func EncodeJSONLD(triple []Triple, output io.Writer) (err error) + func EncodeTTL(triple []Triple, output io.Writer) (err error) + type BlankNode struct + func NewBlankNode(name string) (blank BlankNode) + func (blank BlankNode) SerializeTTL(prefix map[string]string) (ret string) + func (blank BlankNode) String() (str string) + func (blank BlankNode) Type() (typ TermType) + type Edge struct + Object *Node + Pred Predicate + Subject *Node + type Graph struct + Edges []*Edge + Nodes map[string]*Node + func NewGraph(triple []Triple) (graph Graph, err error) + func (graph *Graph) Merge(gIn *Graph) (err error) + func (graph *Graph) String() (ret string) + func (graph *Graph) SubGraph(nodes ...*Node) (g Graph) + func (graph *Graph) ToGraphvizDot(output io.Writer, replace map[string]string, nodeShape map[string]string) (err error) + func (graph *Graph) ToTriples() (ret []Triple) + type IRI struct + func NewIRI(name string) (iri IRI) + func (iri IRI) SerializeTTL(prefix map[string]string) (ret string) + func (iri IRI) String() (str string) + func (iri IRI) Type() (typ TermType) + type Literal struct + func NewLiteral(val interface{}, typ string) (lit Literal, err error) + func (lit Literal) SerializeTTL(prefix map[string]string) (ret string) + func (lit Literal) String() (str string) + func (lit Literal) ToDuration() (d time.Duration, err error) + func (lit Literal) ToTime() (t time.Time, err error) + func (lit Literal) Type() (typ TermType) + type Node struct + Edge []*Edge + InverseEdge []*Edge + Term Term + type Object interface + type Predicate interface + type Subject interface + type Term interface + SerializeTTL func(prefix map[string]string) (str string) + String func() (str string) + Type func() (typ TermType) + type TermType int + const TermBlankNode + const TermIRI + const TermLiteral + type Triple struct + Obj Object + Pred Predicate + Sub Subject + func DecodeJSONLD(input io.Reader) (trip []Triple, err error) + func DecodeTTL(input io.Reader) (trip []Triple, err error) + func (trip Triple) SerializeTTL(prefix map[string]string) (ret string)