pyhornedowl.model.SubAnnotationPropertyOf
- class pyhornedowl.model.SubAnnotationPropertyOf(sub: AnnotationProperty, sup: AnnotationProperty)
An sub-property assertion for annotation properties.
Implies that any annotation of the type
sub_propertyis also an annotation of the typesuper_property.- Parameters:
sub (AnnotationProperty)
sup (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 toPyIndexedOntology.save_to_string.