get_default_format

get_default_format(prefix)[source]

Get the default, first-party URI prefix.

Parameters

prefix (str) – The prefix to lookup.

Return type

Optional[str]

Returns

The first-party URI prefix string, if available.

>>> import bioregistry
>>> bioregistry.get_default_format('ncbitaxon')
'https://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?mode=Info&id=$1'
>>> bioregistry.get_default_format('go')
'http://amigo.geneontology.org/amigo/term/GO:$1'
>>> assert bioregistry.get_default_format('nope') is None