get_obofoundry_uri_format

get_obofoundry_uri_format(prefix: str) str | None[source]

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

Parameters:

prefix – The prefix to lookup.

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