get_default_iri

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

Get the default URL for the given CURIE.

Parameters:
  • prefix – The prefix in the CURIE

  • identifier – The identifier in the CURIE

Returns:

A IRI string corresponding to the default provider, if available.

>>> get_default_iri('chebi', '24867')
'http://purl.obolibrary.org/obo/CHEBI_24867'