ground

pyobo.ground(prefix, query)[source]

Normalize a string given the prefix’s labels and synonyms.

Parameters:
  • prefix (Union[str, Iterable[str]]) – If a string, only grounds against that namespace. If a list, will try grounding against all in that order

  • query (str) – The string to try grounding

Return type:

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