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

Consistent querying of SciGraph for /<type>/<id> queries #169

Closed deepakunni3 closed 6 years ago

deepakunni3 commented 6 years ago

This PR adds a generic bioentity/<type>/<id> endpoint that replaces the following:

This PR changes the way scigraph_util.bioobject() queries SciGraph by using dynamic/cliqueLeader (instead of graph/neighbor) to ensure that the query always returns the clique leader.

This PR also fixes the issue where the definition (or description) of an ontology term was being dropped in the response JSON (#152).

@cmungall @kshefchek Still a WIP and subsequent additions depends on discussions from #168