query-15c99900c763a1be853998f1138021c1
10:32, 25 April 2017 (UTC) dosisEpìPer cambiare l'unità amministrativa basta cambiare il Q alla sesta riga. Ora do un'occhiata ai punti. --Ho messo tutte le query a "#defaultView:Map"; se togli quella riga, ti viene in formato elenco. Ci siamo: per "solo it.wiki" TODO
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT ?item ?itemLabel ?coord
WHERE {
?item wdt:P131 ?sub1 .
?sub1 (wdt:P131)* wd:Q2028 .
?item wdt:P625 ?coord .
{ ?sitelink schema:about ?item . ?sitelink schema:inLanguage "it" }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en" . }
}
Query found at
- https://www.wikidata.org/wiki/User:Alexmar983/Queries
- https://www.wikidata.org/wiki/User_talk:Ep%C3%ACdosis/Archive/2017
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coord"):::projected
v1("?item"):::projected
v4("?sitelink")
v2("?sub1")
c8(["bd:serviceParam"]):::iri
c10(["it,en"]):::literal
c6(["it"]):::literal
c2(["wd:Q2028"]):::iri
v1 --"wdt:P131"--> v2
v2 --"wdt:P131"--> c2
v1 --"wdt:P625"--> v3
v4 --"schema:about"--> v1
v4 --"schema:inLanguage"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end