pyhornedowl.model.ObjectExactCardinality
- class pyhornedowl.model.ObjectExactCardinality(n: int, ope: ObjectPropertyExpression, bce: ClassExpression)
An exact cardinality relationship between individuals
Given an object property
oand a classce, this describes the class of individuals which have theorelationship to exactlynother individuals.- Parameters:
n (int)
ope (ObjectPropertyExpression)
bce (ClassExpression)
- 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.