middleware.namespaces.spec_normalizer ===================================== .. py:module:: middleware.namespaces.spec_normalizer .. autoapi-nested-parse:: SPARQL queries that normalize RDF vocabulary graphs into indexed term records. Exceptions ---------- .. autoapisummary:: middleware.namespaces.spec_normalizer.VocabularyWarning middleware.namespaces.spec_normalizer.LabelWarning middleware.namespaces.spec_normalizer.NoLabelWarning middleware.namespaces.spec_normalizer.WrongLabelTypeWarning middleware.namespaces.spec_normalizer.DefinitionWarning middleware.namespaces.spec_normalizer.NoDefinitionWarning middleware.namespaces.spec_normalizer.WrongDefinitionTypeWarning Functions --------- .. autoapisummary:: middleware.namespaces.spec_normalizer.build_vocabulary Module Contents --------------- .. py:function:: build_vocabulary(namespace: type[rdflib.Namespace] | type[rdflib.namespace.DefinedNamespace] | rdflib.Namespace | rdflib.namespace.DefinedNamespace | rdflib.URIRef | str, graph: rdflib.Graph) -> rdflib_reasoning.middleware.namespaces.spec_index.RDFVocabulary Collect classes, datatypes, individuals, and properties from ``graph``. .. py:exception:: VocabularyWarning Bases: :py:obj:`UserWarning` Base class for warnings related to vocabulary terms. .. py:exception:: LabelWarning Bases: :py:obj:`VocabularyWarning` Base class for warnings related to labels of vocabulary terms. .. py:exception:: NoLabelWarning Bases: :py:obj:`LabelWarning` Warning emitted when a vocabulary term has no label. .. py:exception:: WrongLabelTypeWarning Bases: :py:obj:`LabelWarning` Warning emitted when a vocabulary term has a label is not an xsd:string. .. py:exception:: DefinitionWarning Bases: :py:obj:`VocabularyWarning` Base class for warnings related to definitions of vocabulary terms. .. py:exception:: NoDefinitionWarning Bases: :py:obj:`DefinitionWarning` Warning emitted when a vocabulary term has no definition. .. py:exception:: WrongDefinitionTypeWarning Bases: :py:obj:`DefinitionWarning` Warning emitted when a vocabulary term has a definition is not an xsd:string.