query-543a0b4789b2aa32a6e01361d1169eda

rq turtle/ttl

Artworks in galleries in Scotland. User:AllyD/GalleryArtworksVarious queries, now ported to . commons:User:AllyD/ScottishPaintingSee also Working on graphical view of exhibiting spaces:

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
SELECT DISTINCT ?place  ?placeLabel ?placeURI WHERE { { 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?cooncil wdt:P131 wd:Q22}  ?cooncil wdt:P31 wd:Q15060255. 
 { {?place wdt:P31 wd:Q207694 }  UNION { ?place wdt:P31 wd:Q1007870} UNION { ?place wdt:P31 wd:Q7062022} UNION { ?place wdt:P31 wd:Q20897549} } 
  ?place wdt:P131 ?cooncil . ?place wdt:P625 ?loc . 
  ?place wdt:P31 ?placeDescQ. 
  optional { ?place wdt:P18 ?placeURI } .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?cooncil") v3("?loc") v2("?place"):::projected v4("?placeDescQ") v5("?placeURI"):::projected c9(["wd:Q207694"]):::iri c6(["wd:Q22"]):::iri c10(["wd:Q1007870"]):::iri c8(["wd:Q15060255"]):::iri c2(["bd:serviceParam"]):::iri c11(["wd:Q7062022"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal c12(["wd:Q20897549"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P131"--> c6 v1 --"wdt:P31"--> c8 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c12 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c11 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c10 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P31"--> c9 end union0r <== or ==> union0l end v2 --"wdt:P131"--> v1 v2 --"wdt:P625"--> v3 v2 --"wdt:P31"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v5 end