PrefixMapping¶
- class pyhornedowl.PrefixMapping¶
Bases:
object- add_default_prefix_names() None¶
Adds the prefix for rdf, rdfs, xsd, and owl
- add_prefix(iriprefix: str, mappedid: str) None¶
Adds the prefix
iriprefix.
- expand_curie(curie: str) str¶
Expands a curie. Throws a ValueError if the prefix is invalid or unknown
- remove_prefix(prefix: str) None¶
Remove a prefix from the mapping.
- shrink_iri(iri: str) str¶
Shrinks an absolute IRI to a CURIE. Throws a ValueError on failure