get_bioportal_prefix

get_bioportal_prefix(prefix)[source]

Get the BioPortal prefix if available.

Parameters

prefix (str) – The prefix to lookup.

Return type

Optional[str]

Returns

The BioPortal prefix corresponding to the prefix, if mappable.

>>> get_bioportal_prefix("chebi")
'CHEBI'
>>> get_bioportal_prefix("uniprot")
None
>>> get_bioportal_prefix("nope")
None