get_part_of
- get_part_of(prefix)[source]
Get the parent resource.
- Parameters
prefix (
str
) – The prefix to look up- Return type
- 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')