get_part_of

get_part_of(prefix: str) str | None[source]

Get the parent resource.

Parameters:

prefix – The prefix to look up

Returns:

The prefixes of the parent resource for this prefix, if one is annotated. This is the inverse of get_has_parts().

>>> assert 'chembl' in get_part_of('chembl.compound')