query-c67f4fc06f81d1cae8745549e9cb5d13
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
PREFIX q: <http://www.wikidata.org/prop/qualifier/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
SELECT ?a ?aLabel ?article ?lat ?long WHERE {
?a wdt:P17 wd:Q148 .
?a p:P625 ?statement .
?statement psv:P625 ?coordinate_node .
?coordinate_node wikibase:geoLatitude ?lat .
?coordinate_node wikibase:geoLongitude ?long .
?article schema:about ?a .
?article schema:inLanguage "sv" .
?article schema:isPartOf <https://sv.wikipedia.org/>.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "sv" .
}
}#LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?a"):::projected
v6("?article"):::projected
v3("?coordinate_node")
v4("?lat"):::projected
v5("?long"):::projected
v2("?statement")
c9(["sv"]):::literal
c2(["wd:Q148"]):::iri
c13(["bd:serviceParam"]):::iri
c11([https://sv.wikipedia.org/]):::iri
v1 --"p:direct/P17"--> c2
v1 --"p:P625"--> v2
v2 --"p:statement/value/P625"--> v3
v3 --"wikibase:geoLatitude"--> v4
v3 --"wikibase:geoLongitude"--> v5
v6 --"schema:about"--> v1
v6 --"schema:inLanguage"--> c9
v6 --"schema:isPartOf"--> c11
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c9
end