get_default_format

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

Get the default, first-party URI prefix.

Parameters:

prefix – The prefix to lookup.

Returns:

The first-party URI prefix string, if available.

>>> import bioregistry
>>> bioregistry.get_default_format('ncbitaxon')
'http://purl.obolibrary.org/obo/NCBITaxon_$1'
>>> bioregistry.get_default_format('go')
'http://purl.obolibrary.org/obo/GO_$1'
>>> assert bioregistry.get_default_format('nope') is None