is_standardizable_identifier

is_standardizable_identifier(prefix: str, identifier: str) bool[source]

Check if the identifier is standardizable.

Parameters:
  • prefix – The prefix from a compact URI

  • identifier – The local unique identifer from a compact URI

Returns:

If the CURIE can be standardized (e.g., prefix normalize and identifier normalized) then validated.

See also

The is_valid_identifier() does not perform normalization before checking validity

Standard CURIE >>> is_standardizable_identifier(“go”, “0000001”) True

Non-standardized prefix >>> is_standardizable_identifier(“GO”, “0000001”) True

Incorrect identifier >>> is_standardizable_identifier(“go”, “0001”) False

Banana scenario >>> is_standardizable_identifier(“go”, “GO:0000001”) True

Unknown prefix >>> is_standardizable_identifier(“xxx”, “yyy”) False