CURIE Lookup Service

The CURIE Lookup Service supports the ability to lookup labels for a given CURIE.

It does so by pre-loading all the relevant ontologies when the CurieLookupService class is initialized, where only the terms and their rdfs:label are loaded into a separate graph specifically for the purpose of lookup.

The required ontologies are defined in the KGX config.yml.

kgx.curie_lookup_service

class kgx.curie_lookup_service.CurieLookupService(curie_map: dict = None)[source]

Bases: object

A service to lookup label for a given CURIE.

load_ontologies()[source]

Load all required ontologies.