Utente:Galessandroni/Wikidata: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Etichetta: Editor wikitesto 2017
Etichetta: Editor wikitesto 2017
Riga 72:
BIND(IF(BOUND(?img), '', 'Cercasi immagine') AS ?layer)
 
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
}}
 
=== Entrambi ===
 
Query scritta da Francesco Ansanelli
 
{{SPARQL|query=
#Beni culturali con codice WLM nelle Marche
#defaultView:Map
 
SELECT ?bene ?beneLabel ?wlmid ?coords ?img ?layer WHERE {
?bene wdt:P2186 ?wlmid;
wdt:P131* wd:Q1279 .
?bene wdt:P31 ?tipo.
OPTIONAL { ?bene wdt:P625 ?coords . }
OPTIONAL { ?bene wdt:P18 ?img . }
BIND(IF(?tipo NOT IN(wd:Q811534), IF(BOUND(?img), 'Monumento con immagine', 'Cercasi immagine per monumento'), IF(BOUND(?img), 'Albero con immagine', 'Cercasi immagine per albero')) AS ?layer)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}