AnnotatedComponent¶
- class pyhornedowl.model.AnnotatedComponent(component: Component, annotations: Iterable[Annotation] = ...)¶
Bases:
objectAn annotated component. Bare components convert to this type with empty annotations wherever an annotated component is expected.
- serialize(serialization: Literal2['ofn', 'omn'] | None = None, prefix_mapping: PrefixMapping | None = None) str¶
Renders this element on its own, in OWL functional (
"ofn", the default) or OWL 2 Manchester ("omn") syntax. The per-element counterpart toOntology.save_to_string.Manchester syntax renders only the component, without its annotations.