query-ca4dc534d2ccbfff66986f93f7740dba
PropertiesDisease Ontology ID (P699)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?disease ?doid ?enLabel (count(?language) as ?languages) WHERE {
?disease wdt:P699 ?doid ;
rdfs:label ?label ;
rdfs:label ?enLabel .
FILTER (lang(?enLabel) = "en")
BIND (lang(?label) AS ?language)
} group by ?disease ?doid ?enLabel
order by desc(?languages)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?disease"):::projected
v4("?doid"):::projected
v2("?enLabel"):::projected
v5("?label")
v6("?language"):::projected
v7("?languages")
f0[["?enLabel = 'en'"]]
f0 --> v2
v3 --"wdt:P699"--> v4
v3 --"rdfs:label"--> v5
v3 --"rdfs:label"--> v2
bind1[/"?label"/]
v5 --o bind1
bind1 --as--o v6
bind3[/"count(?language)"/]
v6 --o bind3
bind3 --as--o v7