query-3ff81a3a2865fc471d11368114d52fab
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 bd: <http://www.bigdata.com/rdf#>
#title:biblioteche pubbliche in Italia con/senza ISIL
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?comuneLabel ?coord ?layer WHERE {
?item wdt:P31 wd:Q28564; wdt:P17 wd:Q38; wdt:P131 ?comune.
OPTIONAL { ?item wdt:P791 ?isil . BIND("ISIL" as ?layer) } .
?item wdt:P625 ?coord
SERVICE wikibase:label { bd:serviceParam wikibase:language "it, en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?comune")
v5("?coord"):::projected
v3("?isil")
v1("?item"):::projected
v4("?layer"):::projected
c4(["wd:Q38"]):::iri
c9(["bd:serviceParam"]):::iri
c2(["wd:Q28564"]):::iri
c11(["it, en"]):::literal
v1 --"wdt:P31"--> c2
v1 --"wdt:P17"--> c4
v1 --"wdt:P131"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P791".-> v3
bind0[/"'ISIL'"/]
bind0 --as--o v4
end
v1 --"wdt:P625"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end