query-8a3e81436aa26c84b6111fb652b9b0c1

rq turtle/ttl

TODO

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#>
#title:biblioteche pubbliche universitarie, accademiche e scolastiche in Italia. layers
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?coord ?layer WHERE {
  {?item wdt:P31 wd:Q1076099} UNION {?item wdt:P31 wd:Q856234} UNION {?item wdt:P31 wd:Q1622062}.
  ?item wdt:P17 wd:Q38; wdt:P791 ?isil.
  OPTIONAL { ?item wdt:P31 wd:Q1076099. BIND("scolastica" as ?layer) } 
  OPTIONAL { ?item wdt:P31 wd:Q1622062. BIND("universitaria" as ?layer) } 
  OPTIONAL { ?item wdt:P31 wd:Q856234. BIND("accademica" 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 c3(["wd:Q856234"]):::iri c6(["wd:Q38"]):::iri c10(["bd:serviceParam"]):::iri c2(["wd:Q1076099"]):::iri c4(["wd:Q1622062"]):::iri c12(["it, en"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c4 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c3 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c2 end union0r <== or ==> union0l end v1 --"wdt:P17"--> c6 v1 --"wdt:P791"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P31".-> c2 bind0[/"'scolastica'"/] bind0 --as--o v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P31".-> c4 bind1[/"'universitaria'"/] bind1 --as--o v4 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P31".-> c3 bind2[/"'accademica'"/] bind2 --as--o v4 end v1 --"wdt:P625"--> v4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end