Annotation

class pyhornedowl.model.Annotation(property: AnnotationProperty | IRI | str, value: Literal | str | bool | int | float | IRI | Class | ObjectProperty | DataProperty | AnnotationProperty | NamedIndividual | Datatype | AnonymousIndividual, annotations: Iterable[Annotation] = ...)

Bases: object

Data associated with a part of the ontology.

Annotations are associated an IRI and describe that IRI in a particular way, defined by the property.

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.