SynonymTypeDef

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

Bases: Referenced, HasReferencesMixin

A type definition for synonyms in OBO.

Attributes Summary

reference

specificity

Methods Summary

to_obo(ontology_prefix)

Serialize to OBO.

Attributes Documentation

Parameters:
  • reference (NormalizedNamableReference)

  • specificity (Literal['EXACT', 'NARROW', 'BROAD', 'RELATED'] | None)

reference: NormalizedNamableReference = <dataclasses._MISSING_TYPE object>
specificity: Literal['EXACT', 'NARROW', 'BROAD', 'RELATED'] | None = None

Methods Documentation

to_obo(ontology_prefix)[source]

Serialize to OBO.

Parameters:

ontology_prefix (str)

Return type:

str