get_depends_on(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_appears_in().


prefix – The prefix to look up


The list of resources this prefix has been annotated to depend on. 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" in bioregistry.get_depends_on("foodon")
>>> assert "fobi" not in bioregistry.get_depends_on("foodon")