CINXE.COM

Sample Queries

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <link rel="icon" type="image/ico" href="images/favicon.ico"> <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.js"></script> <script src="//code.jquery.com/ui/1.11.2/jquery-ui.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> <script type="text/javascript" src="//cdn.datatables.net/1.10.3/js/jquery.dataTables.min.js"></script> <script type="text/javascript" src="//cdn.datatables.net/responsive/1.0.2/js/dataTables.responsive.min.js"></script> <script type='text/javascript' src='/meshrdf/js/mesh-gh-pages.js'></script> <title>Sample Queries</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <link data-require="bootstrap-css" data-semver="3.2.0" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" /> <link data-require="bootstrap@*" data-semver="3.2.0" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.css" /> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css" /> <link href="//cdn.datatables.net/1.10.3/css/jquery.dataTables.css" rel="stylesheet" /> <link href="//cdn.datatables.net/responsive/1.0.2/css/dataTables.responsive.css" rel="stylesheet" /> <link href="/meshrdf/styles/style.css" rel="stylesheet" /> <!-- HTML5 shim, for IE6-8 support of HTML5 elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <script type = 'text/javascript'> // there two classes of data tables. data-table-standard (no paging) and data-table-long (includes paging) $(document).ready(function() { $( "#tabs" ).tabs(); $('table.data-table-standard').dataTable( { "paging": false, "ordering": true, "searching": true, "responsive": true, } ); $('table.data-table-long').dataTable( { "paging": true, "ordering": true, "info": false, "searching": true, "responsive": true, "scrollX":true, "scrollY":"300", "pageLength":25 } ); $('.dropdown-toggle').dropdown(); }); </script> </head> <body> <div class="container-fluid"> <!--header to hold banner + top navigation area --> <!-- responsive design header using bootstrap css framework --> <div class = "row header"> <div class="container-fluid col-md-6 col-sm-8 col-xs-12"> <a href="http://www.nlm.nih.gov"><img class= "nlm-logo img-responsive" alt="National Library of Medicine" src="/meshrdf/images/nih_nlmlogo_webheader.png "></a> </div> </div> <!-- // end header --> <div class = "row"> <div class = "container-fluid main-menu navbar navbar-default"> <div id="meshrdf-header"> <h1>MeSH RDF Technical Documentation</h1></div> <ul class="nav navbar-nav"> <li><a href="https://id.nlm.nih.gov/mesh/">MeSH RDF Home</a></li> <li><a href="/meshrdf/index.html">Documentation Home</a></li> <li><a href="https://nlmpubs.nlm.nih.gov/projects/mesh/rdf/">Download</a></li> <li><a href="https://id.nlm.nih.gov/mesh/query">SPARQL Query</a></li> <li><a href="/meshrdf/sparql-and-uri-requests.html">API</a></li> <li class="dropdown"> <a href="#" data-toggle="dropdown" class="dropdown-toggle">Data Model<b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="/meshrdf/concepts">Concepts</a></li> <li><a href="/meshrdf/descriptor-qualifier-pairs">Descriptor-Qualifier Pairs</a></li> <li><a href="/meshrdf/descriptors">Descriptors</a></li> <li><a href="/meshrdf/qualifiers">Qualifiers</a></li> <li><a href="/meshrdf/scrs">Supplementary Concept Records</a></li> <li><a href="/meshrdf/terms">Terms</a></li> <li><a href="/meshrdf/tree-numbers">Tree Numbers</a></li> </ul> </li> <li class="dropdown"> <a href="#" data-toggle="dropdown" class="dropdown-toggle">Cheat Sheets<b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="/meshrdf/all-class-predicate-class">All Class-Predicate-Class</a></li> <li><a href="/meshrdf/class-properties">All Class Properties</a></li> <li><a href="/meshrdf/classes">Class Definitions</a></li> <li><a href="/meshrdf/predicates">Predicate Definitions</a></li> <li><a href="/meshrdf/sample-queries">Sample Queries</a></li> <li><a href="/meshrdf/sparql-and-uri-requests">SPARQL and URI Requests</a></li> <li><a href="/meshrdf/super-classes">Super Classes</a></li> </ul> </li> <li class="dropdown"> <a href="#" data-toggle="dropdown" class="dropdown-toggle">Policy<b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="/meshrdf/acceptable-use-policy">Acceptable Use Policy</a></li> <li><a href="/meshrdf/versioning-policy">Versioning Policy</a></li> </ul> </li> <li><a href="/meshrdf/release-notes">Release Notes</a></li> </ul> </div> </div> <div class = "row"> <div class = "container-fluid col-md-10 col-sm-10 col-xs-10 main-content"> <h2>Sample Queries</h2> <select class = "form-control" onchange="location = this.options[this.selectedIndex].value;"> <option label = "Select from a query below" value = "Select from a query below" disabled = "disabled" selected = "selected">Select from a query below</option> <option label = "Retrieve a list of descriptors that are no longer active in current MeSH and when they were last active." value = "#sample-queries-retrieve-a-list-of-descriptors-that-are-no-longer-active-in-current-mesh-and-when-they-were-last-active.">1: Retrieve a list of descriptors that are no longer active in current MeSH and when they were last active.</option> <option label = "Retrieve a list of predicates in MeSH RDF" value = "#sample-queries-retrieve-a-list-of-predicates-in-mesh-rdf">2: Retrieve a list of predicates in MeSH RDF</option> <option label = "Retrieve all meshv classes in MeSH RDF" value = "#sample-queries-retrieve-all-meshv-classes-in-mesh-rdf">3: Retrieve all meshv classes in MeSH RDF</option> <option label = "Find triples with 'Ofloxacin' as the object" value = "#sample-queries-find-triples-with-'ofloxacin'-as-the-object">4: Find triples with 'Ofloxacin' as the object</option> <option label = "Find the MeSH headings and labels of Pharmacological Actions for 'Ofloxacin'" value = "#sample-queries-find-the-mesh-headings-and-labels-of-pharmacological-actions-for-'ofloxacin'">5: Find the MeSH headings and labels of Pharmacological Actions for 'Ofloxacin'</option> <option label = "Descriptors and SCRs that have the Pharmacological Action 'Anti-Bacterial Agents'" value = "#sample-queries-descriptors-and-scrs-that-have-the-pharmacological-action-'anti-bacterial-agents'">6: Descriptors and SCRs that have the Pharmacological Action 'Anti-Bacterial Agents'</option> <option label = "Find all active MeSH descriptors with an allowable qualifier of 'adverse effects'" value = "#sample-queries-find-all-active-mesh-descriptors-with-an-allowable-qualifier-of-'adverse-effects'">7: Find all active MeSH descriptors with an allowable qualifier of 'adverse effects'</option> <option label = "Find all MeSH descriptors that are ancestors of MeSH descriptor D005138 'Eyebrow'" value = "#sample-queries-find-all-mesh-descriptors-that-are-ancestors-of-mesh-descriptor-d005138-'eyebrow'">8: Find all MeSH descriptors that are ancestors of MeSH descriptor D005138 'Eyebrow'</option> <option label = "Find all MeSH descriptors that are descendants of MeSH descriptor D009369 'Neoplasm'" value = "#sample-queries-find-all-mesh-descriptors-that-are-descendants-of-mesh-descriptor-d009369-'neoplasm'">9: Find all MeSH descriptors that are descendants of MeSH descriptor D009369 'Neoplasm'</option> <option label = "Retrieve all MeSH descriptors or concepts with 'infection' anywhere in its name" value = "#sample-queries-retrieve-all-mesh-descriptors-or-concepts-with-'infection'-anywhere-in-its-name">10: Retrieve all MeSH descriptors or concepts with 'infection' anywhere in its name</option> <option label = "Find all MeSH Descriptors created for 2018 MeSH that are treed under diseases." value = "#sample-queries-find-all-mesh-descriptors-created-for-2018-mesh-that-are-treed-under-diseases.">11: Find all MeSH Descriptors created for 2018 MeSH that are treed under diseases.</option> <option label = "Retrieve all terms that belong to Descriptor D009369 'Neoplasm'." value = "#sample-queries-retrieve-all-terms-that-belong-to-descriptor-d009369-'neoplasm'.">12: Retrieve all terms that belong to Descriptor D009369 'Neoplasm'.</option> <option label = "Display MeSH Qualifiers grouped by the their descriptors' base tree numbers." value = "#sample-queries-display-mesh-qualifiers-grouped-by-the-their-descriptors'-base-tree-numbers.">13: Display MeSH Qualifiers grouped by the their descriptors' base tree numbers.</option> </select> <br/> <a name = "sample-queries-retrieve-a-list-of-descriptors-that-are-no-longer-active-in-current-mesh-and-when-they-were-last-active."/><h4 class = "inline-header">#1: Retrieve a list of descriptors that are no longer active in current MeSH and when they were last active.</h4></a> <div class = "sample-queries-retrieve-a-list-of-descriptors-that-are-no-longer-active-in-current-mesh-and-when-they-were-last-active."> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT *<br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> WHERE { <br /> ?d a meshv:Descriptor .<br /> ?d meshv:active 0 .<br /> ?d meshv:lastActiveYear ?year .<br /> ?d rdfs:label ?name<br /> <br /> }<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A+%0A++++++SELECT+%2A%0A++++++FROM+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0A++++++WHERE+%7B+%0A+++++++++%3Fd+a+meshv%3ADescriptor+.%0A+++++++++%3Fd+meshv%3Aactive+0+.%0A+++++++++%3Fd+meshv%3AlastActiveYear+%3Fyear+.%0A+++++++++%3Fd+rdfs%3Alabel+%3Fname%0A%0A++++++++%7D%0A%0A&inference=true" target = "_blank">Run This Query</a> </div> <a name = "sample-queries-retrieve-a-list-of-predicates-in-mesh-rdf"/><h4 class = "inline-header">#2: Retrieve a list of predicates in MeSH RDF</h4></a> <div class = "sample-queries-retrieve-a-list-of-predicates-in-mesh-rdf"> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT DISTINCT ?p<br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> WHERE {<br /> <br /> ?s ?p ?o<br /> <br /> }<br /> ORDER BY ?p<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A%0ASELECT+DISTINCT+%3Fp%0AFROM+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0AWHERE+%7B%0A%0A++%3Fs+%3Fp+%3Fo%0A++%0A%7D%0AORDER+BY+%3Fp%0A%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> <a name = "sample-queries-retrieve-all-meshv-classes-in-mesh-rdf"/><h4 class = "inline-header">#3: Retrieve all meshv classes in MeSH RDF</h4></a> <div class = "sample-queries-retrieve-all-meshv-classes-in-mesh-rdf"> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT DISTINCT ?class<br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> WHERE {<br /> <br /> ?s rdf:type ?class<br /> <br /> }<br /> ORDER BY ?class<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A%0ASELECT+DISTINCT+%3Fclass%0AFROM+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0AWHERE+%7B%0A%0A+++%3Fs+rdf%3Atype+%3Fclass%0A+++%0A+%7D%0A+ORDER+BY+%3Fclass%0A+%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> <a name = "sample-queries-find-triples-with-'ofloxacin'-as-the-object"/><h4 class = "inline-header">#4: Find triples with 'Ofloxacin' as the object</h4></a> <div class = "sample-queries-find-triples-with-'ofloxacin'-as-the-object"> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT *<br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> <br /> WHERE {<br /> ?s ?p mesh:D015242 .<br /> }<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A%0ASELECT+%2A%0AFROM+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0A%0AWHERE+%7B%0A++%3Fs+%3Fp+mesh%3AD015242+.%0A%7D%0A%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> <a name = "sample-queries-find-the-mesh-headings-and-labels-of-pharmacological-actions-for-'ofloxacin'"/><h4 class = "inline-header">#5: Find the MeSH headings and labels of Pharmacological Actions for 'Ofloxacin'</h4></a> <div class = "sample-queries-find-the-mesh-headings-and-labels-of-pharmacological-actions-for-'ofloxacin'"> <br /> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT *<br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> <br /> WHERE {<br /> mesh:D015242 meshv:pharmacologicalAction ?pa .<br /> ?pa rdfs:label ?paLabel<br /> }<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=%0APREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A%0ASELECT+%2A%0AFROM+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0A%0AWHERE+%7B%0A++mesh%3AD015242+meshv%3ApharmacologicalAction+%3Fpa+.%0A++%3Fpa+rdfs%3Alabel+%3FpaLabel%0A%7D%0A%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> <a name = "sample-queries-descriptors-and-scrs-that-have-the-pharmacological-action-'anti-bacterial-agents'"/><h4 class = "inline-header">#6: Descriptors and SCRs that have the Pharmacological Action 'Anti-Bacterial Agents'</h4></a> <div class = "sample-queries-descriptors-and-scrs-that-have-the-pharmacological-action-'anti-bacterial-agents'"> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT ?d ?dLabel<br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> <br /> WHERE {<br /> ?d meshv:pharmacologicalAction ?pa.<br /> ?d meshv:active 1 .<br /> ?d rdfs:label ?dLabel .<br /> ?pa rdfs:label &quot;Anti-Bacterial Agents&quot;@en<br /> }<br /> <br /> ORDER BY ASC (?dLabel)<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A%0ASELECT+%3Fd+%3FdLabel%0AFROM+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0A%0AWHERE+%7B%0A+%3Fd+meshv%3ApharmacologicalAction+%3Fpa.%0A+%3Fd+meshv%3Aactive+1+.%0A+%3Fd+rdfs%3Alabel+%3FdLabel+.%0A+%3Fpa+rdfs%3Alabel+%22Anti-Bacterial+Agents%22%40en%0A%7D%0A%0AORDER+BY+ASC+%28%3FdLabel%29%0A%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> <a name = "sample-queries-find-all-active-mesh-descriptors-with-an-allowable-qualifier-of-'adverse-effects'"/><h4 class = "inline-header">#7: Find all active MeSH descriptors with an allowable qualifier of 'adverse effects'</h4></a> <div class = "sample-queries-find-all-active-mesh-descriptors-with-an-allowable-qualifier-of-'adverse-effects'"> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT distinct ?d ?dLabel <br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> <br /> WHERE { <br /> ?d meshv:allowableQualifier ?q .<br /> ?d meshv:active 1 .<br /> ?q rdfs:label &quot;adverse effects&quot;@en . <br /> ?d rdfs:label ?dLabel <br /> }<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A++%0ASELECT+distinct+%3Fd+%3FdLabel++%0AFROM++%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0A++%0AWHERE+%7B++%0A+++%3Fd+meshv%3AallowableQualifier+%3Fq+.%0A+++%3Fd+meshv%3Aactive+1+.%0A+++%3Fq+rdfs%3Alabel+%22adverse+effects%22%40en+.++%0A+++%3Fd+rdfs%3Alabel+%3FdLabel++%0A%7D%0A++%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> <a name = "sample-queries-find-all-mesh-descriptors-that-are-ancestors-of-mesh-descriptor-d005138-'eyebrow'"/><h4 class = "inline-header">#8: Find all MeSH descriptors that are ancestors of MeSH descriptor D005138 'Eyebrow'</h4></a> <div class = "sample-queries-find-all-mesh-descriptors-that-are-ancestors-of-mesh-descriptor-d005138-'eyebrow'"> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT ?treeNum ?ancestorTreeNum ?ancestor ?alabel<br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> <br /> WHERE {<br /> mesh:D005138 meshv:treeNumber ?treeNum .<br /> ?treeNum meshv:parentTreeNumber+ ?ancestorTreeNum .<br /> ?ancestor meshv:treeNumber ?ancestorTreeNum .<br /> ?ancestor rdfs:label ?alabel<br /> }<br /> <br /> ORDER BY ?treeNum ?ancestorTreeNum<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A%0ASELECT+%3FtreeNum+%3FancestorTreeNum+%3Fancestor+%3Falabel%0AFROM+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0A%0AWHERE+%7B%0A+++mesh%3AD005138+meshv%3AtreeNumber+%3FtreeNum+.%0A+++%3FtreeNum+meshv%3AparentTreeNumber%2B+%3FancestorTreeNum+.%0A+++%3Fancestor+meshv%3AtreeNumber+%3FancestorTreeNum+.%0A+++%3Fancestor+rdfs%3Alabel+%3Falabel%0A%7D%0A%0AORDER+BY+%3FtreeNum+%3FancestorTreeNum%0A%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> <a name = "sample-queries-find-all-mesh-descriptors-that-are-descendants-of-mesh-descriptor-d009369-'neoplasm'"/><h4 class = "inline-header">#9: Find all MeSH descriptors that are descendants of MeSH descriptor D009369 'Neoplasm'</h4></a> <div class = "sample-queries-find-all-mesh-descriptors-that-are-descendants-of-mesh-descriptor-d009369-'neoplasm'"> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT DISTINCT ?descriptor ?label<br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> <br /> WHERE {<br /> mesh:D009369 meshv:treeNumber ?treeNum .<br /> ?childTreeNum meshv:parentTreeNumber+ ?treeNum .<br /> ?descriptor meshv:treeNumber ?childTreeNum .<br /> ?descriptor rdfs:label ?label .<br /> }<br /> <br /> ORDER BY ?label<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A%0A+SELECT+DISTINCT+%3Fdescriptor+%3Flabel%0A+FROM+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0A%0A+WHERE+%7B%0A+++mesh%3AD009369+meshv%3AtreeNumber+%3FtreeNum+.%0A+++%3FchildTreeNum+meshv%3AparentTreeNumber%2B+%3FtreeNum+.%0A+++%3Fdescriptor+meshv%3AtreeNumber+%3FchildTreeNum+.%0A+++%3Fdescriptor+rdfs%3Alabel+%3Flabel+.%0A+%7D%0A+%0A+ORDER+BY+%3Flabel%0A%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> <a name = "sample-queries-retrieve-all-mesh-descriptors-or-concepts-with-'infection'-anywhere-in-its-name"/><h4 class = "inline-header">#10: Retrieve all MeSH descriptors or concepts with 'infection' anywhere in its name</h4></a> <div class = "sample-queries-retrieve-all-mesh-descriptors-or-concepts-with-'infection'-anywhere-in-its-name"> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT ?d ?dName ?c ?cName<br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> <br /> WHERE {<br /> <br /> ?d a meshv:Descriptor .<br /> ?d meshv:active 1 .<br /> ?d meshv:concept ?c .<br /> ?d rdfs:label ?dName .<br /> ?c rdfs:label ?cName<br /> FILTER(REGEX(?dName,&quot;infection&quot;,&quot;i&quot;) || REGEX(?cName,&quot;infection&quot;,&quot;i&quot;))<br /> <br /> }<br /> ORDER BY ?d<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A%0A+SELECT+%3Fd+%3FdName+%3Fc+%3FcName%0A+FROM+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0A+%0A+WHERE+%7B%0A+++%0A+%3Fd+a+meshv%3ADescriptor+.%0A+%3Fd+meshv%3Aactive+1+.%0A+%3Fd+meshv%3Aconcept+%3Fc+.%0A+%3Fd+rdfs%3Alabel+%3FdName+.%0A+%3Fc+rdfs%3Alabel+%3FcName%0A+FILTER%28REGEX%28%3FdName%2C%22infection%22%2C%22i%22%29+%7C%7C+REGEX%28%3FcName%2C%22infection%22%2C%22i%22%29%29%0A+%0A+%7D%0A+ORDER+BY+%3Fd%0A%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> <a name = "sample-queries-find-all-mesh-descriptors-created-for-2018-mesh-that-are-treed-under-diseases."/><h4 class = "inline-header">#11: Find all MeSH Descriptors created for 2018 MeSH that are treed under diseases.</h4></a> <div class = "sample-queries-find-all-mesh-descriptors-created-for-2018-mesh-that-are-treed-under-diseases."> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT DISTINCT ?d ?name ?dateEstablished<br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> <br /> WHERE {<br /> <br /> ?d a meshv:Descriptor .<br /> ?d rdfs:label ?name .<br /> ?d meshv:treeNumber ?tn . <br /> ?d meshv:dateEstablished ?dateEstablished<br /> FILTER(regex(?dateEstablished, &quot;2018-01-01&quot;))<br /> FILTER(REGEX(?tn,&quot;C&quot;))<br /> <br /> }<br /> <br /> ORDER BY ?name<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A%0A+SELECT+DISTINCT+%3Fd+%3Fname+%3FdateEstablished%0A+FROM+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0A%0A+WHERE+%7B%0A%0A+%3Fd+a+meshv%3ADescriptor+.%0A+%3Fd+rdfs%3Alabel+%3Fname+.%0A+%3Fd+meshv%3AtreeNumber+%3Ftn+.++++%0A+%3Fd+meshv%3AdateEstablished+%3FdateEstablished%0A+FILTER%28regex%28%3FdateEstablished%2C+%222018-01-01%22%29%29%0A+FILTER%28REGEX%28%3Ftn%2C%22C%22%29%29%0A+++%0A+%7D%0A%0A+ORDER+BY+%3Fname%0A+%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> <a name = "sample-queries-retrieve-all-terms-that-belong-to-descriptor-d009369-'neoplasm'."/><h4 class = "inline-header">#12: Retrieve all terms that belong to Descriptor D009369 'Neoplasm'.</h4></a> <div class = "sample-queries-retrieve-all-terms-that-belong-to-descriptor-d009369-'neoplasm'."> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT ?t ?pred ?label<br /> <br /> FROM &lt;http://id.nlm.nih.gov/mesh&gt;<br /> <br /> WHERE { <br /> mesh:D009369 meshv:concept ?c .<br /> ?c meshv:term ?t .<br /> ?t rdfs:label ?label .<br /> ?t ?pred ?label<br /> } <br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A++%0A++SELECT+%3Ft+%3Fpred+%3Flabel%0A++%0A++FROM+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%3E%0A++%0A++++WHERE+%7B+%0A++++mesh%3AD009369+meshv%3Aconcept+%3Fc+.%0A++++%3Fc+meshv%3Aterm+%3Ft+.%0A++++%3Ft+rdfs%3Alabel+%3Flabel+.%0A++++%3Ft+%3Fpred+%3Flabel%0A++++%7D+%0A+%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> <a name = "sample-queries-display-mesh-qualifiers-grouped-by-the-their-descriptors'-base-tree-numbers."/><h4 class = "inline-header">#13: Display MeSH Qualifiers grouped by the their descriptors' base tree numbers.</h4></a> <div class = "sample-queries-display-mesh-qualifiers-grouped-by-the-their-descriptors'-base-tree-numbers."> PREFIX rdf: &lt;http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;<br /> PREFIX rdfs: &lt;http://www.w3.org/2000/01/rdf-schema#&gt;<br /> PREFIX xsd: &lt;http://www.w3.org/2001/XMLSchema#&gt;<br /> PREFIX owl: &lt;http://www.w3.org/2002/07/owl#&gt;<br /> PREFIX meshv: &lt;http://id.nlm.nih.gov/mesh/vocab#&gt;<br /> PREFIX mesh: &lt;http://id.nlm.nih.gov/mesh/&gt;<br /> PREFIX mesh2015: &lt;http://id.nlm.nih.gov/mesh/2015/&gt;<br /> PREFIX mesh2016: &lt;http://id.nlm.nih.gov/mesh/2016/&gt;<br /> PREFIX mesh2017: &lt;http://id.nlm.nih.gov/mesh/2017/&gt;<br /> <br /> SELECT ?qualifier ?baseTreeNum (count(?baseTreeNum) AS ?count) WHERE {<br /> SELECT ?qualifier (SUBSTR(?tnLabel,1,3) AS ?baseTreeNum)<br /> <br /> WHERE {<br /> ?dq a meshv:AllowedDescriptorQualifierPair .<br /> ?dq meshv:hasDescriptor ?d .<br /> ?dq meshv:hasQualifier ?q .<br /> ?d meshv:treeNumber ?tn .<br /> ?tn rdfs:label ?tnLabel .<br /> ?q meshv:preferredTerm ?pt .<br /> ?pt meshv:prefLabel ?qualifier<br /> FILTER(?qualifier = 'adverse effects'@en)<br /> #full list of qualifiers to choose from:<br /> #http://www.nlm.nih.gov/mesh/topsubscope.html<br /> }<br /> }<br /> GROUP BY ?qualifier ?baseTreeNum<br /> ORDER BY ?baseTreeNum<br /> <br /> <a role = "button" class = "btn btn-success" href = "http://id.nlm.nih.gov/mesh/query?query=PREFIX+rdf%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%3E%0APREFIX+rdfs%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0APREFIX+xsd%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%23%3E%0APREFIX+owl%3A+%3Chttp%3A%2F%2Fwww.w3.org%2F2002%2F07%2Fowl%23%3E%0APREFIX+meshv%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2Fvocab%23%3E%0APREFIX+mesh%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F%3E%0APREFIX+mesh2015%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2015%2F%3E%0APREFIX+mesh2016%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2016%2F%3E%0APREFIX+mesh2017%3A+%3Chttp%3A%2F%2Fid.nlm.nih.gov%2Fmesh%2F2017%2F%3E%0A+%0A+SELECT+%3Fqualifier+%3FbaseTreeNum+%28count%28%3FbaseTreeNum%29+AS+%3Fcount%29+WHERE+%7B%0A+SELECT+%3Fqualifier+%28SUBSTR%28%3FtnLabel%2C1%2C3%29+AS+%3FbaseTreeNum%29%0A+%0A+++WHERE+%7B%0A+++%3Fdq+a+meshv%3AAllowedDescriptorQualifierPair+.%0A+++%3Fdq+meshv%3AhasDescriptor+%3Fd+.%0A+++%3Fdq+meshv%3AhasQualifier+%3Fq+.%0A+++%3Fd+meshv%3AtreeNumber+%3Ftn+.%0A+++%3Ftn+rdfs%3Alabel+%3FtnLabel+.%0A+++%3Fq+meshv%3ApreferredTerm+%3Fpt+.%0A+++%3Fpt+meshv%3AprefLabel+%3Fqualifier%0A+++FILTER%28%3Fqualifier+%3D+%27adverse+effects%27%40en%29%0A+++++%23full+list+of+qualifiers+to+choose+from%3A%0A+++++%23http%3A%2F%2Fwww.nlm.nih.gov%2Fmesh%2Ftopsubscope.html%0A++++%7D%0A+%7D%0A+GROUP+BY+%3Fqualifier+%3FbaseTreeNum%0A+ORDER+BY+%3FbaseTreeNum%0A%0A&inference=true" target = "_blank">Run This Query</a> </div> <a href = "#top">return to top</a> </div> </div> <!-- will consider re-adding query types when they are easier to categorize <p>Query types: <select class = "query-types" onchange="location = this.options[this.selectedIndex].value;"> </select> </p> --> <!-- footer --> <div class = "row"> <div class = "container-fluid footer col-md-12 col-sm-12 col-xs-12"> <div id = "footer"> Page first published: 01 Nov 2014<br/> Page last updated: 07 Dec 2021 </div> <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-MT6MLL" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-MT6MLL');</script> <!-- End Google Tag Manager --> </div> </div> <!-- //end footer --> </div> <!-- //end top level container-fluid --> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10