pyhornedowl.model.Annotation
- class pyhornedowl.model.Annotation(ap: AnnotationProperty, av: AnnotationValue, ann: Set[Annotation])
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.
- Parameters:
ap (AnnotationProperty)
av (AnnotationValue)
ann (Set[Annotation])
- serialize(self, serialization: Literal['ofn'] = 'ofn', prefix_mapping: PrefixMapping = None)
Renders this element on its own, in OWL functional (
"ofn") syntax. The per-element counterpart toPyIndexedOntology.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.