query-bcebfaddae31a6ab4cabe1853519cc8c

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#>
SELECT DISTINCT ?place ?placeLabel ?placeDescription ?image ?coord WHERE {
 MINUS { ?place wdt:P31 wd:Q27686 .}
  wd:Q490 wdt:P625 ?milanLoc .
  SERVICE wikibase:around {
    ?place wdt:P625 ?location .
    bd:serviceParam wikibase:center ?milanLoc .
    bd:serviceParam wikibase:radius "3" .
  } .
MINUS{  ?place wdt:P131 wd:Q490 .}
  OPTIONAL { ?place wdt:P18 ?image.}
  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("?image"):::projected v3("?location") v2("?milanLoc") v1("?place"):::projected c2(["wd:Q27686"]):::iri c6(["bd:serviceParam"]):::iri c9(["3"]):::literal c14(["it,en"]):::literal c3(["wd:Q490"]):::iri subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P31"--> c2 end c3 --"wdt:P625"--> v2 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v1 --"wdt:P625"--> v3 c6 --"wikibase:center"--> v2 c6 --"wikibase:radius"--> c9 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P131"--> c3 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P18".-> v4 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c6 --"wikibase:language"--> c14 end