query-a27fa02e619ec0cd1a5f7371aa74e92c

rq turtle/ttl

Mappa di Roma

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 ?luogo ?luogoLabel ?coordinate
WHERE {
  ?luogo wdt:P131 wd:Q220 .
  OPTIONAL { ?luogo wdt:P625 ?coordinate . }
  { ?luogo wdt:P31/wdt:P279* wd:Q7075 . }
  UNION
  { ?luogo wdt:P31/wdt:P279* wd:Q33506 . }
  UNION
  { ?luogo wdt:P31 wd:Q16970 . }
  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; v2("?coordinate"):::projected v1("?luogo"):::projected a1((" ")) a2((" ")) c6(["wd:Q7075"]):::iri c7(["wd:Q33506"]):::iri c10(["bd:serviceParam"]):::iri c12(["it,en"]):::literal c8(["wd:Q16970"]):::iri c2(["wd:Q220"]):::iri v1 --"wdt:P131"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P625".-> v2 end 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"--> c8 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c7 end union1r <== or ==> union1l end end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c6 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end