query-c99267d7e8c9ff9c29982ddfd9f280ac
Languages with cases SELECT ?language ?languageLabel (GROUP_CONCAT(?caseLabel; separator = ", ") AS ?cases) WHERE { ?language wdt:P2989 ?case. SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". ?language rdfs:label ?languageLabel. ?case rdfs:label ?caseLabel. } } GROUP BY ?language ?languageLabel ORDER BY DESC(COUNT(?case))
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Languages with cases
SELECT ?language ?languageLabel (GROUP_CONCAT(?caseLabel; separator = ", ") AS ?cases) WHERE {
?language wdt:P2989 ?case.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?language rdfs:label ?languageLabel.
?case rdfs:label ?caseLabel.
}
}
GROUP BY ?language ?languageLabel
ORDER BY DESC(COUNT(?case))
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?_anon_42b5416610844a34809f33a099ae9de138521")
v2("?case")
v4("?caseLabel"):::projected
v6("?cases")
v1("?language"):::projected
v3("?languageLabel"):::projected
a1((" "))
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P2989"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
v1 --"rdfs:label"--> v3
v2 --"rdfs:label"--> v4
end
bind2[/"count(?case)"/]
v2 --o bind2
bind2 --as--o v5
bind3[/"?caseLabel"/]
v4 --o bind3
bind3 --as--o v6