query-ba5e79bec49737b9a6cab79ab7d696eb

rq turtle/ttl

Så er der aktikektoniske konstruktioner (stort dataset), man kan også bare arbejde med bygninger.

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 ?buildingItem ?buildingItemLabel ?kommuneItem ?kommuneItemLabel ?pictureItem ?coordItem
where {
  ?buildingItem wdt:P31/wdt:P279* wd:Q811979 ;
                wdt:P17 wd:Q35 .
  optional { ?buildingItem wdt:P131 ?kommuneItem }
  optional { ?buildingItem wdt:P18 ?pictureItem }
  optional { ?buildingItem wdt:P625 ?coordItem }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?buildingItem"):::projected v4("?coordItem"):::projected v2("?kommuneItem"):::projected v3("?pictureItem"):::projected a1((" ")) c10(["bd:serviceParam"]):::iri c3(["wd:Q811979"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal c5(["wd:Q35"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P17"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P131".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P625".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end