Versions in this module Expand all Collapse all v0 v0.1.0 Dec 24, 2017 Changes in this version + const JsonLd_1_0 + const JsonLd_1_1 + const JsonLd_1_1_Frame + const RDFFirst + const RDFLangString + const RDFList + const RDFNil + const RDFObject + const RDFPlainLiteral + const RDFRest + const RDFSchemaNS + const RDFSyntaxNS + const RDFType + const RDFXMLLiteral + const XSDAnyType + const XSDAnyURI + const XSDBoolean + const XSDDecimal + const XSDDouble + const XSDFloat + const XSDInteger + const XSDNS + const XSDString + var Positions = []string + func CloneDocument(value interface{}) interface + func CompareShortestLeast(a string, b string) bool + func CompareValues(v1 interface{}, v2 interface{}) bool + func DeepCompare(v1 interface{}, v2 interface{}, listOrderMatters bool) bool + func DocumentFromReader(r io.Reader) (interface{}, error) + func FilterNode(node map[string]interface{}, frame map[string]interface{}) (bool, error) + func FilterNodes(nodes map[string]interface{}, frame map[string]interface{}) (map[string]interface{}, error) + func GetCanonicalDouble(v float64) string + func GetFrameFlag(frame map[string]interface{}, name string, theDefault bool) bool + func GetKeys(m map[string]interface{}) []string + func GetKeysString(m map[string]string) []string + func GetOrderedKeys(m map[string]interface{}) []string + func IsAbsoluteIri(value string) bool + func IsBlankNode(node Node) bool + func IsBlankNodeValue(v interface{}) bool + func IsIRI(node Node) bool + func IsKeyword(key interface{}) bool + func IsLiteral(node Node) bool + func IsNode(v interface{}) bool + func IsNodeReference(v interface{}) bool + func IsReferencedOnce(node *NodeMapNode, referencedOnce map[string]*UsagesNode) bool + func IsRelativeIri(value string) bool + func IsValue(v interface{}) bool + func MergeValue(obj map[string]interface{}, key string, value interface{}) + func ParseLinkHeader(header string) map[string][]map[string]string + func PrintDocument(msg string, doc interface{}) + func RemoveBase(baseobj interface{}, iri string) string + func RemovePreserve(ctx *Context, input interface{}, opts *JsonLdOptions) (interface{}, error) + func Resolve(baseURI string, pathToResolve string) string + type BlankNode struct + Attribute string + func NewBlankNode(attribute string) *BlankNode + func (bn BlankNode) Equal(n Node) bool + func (bn BlankNode) GetValue() string + type CachingDocumentLoader struct + func NewCachingDocumentLoader(nextLoader DocumentLoader) *CachingDocumentLoader + func (cdl *CachingDocumentLoader) AddDocument(u string, doc interface{}) + func (cdl *CachingDocumentLoader) LoadDocument(u string) (*RemoteDocument, error) + func (cdl *CachingDocumentLoader) PreloadWithMapping(urlMap map[string]string) error + type Context struct + func CopyContext(ctx *Context) *Context + func NewContext(values map[string]interface{}, options *JsonLdOptions) *Context + func (c *Context) CompactIri(iri string, value interface{}, relativeToVocab bool, reverse bool) string + func (c *Context) CompactValue(activeProperty string, value map[string]interface{}) interface{} + func (c *Context) ExpandIri(value string, relative bool, vocab bool, context map[string]interface{}, ...) (string, error) + func (c *Context) ExpandValue(activeProperty string, value interface{}) (interface{}, error) + func (c *Context) GetContainer(property string) string + func (c *Context) GetInverse() map[string]interface{} + func (c *Context) GetLanguageMapping(property string) string + func (c *Context) GetPrefixes(onlyCommonPrefixes bool) map[string]string + func (c *Context) GetTermDefinition(key string) map[string]interface{} + func (c *Context) GetTypeMapping(property string) string + func (c *Context) IsReverseProperty(property string) bool + func (c *Context) Parse(localContext interface{}) (*Context, error) + func (c *Context) SelectTerm(iri string, containers []string, typeLanguage string, preferredValues []string) string + func (c *Context) Serialize() map[string]interface{} + type DefaultDocumentLoader struct + func NewDefaultDocumentLoader(httpClient *http.Client) *DefaultDocumentLoader + func (dl *DefaultDocumentLoader) LoadDocument(u string) (*RemoteDocument, error) + type DocumentLoader interface + LoadDocument func(u string) (*RemoteDocument, error) + type Embed int + const Always + const Last + const Link + const Never + type EmbedNode struct + type ErrorCode string + const CollidingKeywords + const CompactionToListOfLists + const ConflictingIndexes + const CyclicIRIMapping + const IOError + const InvalidBaseIRI + const InvalidContainerMapping + const InvalidDefaultLanguage + const InvalidIDValue + const InvalidIRIMapping + const InvalidIndexValue + const InvalidInput + const InvalidKeywordAlias + const InvalidLanguageMapValue + const InvalidLanguageMapping + const InvalidLanguageTaggedString + const InvalidLanguageTaggedValue + const InvalidLocalContext + const InvalidRemoteContext + const InvalidReverseProperty + const InvalidReversePropertyMap + const InvalidReversePropertyValue + const InvalidReverseValue + const InvalidSetOrListObject + const InvalidTermDefinition + const InvalidTypeMapping + const InvalidTypeValue + const InvalidTypedValue + const InvalidValueObject + const InvalidValueObjectValue + const InvalidVocabMapping + const KeywordRedefinition + const ListOfLists + const LoadingDocumentFailed + const LoadingRemoteContextFailed + const MultipleContextLinkHeaders + const NotImplemented + const ParseError + const RecursiveContextInclusion + const SyntaxError + const UnknownError + const UnknownFormat + type FramingContext struct + func NewFramingContext(opts *JsonLdOptions) *FramingContext + type IRI struct + Value string + func NewIRI(iri string) *IRI + func (iri IRI) Equal(n Node) bool + func (iri IRI) GetValue() string + type IdentifierIssuer struct + func NewIdentifierIssuer(prefix string) *IdentifierIssuer + func (ii *IdentifierIssuer) Clone() *IdentifierIssuer + func (ii *IdentifierIssuer) GetId(oldId string) string + func (ii *IdentifierIssuer) HasId(oldId string) bool + type JsonLdApi struct + func NewJsonLdApi() *JsonLdApi + func (api *JsonLdApi) Compact(activeCtx *Context, activeProperty string, element interface{}, ...) (interface{}, error) + func (api *JsonLdApi) Expand(activeCtx *Context, activeProperty string, element interface{}, ...) (interface{}, error) + func (api *JsonLdApi) Frame(input interface{}, frame []interface{}, opts *JsonLdOptions) ([]interface{}, error) + func (api *JsonLdApi) FromRDF(dataset *RDFDataset, opts *JsonLdOptions) ([]interface{}, error) + func (api *JsonLdApi) GenerateNodeMap(element interface{}, nodeMap map[string]interface{}, activeGraph string, ...) error + func (api *JsonLdApi) Normalize(dataset *RDFDataset, opts *JsonLdOptions) (interface{}, error) + func (api *JsonLdApi) ToRDF(input interface{}, opts *JsonLdOptions) (*RDFDataset, error) + type JsonLdError struct + Code ErrorCode + Details interface{} + func NewJsonLdError(code ErrorCode, details interface{}) *JsonLdError + func (e JsonLdError) Error() string + type JsonLdOptions struct + Algorithm string + Base string + CompactArrays bool + DocumentLoader DocumentLoader + Embed bool + ExpandContext interface{} + Explicit bool + Format string + InputFormat string + OmitDefault bool + OutputForm string + ProcessingMode string + ProduceGeneralizedRdf bool + UseNamespaces bool + UseNativeTypes bool + UseRdfType bool + func NewJsonLdOptions(base string) *JsonLdOptions + type JsonLdProcessor struct + func NewJsonLdProcessor() *JsonLdProcessor + func (jldp *JsonLdProcessor) Compact(input interface{}, context interface{}, opts *JsonLdOptions) (map[string]interface{}, error) + func (jldp *JsonLdProcessor) Expand(input interface{}, opts *JsonLdOptions) ([]interface{}, error) + func (jldp *JsonLdProcessor) Flatten(input interface{}, context interface{}, opts *JsonLdOptions) (interface{}, error) + func (jldp *JsonLdProcessor) Frame(input interface{}, frame interface{}, opts *JsonLdOptions) (map[string]interface{}, error) + func (jldp *JsonLdProcessor) FromRDF(dataset interface{}, opts *JsonLdOptions) (interface{}, error) + func (jldp *JsonLdProcessor) Normalize(input interface{}, opts *JsonLdOptions) (interface{}, error) + func (jldp *JsonLdProcessor) ToRDF(input interface{}, opts *JsonLdOptions) (interface{}, error) + type JsonLdUrl struct + Auth string + Authority string + Directory string + File string + Hash string + Host string + Hostname string + Href string + NormalizedPath string + Password string + Path string + Pathname string + Port string + Protocol string + Query string + Relative string + User string + func ParseURL(url string) *JsonLdUrl + type Literal struct + Datatype string + Language string + Value string + func NewLiteral(value string, datatype string, language string) *Literal + func (l Literal) Equal(n Node) bool + func (l Literal) GetValue() string + type NQuadRDFSerializer struct + func (s *NQuadRDFSerializer) Parse(input interface{}) (*RDFDataset, error) + func (s *NQuadRDFSerializer) Serialize(dataset *RDFDataset) (interface{}, error) + func (s *NQuadRDFSerializer) SerializeTo(w io.Writer, dataset *RDFDataset) error + type Node interface + Equal func(n Node) bool + GetValue func() string + type NodeMapNode struct + Values map[string]interface{} + func NewNodeMapNode(id string) *NodeMapNode + func (nmn *NodeMapNode) IsWellFormedListNode() bool + func (nmn *NodeMapNode) Serialize() map[string]interface{} + type NormalisationAlgorithm struct + func NewNormalisationAlgorithm(version string) *NormalisationAlgorithm + func (na *NormalisationAlgorithm) Main(dataset *RDFDataset, opts *JsonLdOptions) (interface{}, error) + type Permutator struct + func NewPermutator(list []string) *Permutator + func (p *Permutator) HasNext() bool + func (p *Permutator) Next() []string + type Quad struct + Graph Node + Object Node + Predicate Node + Subject Node + func NewQuad(subject Node, predicate Node, object Node, graph string) *Quad + func (q Quad) Equal(o *Quad) bool + type RDFDataset struct + Graphs map[string][]*Quad + func NewRDFDataset() *RDFDataset + func ParseNQuads(input string) (*RDFDataset, error) + func ParseNQuadsFrom(o interface{}) (*RDFDataset, error) + func (ds *RDFDataset) ClearNamespaces() + func (ds *RDFDataset) GetContext() map[string]interface{} + func (ds *RDFDataset) GetNamespace(ns string) string + func (ds *RDFDataset) GetNamespaces() map[string]string + func (ds *RDFDataset) GetQuads(graphName string) []*Quad + func (ds *RDFDataset) GraphToRDF(graphName string, graph map[string]interface{}, issuer *IdentifierIssuer, ...) + func (ds *RDFDataset) ParseContext(contextLike interface{}, opts *JsonLdOptions) error + func (ds *RDFDataset) SetNamespace(ns string, prefix string) + type RDFSerializer interface + Parse func(input interface{}) (*RDFDataset, error) + Serialize func(dataset *RDFDataset) (interface{}, error) + type RDFSerializerTo interface + SerializeTo func(w io.Writer, dataset *RDFDataset) error + type RemoteDocument struct + ContextURL string + Document interface{} + DocumentURL string + type ShortestLeast []string + func (s ShortestLeast) Len() int + func (s ShortestLeast) Less(i, j int) bool + func (s ShortestLeast) Swap(i, j int) + type TurtleRDFSerializer struct + func (s *TurtleRDFSerializer) Parse(input interface{}) (*RDFDataset, error) + func (s *TurtleRDFSerializer) Serialize(dataset *RDFDataset) (interface{}, error) + type UsagesNode struct + func NewUsagesNode(node *NodeMapNode, property string, value map[string]interface{}) *UsagesNode