query-4482c7193d31ad19d269b602724730ab

rq turtle/ttl

Bauwerke mit Eigenschaft "ist ein Bauwerk", verfeinern

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#>
#-------------------------------------------------------------------------------
# ist ein Bauwerk --> todo genauer: Gebäude, Wohngebäude, Bürogebäude, Wasserturm, ...
#-------------------------------------------------------------------------------

PREFIX schema: <http://schema.org/>
#defaultView:Table;Map;ImageGrid;
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?image ?coordinate 
WHERE {
  ?item wdt:P131+ wd:Q1731.         # Objekt liegt in Verwaltungseinheit Dresden (oder Subklasse)
  ?item wdt:P31 wd:Q811979.
  OPTIONAL { ?item wdt:P18 ?image. }
  OPTIONAL { ?item wdt:P625 ?coordinate. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,[AUTO_LANGUAGE]". }
}
order by ?itemLabel ?itemDescription

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?coordinate"):::projected v4("?image"):::projected v3("?item"):::projected v2("?itemDescription"):::projected v1("?itemLabel"):::projected c8(["bd:serviceParam"]):::iri c4(["wd:Q811979"]):::iri c10(["de,#91;AUTO_LANGUAGE#93;"]):::literal c2(["wd:Q1731"]):::iri v3 --"wdt:P131"--> c2 v3 --"wdt:P31"--> c4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P18".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P625".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end