query-0b4df77fa5bdcf98d20441a4783f2dd0
Propertiesinstance of (P31)part of (P361)start time (P580)image (P18)participant (P710)movement (P135)
Use at
- https://query.wikidata.org/sparql
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#>
#defaultView:Table
SELECT DISTINCT ?eventStart ?eventinstance ?eventLabel ?eventURI ?artist ?artistLabel ?picTitle ?mvt ?mvtLabel ?rgb WHERE {
{ ?eventinstance wdt:P31 wd:Q72823. } UNION { ?eventinstance wdt:P361 wd:Q72823. }. #documenta instance
?eventinstance rdfs:label ?eventLabel. FILTER((LANG(?eventLabel)) = "en").
?eventinstance wdt:P580 ?eventStart
OPTIONAL { ?eventinstance wdt:P18 ?eventURI } .
?eventinstance wdt:P710 ?artist.
?artist rdfs:label ?artistLabel. FILTER((LANG(?artistLabel)) = "en")
OPTIONAL { ?artist wdt:P18 ?picURI } .
BIND(IF(BOUND(?picURI),?picURI,?artistname) AS ?picTitle).
OPTIONAL {?artist wdt:P135 ?mvt. ?mvt rdfs:label ?mvtLabel. FILTER((LANG(?mvtLabel)) = "en"). }
BIND(IF(BOUND(?mvt),"D5FFEE","F4FFF4") AS ?rgb).
}
ORDER BY ?eventStart ?artist
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?artist"):::projected
v4("?artistLabel"):::projected
v5("?eventLabel"):::projected
v1("?eventStart"):::projected
v7("?eventURI"):::projected
v6("?eventinstance"):::projected
v10("?mvt"):::projected
v3("?mvtLabel"):::projected
v9("?picTitle"):::projected
v8("?picURI")
v11("?rgb"):::projected
c3(["wd:Q72823"]):::iri
f0[["?artistLabel = 'en'"]]
f0 --> v4
f1[["?eventLabel = 'en'"]]
f1 --> v5
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v6 --"wdt:P361"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v6 --"wdt:P31"--> c3
end
union0r <== or ==> union0l
end
v6 --"rdfs:label"--> v5
v6 --"wdt:P580"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v6 -."wdt:P18".-> v7
end
v6 --"wdt:P710"--> v2
v2 --"rdfs:label"--> v4
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v8
end
bind2[/"if(bound(?picURI),?picURI,?artistname)"/]
v8 --o bind2
null --o bind2
bind2 --as--o v9
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P135".-> v10
v10 --"rdfs:label"--> v3
end
bind3[/"if(bound(?mvt),'D5FFEE','F4FFF4')"/]
v10 --o bind3
bind3 --as--o v11