Synonym
- class Synonym(name, specificity=None, type=None, provenance=<factory>, annotations=<factory>, language=None)[source]
Bases:
HasReferencesMixinA synonym with optional specificity and references.
Attributes Summary
Extra annotations
Language tag for the synonym
The string representing the synonym
Get the specificity reference.
References to articles where the synonym appears
The specificity of the synonym
The type of synonym.
Methods Summary
to_obo(ontology_prefix[, synonym_typedefs])Write this synonym as an OBO line to appear in a [Term] stanza.
Attributes Documentation
- Parameters:
- annotations: list[Annotation] = <dataclasses._MISSING_TYPE object>
Extra annotations
- predicate
Get the specificity reference.
- provenance: Sequence[NormalizedNamableReference | OBOLiteral] = <dataclasses._MISSING_TYPE object>
References to articles where the synonym appears
- specificity: Literal['EXACT', 'NARROW', 'BROAD', 'RELATED'] | None = None
The specificity of the synonym
- type: NormalizedNamableReference | None = None
The type of synonym. Must be defined in OBO document!
Methods Documentation