triplemodel.vocab_registry
Vocabulary registry: prefixes, type URIs, and model classes.
- class triplemodel.vocab_registry.VocabularyRegistry(type_uri_to_class=<factory>, prefix_to_uri=<factory>)[source]
Bases:
objectMaps RDF type IRIs and namespace prefixes to
TripleModelclasses.- bind_vocab(graph)[source]
Bind all registered prefixes on
graph.- Return type:
- Parameters:
graph (RdfGraph)