biothings / biothings_explorer_archived

BioThings Explorer: a schema-based client for API interoperability
Apache License 2.0
14 stars 14 forks source link

Enable batch queries over lists of entities #139

Open andrewsu opened 3 years ago

andrewsu commented 3 years ago

BTE currently accepts queries with uniquely defined query nodes or node types. Here, we will extend BTE to accept lists of query entity IDs for execution in batch mode. (This feature currently exists in the BTE TRAPI interface / nodejs implementation, but not in the python client.)

GitHubbit commented 2 years ago

Is it possible to have an example of how to submit batch queries in the documentation somewhere?

For example:

ht = Hint() disease_list = ["adhd", "Alzheimer's", "Parkinsons", "IBD"] ht.query(disease_list)

...does not work bc the query function does not take lists, only strings...