SynonymType

class pronto.SynonymType

A synonym type in an ontology.

name

str – the name of the synonym type

scope

str, optional – the scope all synonyms of that type will always have(either ‘EXACT’, ‘BROAD’, ‘NARROW’, ‘RELATED’, or None).

desc

Description – the description of the synonym type

__hash__()

Return hash(self).

__init__(name, desc, scope=None)

Create a new synonym type.

Parameters:
  • name (str) – the name of the synonym type.
  • desc (str) – the description of the synonym type.
  • scope (str, optional) – the scope modifier.
__repr__()

Return repr(self).

obo

str – the synonym type serialized in obo format.