middleware.namespaces.spec_normalizer

SPARQL queries that normalize RDF vocabulary graphs into indexed term records.

Exceptions

VocabularyWarning

Base class for warnings related to vocabulary terms.

LabelWarning

Base class for warnings related to labels of vocabulary terms.

NoLabelWarning

Warning emitted when a vocabulary term has no label.

WrongLabelTypeWarning

Warning emitted when a vocabulary term has a label is not an xsd:string.

DefinitionWarning

Base class for warnings related to definitions of vocabulary terms.

NoDefinitionWarning

Warning emitted when a vocabulary term has no definition.

WrongDefinitionTypeWarning

Warning emitted when a vocabulary term has a definition is not an xsd:string.

Functions

build_vocabulary(...)

Collect classes, datatypes, individuals, and properties from graph.

Module Contents

middleware.namespaces.spec_normalizer.build_vocabulary(namespace: type[rdflib.Namespace] | type[rdflib.namespace.DefinedNamespace] | rdflib.Namespace | rdflib.namespace.DefinedNamespace | rdflib.URIRef | str, graph: rdflib.Graph) → middleware.namespaces.spec_index.RDFVocabulary

Collect classes, datatypes, individuals, and properties from graph.

exception middleware.namespaces.spec_normalizer.VocabularyWarning

Bases: UserWarning

Base class for warnings related to vocabulary terms.

exception middleware.namespaces.spec_normalizer.LabelWarning

Bases: VocabularyWarning

Base class for warnings related to labels of vocabulary terms.

exception middleware.namespaces.spec_normalizer.NoLabelWarning

Bases: LabelWarning

Warning emitted when a vocabulary term has no label.

exception middleware.namespaces.spec_normalizer.WrongLabelTypeWarning

Bases: LabelWarning

Warning emitted when a vocabulary term has a label is not an xsd:string.

exception middleware.namespaces.spec_normalizer.DefinitionWarning

Bases: VocabularyWarning

Base class for warnings related to definitions of vocabulary terms.

exception middleware.namespaces.spec_normalizer.NoDefinitionWarning

Bases: DefinitionWarning

Warning emitted when a vocabulary term has no definition.

exception middleware.namespaces.spec_normalizer.WrongDefinitionTypeWarning

Bases: DefinitionWarning

Warning emitted when a vocabulary term has a definition is not an xsd:string.