core.miriam¶
MIRIAM qualifiers.
A MIRIAM annotation combines a qualifier, saying how an element relates to
something else, with a resource pointing at a database entry. Biological
qualifiers (BQB) relate an element to a biological entity, model qualifiers
(BQM) describe the model itself.
from pymetadata.core.annotation import RDFAnnotation
from pymetadata.core.miriam import BQB
RDFAnnotation(qualifier=BQB.IS, resource="CHEBI:17234")
Choosing the qualifier matters: BQB.IS states that the element is the
annotated entity, whereas BQB.IS_VERSION_OF is the weaker claim that it is one
form of it.
BQM
¶
Bases: Enum
MIRIAM model qualifier, relating a model to a resource.
Use BQM.IS_DESCRIBED_BY to link a model to the publication describing it,
and BQM.IS_DERIVED_FROM to link it to the model it was built from.
BQB
¶
Bases: Enum
MIRIAM biological qualifier, relating an element to a biological entity.
The most common are BQB.IS (the element is the entity),
BQB.IS_VERSION_OF (the element is one form of the entity),
BQB.IS_PART_OF (the element is part of the entity) and BQB.HAS_TAXON
(the entity occurs in the given taxon).