schema

package
v0.0.0-...-4564de9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	Context jsonld.Context `json:"@context"`
	Graph   Graph          `json:"@graph"`
}

func NewDocument

func NewDocument() *Document

func (*Document) UnmarshalJSON

func (doc *Document) UnmarshalJSON(bytes []byte) error

type DocumentError

type DocumentError struct {
	Context string
	// contains filtered or unexported fields
}

func (DocumentError) Error

func (e DocumentError) Error() string

type Graph

type Graph []Node

func (*Graph) UnmarshalJSON

func (graph *Graph) UnmarshalJSON(bytes []byte) error

type GraphError

type GraphError struct {
	Context string
	// contains filtered or unexported fields
}

func (GraphError) Error

func (e GraphError) Error() string

type Node

type Node struct {
	rdfs.Node

	SameAs         jsonld.NodeReference  `json:"schema:sameAs"`
	Source         jsonld.NodeReferences `json:"schema:source"`
	SupersededBy   jsonld.NodeReference  `json:"schema:supersededBy"`
	IsPartOf       jsonld.NodeReference  `json:"schema:isPartOf"`
	InverseOf      jsonld.NodeReference  `json:"schema:inverseOf"`
	Contributor    jsonld.NodeReferences `json:"schema:contributor"`
	DomainIncludes jsonld.NodeReferences `json:"domainIncludes"`
	RangeIncludes  jsonld.NodeReferences `json:"rangeIncludes"`
}

func (*Node) UnmarshalJSON

func (node *Node) UnmarshalJSON(bytes []byte) error

func (*Node) UnmarshalValue

func (node *Node) UnmarshalValue(key string, bytes []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL