query-1b1aa41ddd5eeb9364c316cc2bf9ef32

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 wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Graph
#defaultView:Timeline
SELECT DISTINCT ?eventStart ?event ?eventLabel ?mvtLabel (COUNT(?artist) AS ?count)   WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  VALUES ?eventTypes {
    wd:Q213156
    wd:Q212431
    wd:Q682010
    }
  {?event wdt:P31 wd:Q667276. }.
  ?event wdt:P136 ?eventTypes.
  OPTIONAL {?event wdt:P136 ?mvt. }
  OPTIONAL { ?event wdt:P580 ?eventStart.}
  OPTIONAL { {?event wdt:P175 ?artist. } UNION {?event wdt:P710 ?artist. } } #usually P710 participants but P175 catches at least one event

}
GROUP BY ?eventStart ?event ?eventLabel ?mvtLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?artist"):::projected v6("?count") v2("?event"):::projected v4("?eventStart"):::projected v1("?eventTypes") v3("?mvt") c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wd:Q667276"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end bind0[/VALUES ?eventTypes/] bind0-->v1 bind00(["wd:Q213156"]) bind00 --> bind0 bind01(["wd:Q212431"]) bind01 --> bind0 bind02(["wd:Q682010"]) bind02 --> bind0 v2 --"wdt:P31"--> c6 v2 --"wdt:P136"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P136".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P580".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 -."wdt:P710".-> v5 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P175"--> v5 end union0r <== or ==> union0l end end bind2[/"count(?artist)"/] v5 --o bind2 bind2 --as--o v6