Requête Wikidata pour symptômes invalides
This commit is contained in:
		
							parent
							
								
									f0e1c4c815
								
							
						
					
					
						commit
						a555df3417
					
				|  | @ -0,0 +1,17 @@ | |||
| # Obtient tous les types items classés comme symptômes d’un 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) | ||||
		Loading…
	
		Reference in New Issue