query-ca56165adf9c4728af88d39f59754a29

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)located in the administrative territorial entity (P131)start time (P580)end time (P582)point in time (P585)coordinate location (P625)

Use at

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#>
SELECT DISTINCT ?item ?name ?place ?coord ?start ?end ?pointintime WHERE {
  ?item (wdt:P31/wdt:P279*) wd:Q667276. # Art exhibitions
  OPTIONAL {?item wdt:P131 ?where}
  OPTIONAL {?item wdt:P580 ?start}
  OPTIONAL {?item wdt:P582 ?end}
  OPTIONAL {?item wdt:P585 ?pointintime}
  OPTIONAL {?item wdt:P625 ?coord}
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en,fr,de,es,nl,ru".
    ?item rdfs:label ?name.
    ?where rdfs:label ?place
  }
}
ORDER BY ?place ?name

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v8("?coord"):::projected v6("?end"):::projected v3("?item"):::projected v2("?name"):::projected v1("?place"):::projected v7("?pointintime"):::projected v5("?start"):::projected v4("?where") a1((" ")) c3(["wd:Q667276"]):::iri c10(["bd:serviceParam"]):::iri c12(["#91;AUTO_LANGUAGE#93;,mul,en,fr,de,es,nl,ru"]):::literal v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P131".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P580".-> v5 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P582".-> v6 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P585".-> v7 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P625".-> v8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 v3 --"rdfs:label"--> v2 v4 --"rdfs:label"--> v1 end