query-7553378b98b9a344d0ab05136c51aadb

rq turtle/ttl

(per modificare la regione/provincia/città presa in considerazione basta modificare Q1216 coll'elemento della località presa in analisi):(Q1216)Piedmont Aggiungo una lista sul 12:51, 8 September 2018 (UTC) dosisEpì. --(P131)located in the administrative territorial entity e (P18)image Ecco la lista: ho messo opzionali

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?img ?divammLabel ?wlm
WHERE {
  ?item wdt:P17 wd:Q38 . 
  ?item wdt:P2186 ?wlm . 
  ?item wdt:P131 ?divamm . 
  ?divamm wdt:P131* wd:Q1216 .
  OPTIONAL { ?item wdt:P373 ?dummy0 } FILTER(!bound(?dummy0))
  OPTIONAL { ?item wdt:P18 ?img } . 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?divamm") v1("?dummy0") v5("?img"):::projected v2("?item"):::projected v3("?wlm"):::projected c5(["wd:Q1216"]):::iri c2(["wd:Q38"]):::iri c11(["#91;AUTO_LANGUAGE#93;,it,en"]):::literal c9(["bd:serviceParam"]):::iri f0[["not bound(?dummy0)"]] f0 --> v1 v2 --"wdt:P17"--> c2 v2 --"wdt:P2186"--> v3 v2 --"wdt:P131"--> v4 v4 --"wdt:P131"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P373".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P18".-> v5 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end