diff --git a/src/sparql/icd11foundation-relevant-diseases.sparql b/src/sparql/icd11foundation-relevant-diseases.sparql new file mode 100644 index 00000000..e767f914 --- /dev/null +++ b/src/sparql/icd11foundation-relevant-diseases.sparql @@ -0,0 +1,32 @@ +PREFIX rdfs: +PREFIX owl: + + +### All diseases +SELECT DISTINCT ?term ?label ?deprecated +WHERE { + { + { + ?s1 ?p1 ?term . + ?term rdfs:subClassOf* . + OPTIONAL { + ?term rdfs:label ?label + } + OPTIONAL { + ?term owl:deprecated ?deprecated + } + } + UNION + { + ?term ?p2 ?o2 . + ?term rdfs:subClassOf* . + OPTIONAL { + ?term rdfs:label ?label + } + OPTIONAL { + ?term owl:deprecated ?deprecated + } + } + } + FILTER(isIRI(?term)) +}