schema

package
v1.8.0-gts Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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