get_obofoundry_uri_prefix
- get_obofoundry_uri_prefix(prefix: str) str | None [source]
Get the URI prefix for an OBO Foundry entry.
- Parameters:
prefix – The prefix to lookup.
- 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