Documentation ¶
Index ¶
- type SchemaOntology
- func (o *SchemaOntology) GetByName(n string) (rdf.RDFNode, error)
- func (o *SchemaOntology) Load() ([]rdf.RDFNode, error)
- func (o *SchemaOntology) LoadAsAlias(s string) ([]rdf.RDFNode, error)
- func (o *SchemaOntology) LoadElement(name string, payload map[string]interface{}) ([]rdf.RDFNode, error)
- func (o *SchemaOntology) LoadSpecificAsAlias(alias, n string) ([]rdf.RDFNode, error)
- func (o *SchemaOntology) SpecURI() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SchemaOntology ¶
type SchemaOntology struct{}
SchemaOntology represents Ontologies from schema.org.
func (*SchemaOntology) GetByName ¶
func (o *SchemaOntology) GetByName(n string) (rdf.RDFNode, error)
GetByName returns a bare node by name.
func (*SchemaOntology) Load ¶
func (o *SchemaOntology) Load() ([]rdf.RDFNode, error)
Load without an alias.
func (*SchemaOntology) LoadAsAlias ¶
func (o *SchemaOntology) LoadAsAlias(s string) ([]rdf.RDFNode, error)
LoadAsAlias loads with an alias.
func (*SchemaOntology) LoadElement ¶
func (o *SchemaOntology) LoadElement(name string, payload map[string]interface{}) ([]rdf.RDFNode, error)
LoadElement does nothing.
func (*SchemaOntology) LoadSpecificAsAlias ¶
func (o *SchemaOntology) LoadSpecificAsAlias(alias, n string) ([]rdf.RDFNode, error)
LoadSpecificAsAlias loads a specific node and aliases it.
func (*SchemaOntology) SpecURI ¶
func (o *SchemaOntology) SpecURI() string
SpecURI returns the Schema.org URI.
Click to show internal directories.
Click to hide internal directories.