INNER CODE UNIT · Python

definition

althonos/pronto · pronto/entity/__init__.py:247

    def definition(self) -> Optional[Definition]:
        """`Definition` or `None`: The 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.

        Example:
            >>> hp = pronto.Ontology.from_obo_library("hp.obo")
            >>> term = hp["HP:0009882"]
            >>> term.name
            'Short distal phalanx of finger'
            >>> str(term.definition)
            'Short distance from the end of the finger to the most distal...'
            >>> sorted(term.definition.xrefs)
            [Xref('HPO:probinson'), Xref('PMID:19125433')]

        """
        return self._data().definition

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…