get_ancestors

get_ancestors(prefix, identifier=None, /, **kwargs)[source]

Get all the ancestors (parents) of the term as CURIEs.

Parameters:
  • prefix (str | NormalizedNamableReference | ReferenceTuple)

  • identifier (str | None)

  • kwargs (Unpack[HierarchyKwargs])

Return type:

set[NormalizedNamableReference] | None