pyhornedowl.model.HasKey
- class pyhornedowl.model.HasKey(ce: ClassExpression, vpe: List[PropertyExpression])
A key
An individual
iwhich is of typececan be uniquely identified bype. Keys can only be applied to individuals which are explicitly named in the ontology, not those that are inferred.See also: Keys
- Parameters:
ce (ClassExpression)
vpe (List[PropertyExpression])
- 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.