query-41ff66f4ab0161b0802937ac62cf5562
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 schema: <http://schema.org/>
#shows files that depict Coleoptera and with the Featured Picture assessment
#defaultView:ImageGrid
SELECT ?file ?image
WHERE
{
{
SELECT ?item
WHERE
{
SERVICE <https://query.wikidata.org/sparql>
{
?item wdt:P171/wdt:P171* wd:Q22671.
}
}
} ?file wdt:P180 ?item .
?file schema:contentUrl ?url .
?file wdt:P6731 wd:Q63348049 .
?file wdt:P4082 ?camera.
SERVICE <https://query.wikidata.org/sparql>
{
?camera wdt:P1716 wd:Q63554165 .
}
BIND(IRI(CONCAT("http://commons.wikimedia.org/wiki/Special:FilePath/", wikibase:decodeUri(SUBSTR(STR(?url),53)))) AS ?image)
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?camera")
v2("?file"):::projected
v5("?image"):::projected
v1("?item")
v3("?url")
a1((" "))
c3(["wd:Q22671"]):::iri
c10(["wd:Q63554165"]):::iri
c7(["wd:Q63348049"]):::iri
subgraph s1["https://query.wikidata.org/sparql"]
style s1 stroke-width:4px;
v1 --"wdt:P171"--> a1
a1 --"wdt:P171"--> c3
end
v2 --"wdt:P180"--> v1
v2 --"schema:contentUrl"--> v3
v2 --"wdt:P6731"--> c7
v2 --"wdt:P4082"--> v4
subgraph s1["https://query.wikidata.org/sparql"]
style s1 stroke-width:4px;
v4 --"wdt:P1716"--> c10
end
bind0[/"concat('http://commons.wikimedia.org/wiki/Special:FilePath/',http://wikiba.se/ontology#decodeUri(substring(str(?url),'53^^xsd:integer')))"/]
v3 --o bind0
bind0 --as--o v5