query-7e953c591ca0e2353b390bc6caa41cde

rq turtle/ttl

Graph of artists whose activites involve performanceGraph links to any allocated movement and to participation in events. Also adaptable for installation, conceptualism, etc.

Use at

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:Graph
SELECT DISTINCT ?artist ?artistLabel ?picTitle ?mvt ?mvtLabel ?rgb ?event ?eventLabel WHERE {

  { ?artist wdt:P101 wd:Q213156.}

  UNION

  { ?artist wdt:P136 wd:Q213156. } #Q213156 for performance, Q212431 for installations, Q203209 for conceptualism

  { ?artist wdt:P31 wd:Q5. }

  UNION

  { ?artist wdt:P31 wd:Q1400264. } #individuals and collective groups

  ?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).
  OPTIONAL {?artist wdt:P1344 ?event. ?event rdfs:label ?eventLabel. FILTER((LANG(?eventLabel)) = "en"). } #catches documenta etc

}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?artist"):::projected v3("?artistLabel"):::projected v9("?event"):::projected v1("?eventLabel"):::projected v7("?mvt"):::projected v2("?mvtLabel"):::projected v6("?picTitle"):::projected v5("?picURI") v8("?rgb"):::projected c3(["wd:Q213156"]):::iri c6(["wd:Q5"]):::iri c7(["wd:Q1400264"]):::iri f0[["?artistLabel = 'en'"]] f0 --> v3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P136"--> c3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P101"--> c3 end union0r <== or ==> union0l end subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P31"--> c7 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v4 --"wdt:P31"--> c6 end union1r <== or ==> union1l end v4 --"rdfs:label"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P18".-> v5 end bind1[/"if(bound(?picURI),?picURI,?artistname)"/] v5 --o bind1 null --o bind1 bind1 --as--o v6 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P135".-> v7 v7 --"rdfs:label"--> v2 end bind2[/"if(bound(?mvt),'D5FFEE','F4FFF4')"/] v7 --o bind2 bind2 --as--o v8 subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P1344".-> v9 v9 --"rdfs:label"--> v1 end