Skip to main content

Table 4 SPARQL query generated by ODS for a filter

From: Analysis and visualization of disease courses in a semantically-enabled cancer registry

PREFIX ods: 〈http://www.imib.es/ontologies/disease-times 〉
SELECT DISTINCT ?s WHERE {
{?s rdf:type ?t FILTER (?t IN (ods:Patient))}.
{
{?s ods:hasDiagnosis ?a0.
{?a0 rdf:type ?ta0 FILTER (?ta0 IN (ods:Diagnosis))}
}. {?a0 ods:hasPathologicalStructure ?a01.
{?a01 rdf:type ?ta01 FILTER (?ta01 IN (ods:Colorectal_cancer))}
}. {?s ods:gender ?a1. FILTER (str(?a1) = ’M’)}.
{?s ods:age ?a2. FILTER (?a2 〉= 50)}.
{?s ods:age ?a3. FILTER (?a3 〈= 70)}.
{?s ods:hasTherapy ?a4.
{?a4 rdf:type ?ta4 FILTER (?ta4 IN (ods:Chemotherapy))}
}
}
}