get_bioregistry_iri

get_bioregistry_iri(prefix: str, identifier: str) str | None[source]

Get the bioregistry link.

Parameters:
  • prefix – The prefix in the CURIE

  • identifier – The identifier in the CURIE

Returns:

A link to the bioregistry resolver

>>> get_bioregistry_iri('pdb', '1234')
'https://bioregistry.io/pdb:1234'

Redundant prefix (OBO)

>>> get_bioregistry_iri('go', 'GO:0120212')
'https://bioregistry.io/go:0120212'
>>> get_bioregistry_iri('go', 'go:0120212')
'https://bioregistry.io/go:0120212'
>>> get_bioregistry_iri('go', '0120212')
'https://bioregistry.io/go:0120212'

Redundant prefix (banana; OBO)

>>> get_bioregistry_iri('fbbt', 'fbbt:00007294')
'https://bioregistry.io/fbbt:00007294'
>>> get_bioregistry_iri('fbbt', 'fbbt:00007294')
'https://bioregistry.io/fbbt:00007294'
>>> get_bioregistry_iri('fbbt', '00007294')
'https://bioregistry.io/fbbt:00007294'

Redundant prefix (banana; explicit) >>> get_bioregistry_iri(‘go.ref’, ‘GO_REF:1234’) ‘https://bioregistry.io/go.ref:1234’ >>> get_bioregistry_iri(‘go.ref’, ‘1234’) ‘https://bioregistry.io/go.ref:1234