IRI

class pyhornedowl.model.IRI(value: str)

Bases: object

An 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 a NamedEntity, whose __owl_entity_iri__() method must return an IRI.

classmethod parse(value: str) → IRI
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 to Ontology.save_to_string.