query-00568da3a4e358f4d78c71e01e33c7aa

rq turtle/ttl

:Dipsacus fullonumVersione semplificata, sempre di @ ]reply[10:13, 4 June 2020 (UTC) dosisEpì-- Epìdosis

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, musei e chiese a Roma
#defaultView:Map
SELECT DISTINCT ?luogo ?luogoLabel ?coordinate ?layer
WHERE {
  VALUES ?layer { wd:Q7075 wd:Q33506 wd:Q16970 } # biblioteca, museo e chiesa
  ?luogo wdt:P131 wd:Q220 .
  OPTIONAL { ?luogo wdt:P625 ?coordinate . }
  ?luogo wdt:P31/wdt:P279* ?layer.
  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; v3("?coordinate"):::projected v1("?layer"):::projected v2("?luogo"):::projected a1((" ")) c7(["bd:serviceParam"]):::iri c9(["it,en"]):::literal c2(["wd:Q220"]):::iri bind0[/VALUES ?layer/] bind0-->v1 bind00(["wd:Q7075"]) bind00 --> bind0 bind01(["wd:Q33506"]) bind01 --> bind0 bind02(["wd:Q16970"]) bind02 --> bind0 v2 --"wdt:P131"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P625".-> v3 end v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end