query-c3b1226a0219956c28ceba67c74cd45f
Islamic art from 650 to 1250
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:ImageGrid
#title: Khalili Collection of Islamic Art from 650 to 1250
SELECT DISTINCT ?objLabel ?placeLabel ?image (YEAR(?pubdate) AS ?year) WHERE {
?obj wdt:P195 wd:Q66455355.
?obj wdt:P18 ?image; wdt:P973 ?url; wdt:P1071 ?place .
MINUS {?obj wdt:P31 wd:Q49848 }
?obj p:P571/psv:P571 ?node. ?node wikibase:timeValue ?pubdate ;
wikibase:timePrecision ?pubdatePrecision # get precision of the creation date
FILTER (YEAR(?pubdate) < 1251) FILTER (YEAR(?pubdate) >649)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} ORDER BY ?pubdate
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?image"):::projected
v6("?node")
v2("?obj")
v5("?place")
v1("?pubdate"):::projected
v7("?pubdatePrecision")
v4("?url")
v8("?year")
a1((" "))
c4(["wd:Q66455355"]):::iri
c9(["wd:Q49848"]):::iri
c15(["bd:serviceParam"]):::iri
c17(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["year-from-dateTime(?pubdate) > '649^^xsd:integer'"]]
f0 --> v1
f1[["year-from-dateTime(?pubdate) < '1251^^xsd:integer'"]]
f1 --> v1
v2 --"p:direct/P195"--> c4
v2 --"p:direct/P18"--> v3
v2 --"p:direct/P973"--> v4
v2 --"p:direct/P1071"--> v5
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v2 --"p:direct/P31"--> c9
end
v2 --"p:P571"--> a1
a1 --"p:statement/value/P571"--> v6
v6 --"wikibase:timeValue"--> v1
v6 --"wikibase:timePrecision"--> v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c15 --"wikibase:language"--> c17
end
bind3[/"year-from-dateTime(?pubdate)"/]
v1 --o bind3
bind3 --as--o v8