pyhornedowl.model.ObjectHasSelf

class pyhornedowl.model.ObjectHasSelf(first: ObjectPropertyExpression)

The class of individuals which have a relation to themselves

Given a object property r, this class defines all the individuals where i r i.

Parameters:

first (ObjectPropertyExpression)

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.