Skip to content

Commit

Permalink
ICD11 config & docs
Browse files Browse the repository at this point in the history
- Rename: ICD11 -> ICD11Foundation
- Rename prefix: icd11 -> icd11.foundation
- Add prefixes: icd11.schema, icd11.z
- Add: intensional exclusions TSV (currently empty)
- Add: SPARQL query for selecting all diseases
  • Loading branch information
joeflack4 committed Mar 29, 2024
1 parent 43fa4ba commit cfffd95
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/sparql/icd11foundation-relevant-diseases.sparql
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>


### All diseases
SELECT DISTINCT ?term ?label ?deprecated
WHERE {
{
{
?s1 ?p1 ?term .
?term rdfs:subClassOf* <http://id.who.int/icd/entity/455013390> .
OPTIONAL {
?term rdfs:label ?label
}
OPTIONAL {
?term owl:deprecated ?deprecated
}
}
UNION
{
?term ?p2 ?o2 .
?term rdfs:subClassOf* <http://id.who.int/icd/entity/455013390> .
OPTIONAL {
?term rdfs:label ?label
}
OPTIONAL {
?term owl:deprecated ?deprecated
}
}
}
FILTER(isIRI(?term))
}

0 comments on commit cfffd95

Please sign in to comment.