pyhornedowl.model.Class

class pyhornedowl.model.Class(first: IRI)

An OWL Class is a group of individuals.

Usually these individuals have something in common with each other.

Parameters:

first (IRI)

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.