query-419292e77fd1e6ecc79a911855c5dcd2
Wikipedia pages about Ashmolean items in languages other than English
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 ?itemLabel ?inv ?languageLabel ?sitelink WHERE {
?item wdt:P195 wd:Q636400; wdt:P217 ?inv # items in the Ashmolean and get their inventory number
FILTER (?item != wd:Q1249435) . # exclude Oxyrhynchus Papyri
?sitelink schema:about ?item; # Wikimedia links (usually Wikipedia articles)
schema:inLanguage ?lang FILTER (?lang != 'en') FILTER (?lang != 'en-simple') . # exclude English language
?language wdt:P305 ?lang # convert two-letter code to language item
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY ?inv
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?inv"):::projected
v3("?item")
v2("?lang")
v5("?language")
v4("?sitelink"):::projected
c11(["bd:serviceParam"]):::iri
c5(["wd:Q636400"]):::iri
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?lang != 'en-simple'"]]
f0 --> v2
f1[["?lang != 'en'"]]
f1 --> v2
f2[["?item != 'wd:Q1249435'"]]
f2 --> v3
v3 --"wdt:P195"--> c5
v3 --"wdt:P217"--> v1
v4 --"schema:about"--> v3
v4 --"schema:inLanguage"--> v2
v5 --"wdt:P305"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end