Reference
- class pyobo.Reference(prefix, identifier, name=None, registry_id=None)[source]
Bases:
object
A namespace, identifier, and label.
Attributes Summary
Get the bioregistry link.
The CURIE for this reference.
Get a link for this term.
The pair of namespace/identifier.
The namespace's identifier in the registry
Methods Summary
auto
(prefix, identifier)Create a reference and auto-populate its name.
default
(identifier[, name])Return a reference from the PyOBO namespace.
from_curie
(curie[, name, strict, auto])Get a reference from a CURIE.
get_url
()Return a URL for this reference, if possible.
to_dict
()Return the reference as a dictionary.
Attributes Documentation
- bioregistry_link
Get the bioregistry link.
- curie
The CURIE for this reference.
- link
Get a link for this term.
- pair
The pair of namespace/identifier.
Methods Documentation
- classmethod auto(prefix, identifier)[source]
Create a reference and auto-populate its name.
- Return type:
- static default(identifier, name=None)[source]
Return a reference from the PyOBO namespace.
- Return type: