get_obofoundry_uri_prefix
- get_obofoundry_uri_prefix(prefix)[source]
Get the URI prefix for an OBO Foundry entry.
- Parameters:
prefix (
str
) – The prefix to lookup.- Return type:
- Returns:
The OBO PURL URI prefix corresponding to the prefix, if mappable.
>>> import bioregistry >>> bioregistry.get_obofoundry_uri_prefix('go') # standard 'http://purl.obolibrary.org/obo/GO_' >>> bioregistry.get_obofoundry_uri_prefix('ncbitaxon') # mixed case 'http://purl.obolibrary.org/obo/NCBITaxon_' >>> assert bioregistry.get_obofoundry_uri_prefix('sty') is None