Log in Help
Print
HomewikiTrainingCourseMay2011 〉 query.txt
 
Query for semantic types

"
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT ?tlabel
WHERE {
?st <http://linkedlifedata.com/resource/calbc/inGroup> ?group .
?st skos:prefLabel ?tlabel
}"

Query for pubmed articles published in 2008 linked with lung diseases

"
PREFIX pubmed: <http://linkedlifedata.com/resource/pubmed/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?id ?content
WHERE {
    ?id pubmed:year '2008'.
    ?id pubmed:abstractText ?content .
    ?id pubmed:meshHeading ?mesh .
    ?mesh pubmed:qualifier ?qualifier .
    ?qualifier rdfs:label 'therapy' .
    ?mesh pubmed:mesh ?meshTerm .
    ?meshTerm rdfs:label 'Lung Diseases' .
}
"

Mimir query for documents annotated with diseases experiencing Larynx Pain symptoms

{Disease_or_Syndrom sparql = "SELECT ?inst WHERE {?inst <http://linkedlifedata.com/resource/relationontology/hasSymptom> <http://linkedlifedata.com/resource/umls/id/C0549373>}"}