get_bioregistry_iri

get_bioregistry_iri(prefix, identifier)[source]

Get the bioregistry link.

Parameters
  • prefix (str) – The prefix in the CURIE

  • identifier (str) – The identifier in the CURIE

Return type

Optional[str]

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