query-65a39748b23594b77d30f866dc921836

rq turtle/ttl

title: Denkmale in Berlin SELECT ?object ?objectLabel ?creator ?creatorLabel ?coords ?img WHERE { VALUES ?werk { wd:Q860861 wd:Q4989906 } # definiert Objektkategorien ?object wdt:P31 ?werk ; wdt:P131* wd:Q64 . # im Raum Berlin OPTIONAl { ?object wdt:P625 ?coords . } OPTIONAL { ?object wdt:P18 ?img. } OPTIONAL { ?object wdt:P170 ?creator . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # ergänzt Labels }

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#>
#title: Denkmale in Berlin
SELECT ?object ?objectLabel ?creator ?creatorLabel ?coords ?img WHERE {
  VALUES ?werk { wd:Q860861 wd:Q4989906 } # definiert Objektkategorien
  ?object wdt:P31 ?werk ;
          wdt:P131* wd:Q64 . # im Raum Berlin
  OPTIONAl { ?object wdt:P625 ?coords . }
  OPTIONAL { ?object wdt:P18 ?img. }
  OPTIONAL { ?object wdt:P170 ?creator . }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # ergänzt Labels
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?coords"):::projected v5("?creator"):::projected v4("?img"):::projected v2("?object"):::projected v1("?werk") c8(["bd:serviceParam"]):::iri c3(["wd:Q64"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?werk/] bind0-->v1 bind00(["wd:Q860861"]) bind00 --> bind0 bind01(["wd:Q4989906"]) bind01 --> bind0 v2 --"wdt:P31"--> v1 v2 --"wdt:P131"--> c3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P625".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P170".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end