query-136c9728d639114a37b1be075b016bc6
Return a map plotted with the geo coordinates for the locations of JISC member institutions
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
SELECT ?orgLabel ?hqLabel ?coord ?lat ?lon WHERE {
?org wdt:P463 wd:Q6269240.
?org wdt:P159 ?hq.
OPTIONAL { ?hq wdt:P625 ?coord. }
OPTIONAL {
?hq p:P625 ?statement.
?statement psv:P625 ?node.
?node wikibase:geoLatitude ?lat.
?node wikibase:geoLongitude ?lon.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coord"):::projected
v2("?hq")
v6("?lat"):::projected
v7("?lon"):::projected
v5("?node")
v1("?org")
v4("?statement")
c10(["bd:serviceParam"]):::iri
c2(["wd:Q6269240"]):::iri
c12(["en"]):::literal
v1 --"p:direct/P463"--> c2
v1 --"p:direct/P159"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P625".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P625".-> v4
v4 --"p:statement/value/P625"--> v5
v5 --"wikibase:geoLatitude"--> v6
v5 --"wikibase:geoLongitude"--> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end