query-9bd1f70e0e4be7b2ccee79b7a1f37a6d

rq turtle/ttl

Dresdner Unternehmen mit Geokoordinaten (Headquarter) SELECT ?item ?itemLabel ?street ?coord ?industryLabel WHERE { ?item wdt:P31 wd:Q4830453. # item is a business company ?item wdt:P159 wd:Q1731. # located in Dresden ?item wdt:P452 ?industry. optional { ?item wdt:P669 ?coord. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". } }

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#>
#Dresdner Unternehmen mit Geokoordinaten (Headquarter)
SELECT ?item ?itemLabel ?street ?coord ?industryLabel
WHERE 
{
  ?item wdt:P31 wd:Q4830453. # item is a business company
  ?item wdt:P159 wd:Q1731.   # located in Dresden
  ?item wdt:P452 ?industry. 
  optional {
  ?item wdt:P669 ?coord.
    }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?coord"):::projected v2("?industry") v1("?item"):::projected c10(["#91;AUTO_LANGUAGE#93;,de"]):::literal c8(["bd:serviceParam"]):::iri c2(["wd:Q4830453"]):::iri c4(["wd:Q1731"]):::iri v1 --"wdt:P31"--> c2 v1 --"wdt:P159"--> c4 v1 --"wdt:P452"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P669".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end