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

Taxon counts for different entities #279

Open deepakunni3 opened 5 years ago

deepakunni3 commented 5 years ago

From @DoctorBud

I'm using paired SOLR queries right now to get taxon counts for different entities, and hoping to be able to use BL for that soon: select/?q=%3A&facet=true&fq=subject_closure:%22${nodeId}%22&rows=0&wt=json&facet.mincount=1&indent=on&facet.sort=count&facet.pivot=object_category,object_taxon select/?q=%3A&facet=true&fq=object_closure:%22${nodeId}%22&rows=0&wt=json&facet.mincount=1&indent=on&facet.sort=count&facet.pivot=subjectKey,subject_taxon

Note: This is critical for Monarch UI development