query-9e189ad35fc7167bc8ee3de0f89216cc
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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:ImageGrid
SELECT ?file ?image ?depicts ?depictsLabel WHERE
{
{ SELECT ?file ?image ?depicts where {
?file wdt:P6731 wd:Q63348040 . # valued
# ?file wdt:P6731 wd:Q63348069 . # quality
# ?file wdt:P6731 wd:Q63348049 . # featured
?file schema:contentUrl ?url .
?file wdt:P180 ?depicts .
BIND(IRI(CONCAT("http://commons.wikimedia.org/wiki/Special:FilePath/", wikibase:decodeUri(SUBSTR(STR(?url),53)))) AS ?image)
} limit 10000 } SERVICE <https://query.wikidata.org/sparql>
{
?depicts wdt:P21 wd:Q6581072.
# SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?depicts"):::projected
v1("?file"):::projected
v4("?image"):::projected
v2("?url")
c2(["wd:Q63348040"]):::iri
c7(["wd:Q6581072"]):::iri
v1 --"wdt:P6731"--> c2
v1 --"schema:contentUrl"--> v2
v1 --"wdt:P180"--> v3
bind0[/"concat('http://commons.wikimedia.org/wiki/Special:FilePath/',http://wikiba.se/ontology#decodeUri(substring(str(?url),'53^^xsd:integer')))"/]
v2 --o bind0
bind0 --as--o v4
subgraph s1["https://query.wikidata.org/sparql"]
style s1 stroke-width:4px;
v3 --"wdt:P21"--> c7
end