SynonymTypeDef

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

Bases: Referenced

A type definition for synonyms in OBO.

Attributes Summary

specificity

Methods Summary

from_text(text[, specificity, lower])

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, *, lower=True)[source]

Get a type definition from text that’s normalized.

Return type:

SynonymTypeDef

to_obo()[source]

Serialize to OBO.

Return type:

str