get_obofoundry_uri_format

get_obofoundry_uri_format(prefix)[source]

Get the OBO Foundry URI format for this entry, if possible.

Parameters

prefix (str) – The prefix to lookup.

Return type

Optional[str]

Returns

The OBO PURL format string, if available.

>>> import bioregistry
>>> bioregistry.get_obofoundry_uri_format('go')  # standard
'http://purl.obolibrary.org/obo/GO_$1'
>>> bioregistry.get_obofoundry_uri_format('ncbitaxon')  # mixed case
'http://purl.obolibrary.org/obo/NCBITaxon_$1'
>>> assert bioregistry.get_obofoundry_uri_format('sty') is None