# Entity¶

class pronto.Entity[source]

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.

__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 alternate_ids

a set of alternate IDs for this entity.

Type
property anonymous

whether or not the entity has an anonymous id.

Semantics of anonymous entities are the same as B-Nodes in RDF.

Type

bool

property builtin

whether or not the entity is built-in to the OBO format.

pronto uses this tag on the is_a relationship, which is the axiomatic to the OBO language but treated as a relationship in the library.

Type

bool

property created_by

the name of the creator of the entity, if any.

This property gets translated to a dc:creator annotation in OWL2, which has very broad semantics. Some OBO ontologies may instead use other annotation properties such as the ones found in Information Interchange Ontology, which can be accessed in the annotations attribute of the entity, if any.

Type

str or None

property creation_date

the date the entity was created.

Type

datetime or None

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

property namespace

the namespace this entity is defined in.

Type

str or None

property obsolete

whether or not the entity is obsolete.

Type

bool

property subsets

the subsets containing this entity.

Type
property synonyms

a set of synonyms for this entity.

Type
property xrefs

a set of database cross-references.

Xrefs can be used to describe an analogous entity in another vocabulary, such as a database or a semantic knowledge base.

Type