query-c73eac463daa7bdd8e146af565bd5c96
Languages of Wikipedia articles about Ashmolean artists
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?languageLabel (COUNT(?sitelink) AS ?count) WHERE {
{ SELECT DISTINCT ?artist { ?work wdt:P195 wd:Q636400; wdt:P170 ?artist FILTER (!ISBLANK(?artist)) } }
?sitelink schema:about ?artist; schema:inLanguage ?lang FILTER (CONTAINS(STR(?sitelink), ".wikipedia.org"))
?language wdt:P218 ?lang.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?languageLabel
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?artist")
v7("?count")
v5("?lang")
v6("?language")
v2("?sitelink"):::projected
v4("?work")
c9(["bd:serviceParam"]):::iri
c3(["wd:Q636400"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["contains(str(?sitelink),'.wikipedia.org')"]]
f0 --> v2
f1[["not isBlank(?artist)"]]
f1 --> v3
v4 --"wdt:P195"--> c3
v4 --"wdt:P170"--> v3
v2 --"schema:about"--> v3
v2 --"schema:inLanguage"--> v5
v6 --"wdt:P218"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind3[/"count(?sitelink)"/]
v2 --o bind3
bind3 --as--o v7