wikimedica-disease-search/data/wikidata/invalid-symptom-types.rq

18 lines
631 B
SPARQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Obtient tous les types items classés comme symptômes dun autre item qui ne
# sont pas de type signe, symptôme ou maladie — avec les plus rares en premiers
select ?symptomType ?symptomTypeLabel (count(*) as ?usageCount)
where {
?item wdt:P780 ?symptom.
?symptom wdt:P31 ?symptomType.
minus {
?item wdt:P780 ?symptom.
?symptom wdt:P31/wdt:P279* ?knownTypes.
values ?knownTypes { wd:Q12136 wd:Q1441305 wd:Q169872 }
}
service wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
}
}
group by ?symptomType ?symptomTypeLabel
order by asc(?usageCount)