query-624a8152d9825525a5e1251941d1790f

rq turtle/ttl

TODO

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#>
SELECT DISTINCT ?item ?itemLabel ?place ?placeLabel ?id ?coords ?article ?mapflags ?rgb WHERE {

  ?place wdt:P131* wd:Q1223 .
  ?item wdt:P291|wdt:P159|wdt:P131 ?place .
  ?c wdt:P279* wd:Q11032 .
  ?item wdt:P31 ?c .
  ?item wdt:P17|wdt:P495 wd:Q30 .
  OPTIONAL{?item wdt:P5454 ?id .}
  ?place wdt:P625 ?coords.

  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?c") v5("?coords"):::projected v4("?id"):::projected v2("?item"):::projected v1("?place"):::projected c9(["wd:Q30"]):::iri c16(["en"]):::literal c6(["wd:Q11032"]):::iri c14(["bd:serviceParam"]):::iri c2(["wd:Q1223"]):::iri v1 --"wdt:P131"--> c2 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; v2 --"wdt:P131"--> v1 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P159"--> v1 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P291"--> v1 end union0r <== or ==> union0l end v3 --"wdt:P279"--> c6 v2 --"wdt:P31"--> v3 subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P495"--> c9 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P17"--> c9 end union2r <== or ==> union2l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P5454".-> v4 end v1 --"wdt:P625"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end