SynonymTypeDef

class pyobo.SynonymTypeDef(id, name, specificity=None)[source]

Bases: object

A type definition for synonyms in OBO.

Attributes Summary

specificity

Methods Summary

from_text(text[, specificity])

Get a type definition from text that's normalized.

to_obo()

Serialize to OBO.

Attributes Documentation

specificity: Optional[Literal['EXACT', 'NARROW', 'BROAD', 'RELATED']] = None

Methods Documentation

classmethod from_text(text, specificity=None)[source]

Get a type definition from text that’s normalized.

Return type:

SynonymTypeDef

to_obo()[source]

Serialize to OBO.

Return type:

str