query-7e69520542e2d882671fc5f6ac853bc0
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#>
#defaultView:ImageGrid
SELECT ?item ?itemLabel ?image WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?item wdt:P69 wd:Q5108941.
OPTIONAL { ?item wdt:P18 ?image_temp. }
BIND(IF(BOUND(?image_temp),?image_temp,<http://commons.wikimedia.org/wiki/Special:FilePath/Image_of_none.svg>) as ?image)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?image"):::projected
v2("?image_temp")
v1("?item"):::projected
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q5108941"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"wdt:P69"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v2
end
bind0[/"if(bound(?image_temp),?image_temp,http://commons.wikimedia.org/wiki/Special:FilePath/Image_of_none.svg)"/]
v2 --o bind0
bind0 --as--o v3