query-3b2b65799d47347332ec6785c3b693b0
Propertiesinstance of (P31)inception (P571)founded by (P112)creator (P170)located in the administrative territorial entity (P131)movement (P135)genre (P136)
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 bd: <http://www.bigdata.com/rdf#>
#defaultView:Table
SELECT DISTINCT ?eventStart ?event ?eventLabel ?EventplaceLabel ?genreLabel ?mvtLabel ?whoseEvent ?whoseEventLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
{ ?event wdt:P31 wd:Q21076217. } #art project
optional { ?event wdt:P571 ?eventStart. }
optional { ?event wdt:P112 ?whoseEvent. }.
optional { ?event wdt:P170 ?whoseEvent. }.
optional { ?event wdt:P131 ?Eventplace. }
optional { ?event wdt:P135 ?mvt. }. ##only 1 labelled
optional { ?event wdt:P136 ?genre. }.
##BIND(IF(BOUND(?mvtLabel),?mvtLabel,?genreLabel) AS ?whatField).
}
ORDER BY ?eventStart
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?Eventplace")
v2("?event"):::projected
v1("?eventStart"):::projected
v6("?genre")
v5("?mvt")
v3("?whoseEvent"):::projected
c6(["wd:Q21076217"]):::iri
c2(["bd:serviceParam"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v2 --"wdt:P31"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P571".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P112".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P170".-> v3
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P131".-> v4
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P135".-> v5
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P136".-> v6
end