Utente:Galessandroni/Wikidata: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Etichetta: Editor wikitesto 2017
Nessun oggetto della modifica
Etichetta: Editor wikitesto 2017
Riga 52:
BIND(IF(BOUND(?img),'img','no img') AS ?layer)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
}}
 
== Scuole superiori della provincia di Pesaro e Urbino ==
 
{{SPARQL|query=
# Scuole superiori della provincia di Pesaro e Urbino (Q16241)
SELECT ?item ?CodiceMeccanografico ?itemLabel ?indirizzo ?comune ?comuneLabel ?coords WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
?item wdt:P5114 ?CodiceMeccanografico.
FILTER(REGEX(?CodiceMeccanografico, "^.{2}[PQRST]"))
?item (wdt:P131*) wd:Q16241.
OPTIONAL { ?item wdt:P6375 ?indirizzo. }
OPTIONAL { ?item wdt:P131 ?comune. }
OPTIONAL { ?item wdt:P625 ?coords. }
}
ORDER BY (?comuneLabel) (?CodiceMeccanografico)
}}
 
== Biblioteche in Italia ==
 
{{SPARQL|query=
#Mappa delle biblioteche in Italia
# (Per essere presenti le biblioteche devono essere dotate di coordinate!)
#defaultView:Map
SELECT ?library ?libraryLabel ?coords WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it". }
?library (wdt:P31/(wdt:P279*)) wd:Q7075;
wdt:P17 wd:Q38;
wdt:P625 ?coords.
}
}}