An entity in the ontology graph.
With respects to the OBO semantics, an Entity
is either a term or a
relationship in the ontology graph. Any entity has a unique identifier as
well as some common properties.
-
__init__
(ontology: Ontology, data: EntityData)[source]
Initialize self. See help(type(self)) for accurate signature.
-
__eq__
(other: Any) → bool[source]
Return self==value.
-
__lt__
(other)[source]
Return self<value.
-
__le__
(other)[source]
Return self<=value.
-
__gt__
(other)[source]
Return self>value.
-
__ge__
(other)[source]
Return self>=value.
-
__hash__
()[source]
Return hash(self).
-
__repr__
()[source]
Return repr(self).
-
property
definition
the textual definition of the current entity.
Definitions in OBO are intended to be human-readable text describing
the entity, with some additional cross-references if possible.
- Type
str
or None
-
property
name
the name of the entity.
Names are formally equivalent to rdf:label
in OWL2. The OBO format
version 1.4 made names optional to improve OWL interoperability, as
labels are optional in OWL.
- Type
str
or None