get_appears_in

get_appears_in(prefix: str) List[str] | None[source]

Return a list of resources that this resources (has been annotated to) depends on.

This is complementary to get_depends_on().

Parameters:

prefix – The prefix to look up

Returns:

The list of resources this prefix has been annotated to appear in. This list could be incomplete, since curation of these fields can easily get out of sync with curation of the resource itself. However, false positives should be pretty rare.

>>> import bioregistry
>>> assert "bfo" not in bioregistry.get_appears_in("foodon")
>>> assert "fobi" in bioregistry.get_appears_in("foodon")