query-bc989f28ca75aebda54300ebdca84f0c
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 specializzate e di conservazione in Italia. layers
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?coord ?layer WHERE {
{?item wdt:P31 wd:Q385994} UNION {?item wdt:P31 wd:Q105763925}.
?item wdt:P17 wd:Q38; wdt:P791 ?isil.
OPTIONAL { ?item wdt:P31 wd:Q385994 . BIND("specializzate" as ?layer) }
OPTIONAL { ?item wdt:P31 wd:Q105763925 . BIND("conservazione" 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
c5(["wd:Q38"]):::iri
c9(["bd:serviceParam"]):::iri
c2(["wd:Q385994"]):::iri
c3(["wd:Q105763925"]):::iri
c11(["it, en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c2
end
union0r <== or ==> union0l
end
v1 --"wdt:P17"--> c5
v1 --"wdt:P791"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> c2
bind0[/"'specializzate'"/]
bind0 --as--o v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P31".-> c3
bind1[/"'conservazione'"/]
bind1 --as--o v4
end
v1 --"wdt:P625"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end