Search Mailing List Archives
[bioontology-support] [BioPortal] Feedback from Bharat
Michael Dorf
mdorf at stanford.edu
Thu Oct 4 14:38:05 PDT 2018
Hi Bharat,
Thanks for contacting us. You don’t need to encapsulate your query in quotes. Any of these calls should work:
http://data.bioontology.org/search?q=blood+urea+nitrogen
http://data.bioontology.org/search?q=blood urea<http://data.bioontology.org/search?q=blood+urea> nitrogen<http://data.bioontology.org/search?q=blood+urea+nitrogen>
http://data.bioontology.org/search?q=blood%20urea%20nitrogen
I’m not a Python expert, but the pseudocode should be along the lines of:
bp_url = "http://data.bioontology.org/search?q=blood urea nitrogen"
response = RestClient.post(bp_url, {Authorization: "apiKey 11e3a33a-77b2-21b7-6a2a-232323bb1234", 'Content-Type': 'application/json'})
Hope this works for you.
Michael
On Oct 3, 2018, at 11:46 PM, support at bioontology.org<mailto:support at bioontology.org> wrote:
Name: Bharat
Email: bharat.shetty at gmail.com<mailto:bharat.shetty at gmail.com>
Location: https%3A%2F%2Fbioportal.bioontology.org<http://2Fbioportal.bioontology.org>%2F
Feedback:
How to search multiple words for say "Blood Urea Nitrogen" ?
The REST API endpoint /search?q="blood urea nitrogen" doesnt seem to work from the python api call, but something like /search?q='BUN' or some single term search works. Please do point towards the appropriate REST api end point for a sentence text query.
Thanks,
Bharat
_______________________________________________
bioontology-support mailing list
bioontology-support at lists.stanford.edu<mailto:bioontology-support at lists.stanford.edu>
https://mailman.stanford.edu/mailman/listinfo/bioontology-support
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/bioontology-support/attachments/20181004/843b1c04/attachment.html>
More information about the bioontology-support
mailing list