xsd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XmlName    = "XMLSchema"
	XmlSpec    = "http://www.w3.org/2001/XMLSchema#"
	AnyURISpec = "anyURI"

	StringSpec = "string"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type XMLOntology

type XMLOntology struct {
	Package string
}

XMLOntology represents XML as an Ontology.

func (*XMLOntology) GetByName

func (o *XMLOntology) GetByName(name string) (rdf.RDFNode, error)

GetByName returns a bare node selected by name.

func (*XMLOntology) Load

func (o *XMLOntology) Load() ([]rdf.RDFNode, error)

Load the XML Ontology without an alias.

func (*XMLOntology) LoadAsAlias

func (o *XMLOntology) LoadAsAlias(s string) ([]rdf.RDFNode, error)

LoadAsAlias loads the XML Ontology with an alias.

func (*XMLOntology) LoadElement

func (o *XMLOntology) LoadElement(name string, payload map[string]interface{}) ([]rdf.RDFNode, error)

LoadElement does nothing.

func (*XMLOntology) LoadSpecificAsAlias

func (o *XMLOntology) LoadSpecificAsAlias(alias, name string) ([]rdf.RDFNode, error)

LoadSpecificAsAlias loads a specific node with an alias.

func (*XMLOntology) SpecURI

func (o *XMLOntology) SpecURI() string

SpecURI returns the XML URI.

Jump to

Keyboard shortcuts

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