Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] search by id in a subtree

Michael Dorf mdorf at stanford.edu
Thu Aug 31 14:38:30 PDT 2017


Hi Sina,

I am not sure which one of the two interpretations you are asking about:

1. Determine whether a term with a given id is located within a specific subtree. If that’s the case, yes, you should be able to do this. Here is an example that searches for the term "Uncomplicated moderate persistent asthma”, id = http://purl.bioontology.org/ontology/SNOMEDCT/707512002 in a subtree of the term “Asthma”, id = http://purl.bioontology.org/ontology/SNOMEDCT/195967001:

http://data.bioontology.org/search?q=http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FSNOMEDCT%2F707512002&ontology=SNOMEDCT&subtree_root_id=http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FSNOMEDCT%2F195967001<http://data.bioontology.org/search?q=http://purl.bioontology.org/ontology/SNOMEDCT/707512002&ontology=SNOMEDCT&subtree_root_id=http://purl.bioontology.org/ontology/SNOMEDCT/195967001>

OR

2. Get ALL the descendants (direct/indirect) of a given term (“Asthma”). In this case, the call would be:

http://data.bioontology.org/ontologies/SNOMEDCT/classes/http%3A%2F%2Fpurl.bioontology.org%2Fontology%2FSNOMEDCT%2F195967001/tree<http://data.bioontology.org/ontologies/SNOMEDCT/classes/http://purl.bioontology.org/ontology/SNOMEDCT/195967001/tree>

Let me know if this helps.

Thank you for keeping in touch with us!

Michael


On Aug 29, 2017, at 12:26 PM, Madani, Sina <Sina.Madani at vumc.org<mailto:Sina.Madani at vumc.org>> wrote:

Hi,

Would it be possible to use Restful services to search by id under a given subtree (like SNOMED Asthma) for all direct and indirect children?

Thanks!
Sina
_______________________________________________
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/20170831/216fd846/attachment.html>


More information about the bioontology-support mailing list