AnnotationProperty

class pyhornedowl.model.AnnotationProperty(iri: IRI | str | Class | ObjectProperty | DataProperty | AnnotationProperty | NamedIndividual | Datatype)

Bases: object

An OWL AnnotationProperty is a relationship between a part of an ontology and an Annotation.

The Annotation describes that part of the ontology. It is not part of the description of the world, but a description of the ontology itself.

entity_kind() → EntityKind

Returns this entity’s kind for the NamedEntity protocol.

serialize(serialization: Literal2['ofn'] | None = None, prefix_mapping: PrefixMapping | None = None) → str

Renders this element on its own, in OWL functional ("ofn") syntax. The per-element counterpart to Ontology.save_to_string.

horned-owl has no Manchester rendering for this class: Manchester syntax writes it only inside the element that contains it, so "omn" is an error.