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