query-d7b73470a6df9765361b491f98ffe81a

rq turtle/ttl

TODO

Use at

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:P1303 wd:Q213100.
  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 c6(["wd:Q213100"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P1303"--> 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