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:42:20 PDT 2017


One clarification on the answer number 2. The tree endpoint will give you an expanded tree for the term “Asthma”. If you are simply looking for the descendants, the call below would be more apt:

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

Thanks!

Michael




On Aug 31, 2017, at 2:38 PM, Michael Dorf <mdorf at stanford.edu<mailto:mdorf at stanford.edu>> wrote:

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

_______________________________________________
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/1b687026/attachment-0001.html>


More information about the bioontology-support mailing list