IRI¶
- class pyhornedowl.model.IRI(value: str)¶
Bases:
objectAn IRI.
Anywhere the model expects an IRI, it also takes a
str(used as is, so it should be an absolute IRI; CURIEs are only expanded by the ontology’s methods, which know its prefixes) or aNamedEntity, whose__owl_entity_iri__()method must return anIRI.- serialize(serialization: Literal2['ofn', 'omn'] | None = None, prefix_mapping: PrefixMapping | None = None) str¶
Renders this element on its own, in OWL functional (
"ofn", the default) or OWL 2 Manchester ("omn") syntax. The per-element counterpart toOntology.save_to_string.