ExposuresProvider / cam-kp-api

Web service API for the NCATS Data Translator CAM-KP
MIT License
3 stars 2 forks source link

Add an API endpoint for identifier-based lookups #572

Closed gaurav closed 2 years ago

gaurav commented 2 years ago

When debugging a query (e.g. #284), it can be difficult to figure out whether there is an error in CAM-KP-API itself or in the underlying database. It would be helpful to add an API endpoint for identifier-based lookups. I'm imagining a simple RESTful API such as:

Since this API will side-step the TRAPI processing code, we can use it to determine exactly what the backend triplestore knows about the queried identifier in a way that is easier to use than querying the triplestore directly.

gaurav commented 2 years ago

Kara found a nice test query for this at https://github.com/NCATSTranslator/testing/issues/233#issuecomment-1281649816

balhoff commented 2 years ago

It might be useful to also have it report any RDF predicates that exist for that node, but don't have adequate Biolink mappings. Then we'll know where we need to work on mappings.