DataProperty

class pyhornedowl.model.DataProperty(iri: IRI | str | Class | ObjectProperty | DataProperty | AnnotationProperty | NamedIndividual | Datatype)

Bases: object

An OWL DataProperty is a relationship between part of an ontology and some concrete information.

entity_kind() → EntityKind

Returns this entity’s kind for the NamedEntity protocol.

serialize(serialization: Literal2['ofn', 'omn'] | None = None, prefix_mapping: PrefixMapping | None = None) → str

Renders this element on its own, in OWL functional ("ofn", the default) or OWL 2 Manchester ("omn") syntax. The per-element counterpart to Ontology.save_to_string.