pyhornedowl.model.DeclareAnnotationProperty

class pyhornedowl.model.DeclareAnnotationProperty(first: AnnotationProperty)

Declares that an IRI represents an AnnotationProperty in the Ontology.

See also DeclareClass

Parameters:

first (AnnotationProperty)

serialize(self, serialization: Literal['ofn', 'omn'] = 'ofn', prefix_mapping: PrefixMapping = None)

Renders this element on its own, in OWL functional ("ofn", the default) or OWL 2 Manchester ("omn") syntax. The per-element counterpart to PyIndexedOntology.save_to_string.