pyhornedowl.model.ObjectMaxCardinality

class pyhornedowl.model.ObjectMaxCardinality(n: int, ope: ObjectPropertyExpression, bce: ClassExpression)

A max cardinality relationship between individuals

Given an object property o and a class ce, this describes the class of individuals which have the o relationship to at most n other individuals.

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.