query-73de1d57c3de1a5207d2a78fefac0bb2
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?itemLabel ?item_qnumber ?image_filename {
?item wdt:P31 wd:Q35657 .
?item wdt:P163 [ wdt:P18 ?image ] .
BIND(STRAFTER(STR(?item),'entity/') AS ?item_qnumber)
BIND(STRAFTER(wikibase:decodeUri(STR(?image)),'FilePath/') AS ?image_filename)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?image")
v5("?image_filename"):::projected
v2("?item")
v1("?itemLabel"):::projected
v4("?item_qnumber"):::projected
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q35657"]):::iri
v2 --"wdt:P31"--> c2
a1 --"wdt:P18"--> v3
v2 --"wdt:P163"--> a1
bind0[/"substring-after(str(?item),'entity/')"/]
v2 --o bind0
bind0 --as--o v4
bind1[/"substring-after(http://wikiba.se/ontology#decodeUri(str(?image)),'FilePath/')"/]
v3 --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end