query-09b1614cc4d9c80b8ea384937b2a555e
Anagrafe delle biblioteche italiane Link alla pagina progetto su GWMAB
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:Distribuzione biblioteche per tipologia in Italia. layers (lista ridotta)
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?coord ?layer WHERE {
{?item wdt:P31/wdt:P279* wd:Q7075} .
?item wdt:P17 wd:Q38; wdt:P791 ?isil.
OPTIONAL { ?item wdt:P31 wd:Q7075 . BIND("biblioteche" as ?layer) }
OPTIONAL { ?item wdt:P31 wd:Q2326815 . BIND("comunali" as ?layer) }
OPTIONAL { ?item wdt:P31 wd:Q28564 . BIND("pubbliche" as ?layer) }
OPTIONAL { ?item wdt:P31 wd:Q385994 . BIND("specializzate" as ?layer) }
OPTIONAL { ?item wdt:P31 wd:Q105763925 . BIND("conservazione" as ?layer) } .
OPTIONAL { ?item wdt:P31 wd:Q1622062. BIND("universitarie" 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;
v4("?coord"):::projected
v2("?isil")
v1("?item"):::projected
v4("?layer"):::projected
a1((" "))
c7(["wd:Q2326815"]):::iri
c8(["wd:Q28564"]):::iri
c9(["wd:Q385994"]):::iri
c16(["it, en"]):::literal
c3(["wd:Q7075"]):::iri
c5(["wd:Q38"]):::iri
c14(["bd:serviceParam"]):::iri
c11(["wd:Q1622062"]):::iri
c10(["wd:Q105763925"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P17"--> c5
v1 --"wdt:P791"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> c3
bind0[/"'biblioteche'"/]
bind0 --as--o v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> c7
bind1[/"'comunali'"/]
bind1 --as--o v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> c8
bind2[/"'pubbliche'"/]
bind2 --as--o v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> c9
bind3[/"'specializzate'"/]
bind3 --as--o v4
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> c10
bind4[/"'conservazione'"/]
bind4 --as--o v4
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> c11
bind5[/"'universitarie'"/]
bind5 --as--o v4
end
v1 --"wdt:P625"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end