pyhornedowl.model.SubClassOf

class pyhornedowl.model.SubClassOf(sub: ClassExpression, sup: ClassExpression)

A subclass relationship between two ClassExpression.

All instances of sub_class are also instances of super_class.

Parameters:
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.