query-14c0f34fd75e3e3f87d5b8511b85dd64

rq turtle/ttl

biblioteche in Emilia-Romagna di NILDE presenti su Wikidata SELECT DISTINCT ?item ?itemLabel ?itemDescription ?comuneLabel WHERE { {?item wdt:P31/wdt:P279 wd:Q7075} UNION {?item wdt:P31 wd:Q856584 .} ?item wdt:P131/wdt:P131/wdt:P131 wd:Q1263 . ?item wdt:P463 wd:Q21272726 . ?item wdt:P131 ?comune . ?comune wdt:P625 ?comunecoord . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, it, fr, es, de". } }

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#>
#biblioteche in Emilia-Romagna di NILDE presenti su Wikidata
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?comuneLabel WHERE {
  {?item wdt:P31/wdt:P279* wd:Q7075} UNION {?item wdt:P31 wd:Q856584 .}
   ?item wdt:P131/wdt:P131/wdt:P131* wd:Q1263 .
   ?item wdt:P463 wd:Q21272726 .
   ?item wdt:P131 ?comune .
   ?comune wdt:P625 ?comunecoord .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, it, fr, es, de". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?comune") v3("?comunecoord") v1("?item"):::projected a1((" ")) a2((" ")) a3((" ")) c8(["wd:Q21272726"]):::iri c4(["wd:Q856584"]):::iri c3(["wd:Q7075"]):::iri c11(["bd:serviceParam"]):::iri c6(["wd:Q1263"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en, it, fr, es, de"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c4 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 end union0r <== or ==> union0l end v1 --"wdt:P131"--> a2 a2 --"wdt:P131"--> a3 a3 --"wdt:P131"--> c6 v1 --"wdt:P463"--> c8 v1 --"wdt:P131"--> v2 v2 --"wdt:P625"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end