get_primary_identifier

pyobo.get_primary_identifier(prefix, identifier)[source]

Get the primary identifier for an entity.

Parameters:
  • prefix (str) – The name of the resource

  • identifier (str) – The identifier to look up

Return type:

str

Returns:

the canonical identifier based on alt id lookup

Returns the original identifier if there are no alts available or if there’s no mapping.