query-80d54a95268ab1ef7cbaffbf2be2cc1b
Map of all KML files
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Coordinates of items with KML filesĀ ;)
# by Jura1, 2016-08-27
#defaultView:Map
SELECT
?item ?itemLabel ?itemDescription
(SAMPLE (?coor) as ?coor1)
(SAMPLE (?layerLabel) as ?layerLabel1)
(SAMPLE (?layer) as ?layer)
(SAMPLE (?img) as ?image)
WHERE
{
?item wdt:P3096 [] .
?item wdt:P625 ?coor .
# uncomment the next line to limit to enwiki
# [] schema:about ?itemĀ ; schema:isPartOf <https://en.wikipedia.org/> .
OPTIONAL { ?item wdt:P31 ?layer } .
OPTIONAL { ?item wdt:P18 ?img } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,en" }
}
GROUP BY ?item ?itemLabel ?itemDescription
ORDER BY DESC(?item)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coor"):::projected
v6("?coor1")
v8("?image")
v4("?img"):::projected
v1("?item"):::projected
v8("?layer"):::projected
v5("?layerLabel"):::projected
v7("?layerLabel1")
a1((" "))
c6(["bd:serviceParam"]):::iri
c8(["en,en"]):::literal
v1 --"wdt:P3096"--> a1
v1 --"wdt:P625"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> v8
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind4[/"sample(?coor)"/]
v2 --o bind4
bind4 --as--o v6
bind5[/"sample(?layerLabel)"/]
v5 --o bind5
bind5 --as--o v7
bind6[/"sample(?layer)"/]
v8 --o bind6
bind6 --as--o v8
bind7[/"sample(?img)"/]
v4 --o bind7
bind7 --as--o v8