Last active
November 22, 2018 03:40
-
-
Save danielamorais/80341f9c425214ecf8c79567a6dbaaf3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%endpoint http://id.nlm.nih.gov/mesh/sparql | |
%display table | |
%show all | |
## Obter todos os tipos de infecções HIV | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX meshv: <http://id.nlm.nih.gov/mesh/vocab#> | |
PREFIX mesh: <http://id.nlm.nih.gov/mesh/> | |
PREFIX mesh2015: <http://id.nlm.nih.gov/mesh/2015/> | |
PREFIX mesh2016: <http://id.nlm.nih.gov/mesh/2016/> | |
PREFIX mesh2017: <http://id.nlm.nih.gov/mesh/2017/> | |
SELECT DISTINCT ?descriptor ?label | |
FROM <http://id.nlm.nih.gov/mesh> | |
WHERE { | |
mesh:D015658 meshv:treeNumber ?treeNum . | |
?childTreeNum meshv:parentTreeNumber+ ?treeNum . | |
?descriptor meshv:treeNumber ?childTreeNum . | |
?descriptor rdfs:label ?label . | |
} | |
ORDER BY ?label | |
LIMIT 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Obter todos os tipos de doenças sexualmente transmissíveis | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX meshv: <http://id.nlm.nih.gov/mesh/vocab#> | |
PREFIX mesh: <http://id.nlm.nih.gov/mesh/> | |
PREFIX mesh2015: <http://id.nlm.nih.gov/mesh/2015/> | |
PREFIX mesh2016: <http://id.nlm.nih.gov/mesh/2016/> | |
PREFIX mesh2017: <http://id.nlm.nih.gov/mesh/2017/> | |
SELECT DISTINCT ?descriptor ?label | |
FROM <http://id.nlm.nih.gov/mesh> | |
WHERE { | |
?descriptor rdfs:label ?label . | |
?descriptor meshv:broaderDescriptor mesh:D015229 | |
} | |
ORDER BY ?label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Obter todas as annotations das infecções HIV | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX meshv: <http://id.nlm.nih.gov/mesh/vocab#> | |
PREFIX mesh: <http://id.nlm.nih.gov/mesh/> | |
PREFIX mesh2015: <http://id.nlm.nih.gov/mesh/2015/> | |
PREFIX mesh2016: <http://id.nlm.nih.gov/mesh/2016/> | |
PREFIX mesh2017: <http://id.nlm.nih.gov/mesh/2017/> | |
SELECT DISTINCT ?label ?annotation | |
FROM <http://id.nlm.nih.gov/mesh> | |
WHERE { | |
mesh:D015658 meshv:treeNumber ?treeNum . | |
?childTreeNum meshv:parentTreeNumber+ ?treeNum . | |
?descriptor meshv:treeNumber ?childTreeNum . | |
?descriptor rdfs:label ?label . | |
?descriptor meshv:annotation ?annotation | |
} | |
ORDER BY ?label | |
LIMIT 10 | |
## Obter todas as doenças relacionadas a slow vírus | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX meshv: <http://id.nlm.nih.gov/mesh/vocab#> | |
PREFIX mesh: <http://id.nlm.nih.gov/mesh/> | |
PREFIX mesh2015: <http://id.nlm.nih.gov/mesh/2015/> | |
PREFIX mesh2016: <http://id.nlm.nih.gov/mesh/2016/> | |
PREFIX mesh2017: <http://id.nlm.nih.gov/mesh/2017/> | |
SELECT DISTINCT ?descriptor ?label | |
FROM <http://id.nlm.nih.gov/mesh> | |
WHERE { | |
mesh:D012897 meshv:treeNumber ?treeNum . | |
?childTreeNum meshv:parentTreeNumber+ ?treeNum . | |
?descriptor meshv:treeNumber ?childTreeNum . | |
?descriptor rdfs:label ?label . | |
} | |
ORDER BY ?label | |
LIMIT 10 | |
## Obter todas as síndromes de deficiência imunológica | |
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
PREFIX owl: <http://www.w3.org/2002/07/owl#> | |
PREFIX meshv: <http://id.nlm.nih.gov/mesh/vocab#> | |
PREFIX mesh: <http://id.nlm.nih.gov/mesh/> | |
PREFIX mesh2015: <http://id.nlm.nih.gov/mesh/2015/> | |
PREFIX mesh2016: <http://id.nlm.nih.gov/mesh/2016/> | |
PREFIX mesh2017: <http://id.nlm.nih.gov/mesh/2017/> | |
SELECT DISTINCT ?descriptor ?label | |
FROM <http://id.nlm.nih.gov/mesh> | |
WHERE { | |
mesh:D007153 meshv:treeNumber ?treeNum . | |
?childTreeNum meshv:parentTreeNumber+ ?treeNum . | |
?descriptor meshv:treeNumber ?childTreeNum . | |
?descriptor rdfs:label ?label . | |
} | |
ORDER BY ?label | |
LIMIT 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment