middleware.namespaces.spec_normalizer¶
SPARQL queries that normalize RDF vocabulary graphs into indexed term records.
Exceptions¶
Base class for warnings related to vocabulary terms. |
|
Base class for warnings related to labels of vocabulary terms. |
|
Warning emitted when a vocabulary term has no label. |
|
Warning emitted when a vocabulary term has a label is not an xsd:string. |
|
Base class for warnings related to definitions of vocabulary terms. |
|
Warning emitted when a vocabulary term has no definition. |
|
Warning emitted when a vocabulary term has a definition is not an xsd:string. |
Functions¶
|
Collect classes, datatypes, individuals, and properties from |
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:
UserWarningBase class for warnings related to vocabulary terms.
- exception middleware.namespaces.spec_normalizer.LabelWarning¶
Bases:
VocabularyWarningBase class for warnings related to labels of vocabulary terms.
- exception middleware.namespaces.spec_normalizer.NoLabelWarning¶
Bases:
LabelWarningWarning emitted when a vocabulary term has no label.
- exception middleware.namespaces.spec_normalizer.WrongLabelTypeWarning¶
Bases:
LabelWarningWarning emitted when a vocabulary term has a label is not an xsd:string.
- exception middleware.namespaces.spec_normalizer.DefinitionWarning¶
Bases:
VocabularyWarningBase class for warnings related to definitions of vocabulary terms.
- exception middleware.namespaces.spec_normalizer.NoDefinitionWarning¶
Bases:
DefinitionWarningWarning emitted when a vocabulary term has no definition.
- exception middleware.namespaces.spec_normalizer.WrongDefinitionTypeWarning¶
Bases:
DefinitionWarningWarning emitted when a vocabulary term has a definition is not an xsd:string.