Reference
- class pyobo.Reference(**data)[source]
Bases:
Reference
A namespace, identifier, and label.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
Attributes Summary
Get the bioregistry link.
Methods Summary
auto
(prefix, identifier)Create a reference and auto-populate its name.
from_curie
(curie[, name, strict, auto])Get a reference from a CURIE.
from_iri
(iri[, name, auto])Get a reference from an IRI using the Bioregistry.
Validate the prefix for this reference.
Attributes Documentation
- bioregistry_link
Get the bioregistry link.
Methods Documentation
- classmethod auto(prefix, identifier)[source]
Create a reference and auto-populate its name.
- Return type:
- classmethod from_curie(curie, name=None, *, strict=True, auto=False)[source]
Get a reference from a CURIE.
- Parameters:
- Return type: