pyhornedowl.model.DeclareClass
- class pyhornedowl.model.DeclareClass(first: Class)
Declares that an IRI represents a Class in the Ontology
In OWL, entities must be declared to be of a particular type. While, OWL (and Horned-OWL) allows the use of Class in an ontology where there is no declaration, the end ontology will change profile to OWL Full. See also the OWL Primer
- Parameters:
first (Class)
- 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.