monarch-initiative / biolink-api

API for linked biological knowledge
https://api.monarchinitiative.org/api/
BSD 3-Clause "New" or "Revised" License
63 stars 25 forks source link

Return an evidence graph given two ids and association type #303

Closed kshefchek closed 5 years ago

kshefchek commented 5 years ago

It would be useful to have a route that given two IDs and association type returns evidence serialized as a bbop graph.

This gets a little tricky with id/type orientation in solr, but theoretically we could structure the queries as subject_closure:{id1} OR {id2}, object_closure:{id1} OR {id2}. This should return 0-2 rows, where in the case of 2 rows both evidence graphs are identical.

kshefchek commented 5 years ago

Nevermind - see this already exists! /evidence/graph/{id}