pyhornedowl.model.DataPropertyDomain

class pyhornedowl.model.DataPropertyDomain(dp: DataProperty, ce: ClassExpression)

The domain of a DataProperty.

If an individual i has a relationship dp then i must be of type ce.

See also: Data Property Domain

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.