query-2016cd3875d9e77a14fb7e1f1ea891fa
Landscape art that is taller than it is wide
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:ImageGrid
#title:Landscape art that is taller than it is wide
SELECT ?i ?iLabel ?iDescription (SAMPLE(?collLabel) AS ?collection) (SAMPLE(?img) AS ?image) WHERE {
?i wdt:P31 wd:Q3305213.
?i wdt:P136 wd:Q191163 .
?i wdt:P2048 ?height.
?i wdt:P2049 ?width.
FILTER (?height > ?width)
?i wdt:P18 ?img.
?i wdt:P195 ?coll.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?coll rdfs:label ?collLabel . ?i rdfs:label ?iLabel .
?i schema:description ?iDescription }
} GROUP BY ?i ?iLabel ?iDescription
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?coll")
v6("?collLabel"):::projected
v9("?collection")
v1("?height")
v3("?i"):::projected
v8("?iDescription"):::projected
v7("?iLabel"):::projected
v10("?image")
v4("?img"):::projected
v2("?width")
c2(["wd:Q3305213"]):::iri
c10(["bd:serviceParam"]):::iri
c4(["wd:Q191163"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?height > ?width"]]
f0 --> v1
f0 --> v2
v3 --"wdt:P31"--> c2
v3 --"wdt:P136"--> c4
v3 --"wdt:P2048"--> v1
v3 --"wdt:P2049"--> v2
v3 --"wdt:P18"--> v4
v3 --"wdt:P195"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
v5 --"rdfs:label"--> v6
v3 --"rdfs:label"--> v7
v3 --"schema:description"--> v8
end
bind3[/"sample(?collLabel)"/]
v6 --o bind3
bind3 --as--o v9
bind4[/"sample(?img)"/]
v4 --o bind4
bind4 --as--o v10