normalize_curie

pyobo.normalize_curie(curie, *, strict=True)[source]

Parse a string that looks like a CURIE.

Parameters:
  • curie (str) – A compact uniform resource identifier (CURIE)

  • strict (bool) – Should an exception be thrown if the CURIE can not be parsed w.r.t. the Bioregistry?

Return type:

Union[Tuple[str, str], Tuple[None, None]]

Returns:

A parse tuple or a tuple of None, None if not able to parse and not strict

  • Normalizes the namespace

  • Checks against a blacklist for the entire curie, for the namespace, and for suffixes.