is_standardizable_identifier

is_standardizable_identifier(prefix, identifier)[source]

Check if the identifier is standardizable.

Parameters
  • prefix (str) – The prefix from a compact URI

  • identifier (str) – The local unique identifer from a compact URI

Return type

bool

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