query-09d9d2402e648d14f350f5d57df3782f
title:All archives (including subclass of archives) in Marche with coordinates SELECT DISTINCT ?item ?name ?coord ?lat ?lon WHERE { hint:Query hint:optimizer "None" . ?item wdt:P131 wd:Q1279 . ?item wdt:P31/wdt:P279 wd:Q166118 . ?item wdt:P625 ?coord . ?item p:P625 ?coordinate . ?coordinate psv:P625 ?coordinate_node . ?coordinate_node wikibase:geoLatitude ?lat . ?coordinate_node wikibase:geoLongitude ?lon . SERVICE wikibase:label { bd:serviceParam wikibase:language "it" . ?item rdfs:label ?name } } ORDER BY ASC (?name)
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:All archives (including subclass of archives) in Marche with coordinates
SELECT DISTINCT ?item ?name ?coord ?lat ?lon
WHERE
{
?item wdt:P131* wd:Q1279 .
?item wdt:P31/wdt:P279* wd:Q166118 .
?item wdt:P625 ?coord .
?item p:P625 ?coordinate .
?coordinate psv:P625 ?coordinate_node .
?coordinate_node wikibase:geoLatitude ?lat .
?coordinate_node wikibase:geoLongitude ?lon .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it" . ?item rdfs:label ?name }
}
ORDER BY ASC (?name)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coord"):::projected
v4("?coordinate")
v5("?coordinate_node")
v2("?item"):::projected
v6("?lat"):::projected
v7("?lon"):::projected
v1("?name"):::projected
a1((" "))
c14(["it"]):::literal
c5(["wd:Q166118"]):::iri
c12(["bd:serviceParam"]):::iri
c2(["wd:Q1279"]):::iri
v2 --"p:direct/P131"--> c2
v2 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c5
v2 --"p:direct/P625"--> v3
v2 --"p:P625"--> v4
v4 --"p:statement/value/P625"--> v5
v5 --"wikibase:geoLatitude"--> v6
v5 --"wikibase:geoLongitude"--> v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
v2 --"rdfs:label"--> v1
end