query-6509162fa8a94499dd24c55e3fe045b1
Image gallery of Western masterpieces
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:ImageGrid{"hide": ["?img"]}
SELECT ?q ?qLabel (SAMPLE(?image) AS ?img) (GROUP_CONCAT(DISTINCT ?creatorname; separator="; ") AS ?artist_list) (YEAR(SAMPLE(?date)) AS ?year) WHERE {
VALUES ?q {wd:Q187483 wd:Q151047 wd:Q321303 wd:Q128910 wd:Q235242 wd:Q219831 wd:Q630530 wd:Q152509 wd:Q18003128 wd:Q45585 wd:Q471379 wd:Q25729 wd:Q175036 wd:Q83872 wd:Q220859 wd:Q1189907 wd:Q1759631 wd:Q734834 wd:Q735085 wd:Q179900 wd:Q1217288 wd:Q12418 wd:Q844675 wd:Q186953 wd:Q1206860 wd:Q94802 wd:Q567861 wd:Q699091 wd:Q500985 wd:Q655705 wd:Q2653851 wd:Q208758 wd:Q185372 wd:Q3207063 wd:Q1619527 wd:Q636537 wd:Q1978815 wd:Q212616 wd:Q2366825 wd:Q29530 wd:Q15992445 wd:Q509806 wd:Q970968 wd:Q1213936 wd:Q2664039 wd:Q890678 wd:Q698487 wd:Q2272215 wd:Q421716 wd:Q2990634 wd:Q1212937 wd:Q2381632 wd:Q464782 wd:Q2465911 wd:Q1311080 wd:Q780466 wd:Q15008032 wd:Q6583495 wd:Q2727560 wd:Q2247406 wd:Q2352789 wd:Q3998985 wd:Q7735033 wd:Q311243 wd:Q3697674 wd:Q2629559 wd:Q59201 wd:Q1091086 wd:Q219344 wd:Q3222585 wd:Q2384215 wd:Q1065493 wd:Q1368055 wd:Q2622172 wd:Q1195035 wd:Q175628 wd:Q7728560 wd:Q1167907 wd:Q1090837 wd:Q331225 wd:Q4156438 wd:Q18346884 wd:Q3633443 wd:Q960447 wd:Q17277950 wd:Q95984336 wd:Q3205060 wd:Q164517 wd:Q1170315 wd:Q3877556 wd:Q5526647 wd:Q1192436 wd:Q1052784 wd:Q3210239 wd:Q2905377 wd:Q1061035 wd:Q19609193 wd:Q19904229 wd:Q1769529 wd:Q19760121}
OPTIONAL {?q wdt:P18 ?commons_image}
BIND (IF(BOUND(?commons_image), ?commons_image, <http://commons.wikimedia.org/wiki/Special:FilePath/No%20image%20available.svg>) AS ?image)
OPTIONAL {?q wdt:P170 ?creator. ?creator rdfs:label ?creatorname FILTER(lang(?creatorname)="[AUTO_LANGUAGE]")}
OPTIONAL {?q wdt:P571 ?inception}
OPTIONAL {?q wdt:P577 ?publication}
BIND (IF(BOUND(?inception), ?inception, ?publication) AS ?date)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
} GROUP BY ?q ?qLabel ORDER BY ?year
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v11("?artist_list")
v4("?commons_image")
v6("?creator")
v2("?creatorname"):::projected
v9("?date")
v5("?image"):::projected
v10("?img")
v7("?inception")
v8("?publication")
v3("?q"):::projected
v12("?year")
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?q/]
bind0-->v3
bind00(["wd:Q187483"])
bind00 --> bind0
bind01(["wd:Q151047"])
bind01 --> bind0
bind02(["wd:Q321303"])
bind02 --> bind0
bind03(["wd:Q128910"])
bind03 --> bind0
bind04(["wd:Q235242"])
bind04 --> bind0
bind05(["wd:Q219831"])
bind05 --> bind0
bind06(["wd:Q630530"])
bind06 --> bind0
bind07(["wd:Q152509"])
bind07 --> bind0
bind08(["wd:Q18003128"])
bind08 --> bind0
bind09(["wd:Q45585"])
bind09 --> bind0
bind010(["wd:Q471379"])
bind010 --> bind0
bind011(["wd:Q25729"])
bind011 --> bind0
bind012(["wd:Q175036"])
bind012 --> bind0
bind013(["wd:Q83872"])
bind013 --> bind0
bind014(["wd:Q220859"])
bind014 --> bind0
bind015(["wd:Q1189907"])
bind015 --> bind0
bind016(["wd:Q1759631"])
bind016 --> bind0
bind017(["wd:Q734834"])
bind017 --> bind0
bind018(["wd:Q735085"])
bind018 --> bind0
bind019(["wd:Q179900"])
bind019 --> bind0
bind020(["wd:Q1217288"])
bind020 --> bind0
bind021(["wd:Q12418"])
bind021 --> bind0
bind022(["wd:Q844675"])
bind022 --> bind0
bind023(["wd:Q186953"])
bind023 --> bind0
bind024(["wd:Q1206860"])
bind024 --> bind0
bind025(["wd:Q94802"])
bind025 --> bind0
bind026(["wd:Q567861"])
bind026 --> bind0
bind027(["wd:Q699091"])
bind027 --> bind0
bind028(["wd:Q500985"])
bind028 --> bind0
bind029(["wd:Q655705"])
bind029 --> bind0
bind030(["wd:Q2653851"])
bind030 --> bind0
bind031(["wd:Q208758"])
bind031 --> bind0
bind032(["wd:Q185372"])
bind032 --> bind0
bind033(["wd:Q3207063"])
bind033 --> bind0
bind034(["wd:Q1619527"])
bind034 --> bind0
bind035(["wd:Q636537"])
bind035 --> bind0
bind036(["wd:Q1978815"])
bind036 --> bind0
bind037(["wd:Q212616"])
bind037 --> bind0
bind038(["wd:Q2366825"])
bind038 --> bind0
bind039(["wd:Q29530"])
bind039 --> bind0
bind040(["wd:Q15992445"])
bind040 --> bind0
bind041(["wd:Q509806"])
bind041 --> bind0
bind042(["wd:Q970968"])
bind042 --> bind0
bind043(["wd:Q1213936"])
bind043 --> bind0
bind044(["wd:Q2664039"])
bind044 --> bind0
bind045(["wd:Q890678"])
bind045 --> bind0
bind046(["wd:Q698487"])
bind046 --> bind0
bind047(["wd:Q2272215"])
bind047 --> bind0
bind048(["wd:Q421716"])
bind048 --> bind0
bind049(["wd:Q2990634"])
bind049 --> bind0
bind050(["wd:Q1212937"])
bind050 --> bind0
bind051(["wd:Q2381632"])
bind051 --> bind0
bind052(["wd:Q464782"])
bind052 --> bind0
bind053(["wd:Q2465911"])
bind053 --> bind0
bind054(["wd:Q1311080"])
bind054 --> bind0
bind055(["wd:Q780466"])
bind055 --> bind0
bind056(["wd:Q15008032"])
bind056 --> bind0
bind057(["wd:Q6583495"])
bind057 --> bind0
bind058(["wd:Q2727560"])
bind058 --> bind0
bind059(["wd:Q2247406"])
bind059 --> bind0
bind060(["wd:Q2352789"])
bind060 --> bind0
bind061(["wd:Q3998985"])
bind061 --> bind0
bind062(["wd:Q7735033"])
bind062 --> bind0
bind063(["wd:Q311243"])
bind063 --> bind0
bind064(["wd:Q3697674"])
bind064 --> bind0
bind065(["wd:Q2629559"])
bind065 --> bind0
bind066(["wd:Q59201"])
bind066 --> bind0
bind067(["wd:Q1091086"])
bind067 --> bind0
bind068(["wd:Q219344"])
bind068 --> bind0
bind069(["wd:Q3222585"])
bind069 --> bind0
bind070(["wd:Q2384215"])
bind070 --> bind0
bind071(["wd:Q1065493"])
bind071 --> bind0
bind072(["wd:Q1368055"])
bind072 --> bind0
bind073(["wd:Q2622172"])
bind073 --> bind0
bind074(["wd:Q1195035"])
bind074 --> bind0
bind075(["wd:Q175628"])
bind075 --> bind0
bind076(["wd:Q7728560"])
bind076 --> bind0
bind077(["wd:Q1167907"])
bind077 --> bind0
bind078(["wd:Q1090837"])
bind078 --> bind0
bind079(["wd:Q331225"])
bind079 --> bind0
bind080(["wd:Q4156438"])
bind080 --> bind0
bind081(["wd:Q18346884"])
bind081 --> bind0
bind082(["wd:Q3633443"])
bind082 --> bind0
bind083(["wd:Q960447"])
bind083 --> bind0
bind084(["wd:Q17277950"])
bind084 --> bind0
bind085(["wd:Q95984336"])
bind085 --> bind0
bind086(["wd:Q3205060"])
bind086 --> bind0
bind087(["wd:Q164517"])
bind087 --> bind0
bind088(["wd:Q1170315"])
bind088 --> bind0
bind089(["wd:Q3877556"])
bind089 --> bind0
bind090(["wd:Q5526647"])
bind090 --> bind0
bind091(["wd:Q1192436"])
bind091 --> bind0
bind092(["wd:Q1052784"])
bind092 --> bind0
bind093(["wd:Q3210239"])
bind093 --> bind0
bind094(["wd:Q2905377"])
bind094 --> bind0
bind095(["wd:Q1061035"])
bind095 --> bind0
bind096(["wd:Q19609193"])
bind096 --> bind0
bind097(["wd:Q19904229"])
bind097 --> bind0
bind098(["wd:Q1769529"])
bind098 --> bind0
bind099(["wd:Q19760121"])
bind099 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P18".-> v4
end
bind1[/"if(bound(?commons_image),?commons_image,http://commons.wikimedia.org/wiki/Special:FilePath/No%20image%20available.svg)"/]
v4 --o bind1
bind1 --as--o v5
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P170".-> v6
v6 --"rdfs:label"--> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P571".-> v7
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P577".-> v8
end
bind2[/"if(bound(?inception),?inception,?publication)"/]
v7 --o bind2
v8 --o bind2
bind2 --as--o v9
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind6[/"sample(?image)"/]
v5 --o bind6
bind6 --as--o v10
bind7[/"?creatorname"/]
v2 --o bind7
bind7 --as--o v11
bind8[/"year-from-dateTime()"/]
null --o bind8
bind8 --as--o v12