query-33d870d81fe40658fc94c19b09fe6196
Coordinates of HQ locations of companies that create software plotted on a map
Use at
- https://query.wikidata.org/sparql
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#>
#defaultView:Map
SELECT DISTINCT ?dev ?devLabel ?lei ?coords WHERE {
?software wdt:P31/wdt:P279* wd:Q7397.
{ ?software wdt:P178 ?dev. }
UNION
{ ?software wdt:P176 ?dev. }
UNION
{ ?software wdt:P750 ?dev. }
?software wdt:P178 ?dev.
?dev wdt:P159 ?place.
?place wdt:P625 ?coords.
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;
v4("?coords"):::projected
v2("?dev"):::projected
v3("?place")
v1("?software")
a1((" "))
c3(["wd:Q7397"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
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;
v1 --"wdt:P750"--> v2
end
subgraph union1r[" "]
style union1r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P176"--> v2
end
union1r <== or ==> union1l
end
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P178"--> v2
end
union0r <== or ==> union0l
end
v1 --"wdt:P178"--> v2
v2 --"wdt:P159"--> v3
v3 --"wdt:P625"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end