query-38df192179187715b046b33ce4a31ecc

rq turtle/ttl

UK map showing venues

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:Map
SELECT DISTINCT ?loc ?placeLabel ?place ?placeURI WHERE { { ?cooncil wdt:P17 wd:Q145}  . 
 { {?place wdt:P31 wd:Q207694 } UNION { ?place wdt:P31 wd:Q2190251} UNION { ?place wdt:P31 wd:Q7062022} UNION { ?place wdt:P31 wd:Q20897549} } ?place wdt:P276 ?cooncil . ?place wdt:P625 ?loc .
  ?place rdfs:label ?placeLabel. FILTER(LANG(?placeLabel) = "en").
  optional { ?place wdt:P18 ?placeURI } .
} LIMIT 3000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?cooncil") v4("?loc"):::projected v3("?place"):::projected v1("?placeLabel"):::projected v5("?placeURI"):::projected c5(["wd:Q207694"]):::iri c7(["wd:Q7062022"]):::iri c6(["wd:Q2190251"]):::iri c3(["wd:Q145"]):::iri c8(["wd:Q20897549"]):::iri f0[["?placeLabel = 'en'"]] f0 --> v1 v2 --"wdt:P17"--> c3 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; v3 --"wdt:P31"--> c8 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P31"--> c7 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P31"--> c6 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P31"--> c5 end union0r <== or ==> union0l end v3 --"wdt:P276"--> v2 v3 --"wdt:P625"--> v4 v3 --"rdfs:label"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P18".-> v5 end