query-737edc4045321c3c60ebdf29ed97b4ac

rq turtle/ttl

Alle Seenarten im Rechteck der Koordinaten von Sizilien(Q15284)municipality , (Q515)city , (Q1402592)island group , (Q23442)island , (Q39594)bay , (Q185113)cape , (Q46831)mountain range , (Q8502)mountain , (Q4022)river analog für (Q244326)salt evaporation pond , (Q188025)salt lake , (Q187223)lagoon , (Q131681)reservoir auch für die Unterklassen (Q4951156)Sicily oder die Insel (Q1460)Sicily für die Region

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map
SELECT ?item ?itemLabel ?coordinate WHERE
{
   {
  SELECT ?item WHERE {
  wd:Q1460 wdt:P625 ?Center.    # Koordinatenpunkt von Region Sizilien
  SERVICE wikibase:around {
    ?item wdt:P625 ?coordinate.
    bd:serviceParam wikibase:center ?Center.
    bd:serviceParam wikibase:radius "300". # 300 Kilometer vom Koordinatenpunkt
  }
    } }
   {
  SELECT ?item WHERE {
      ?item wdt:P31/wdt:P279* wd:Q23397.       # See mit Unterklassen
} }  ?item p:P625 ?stat .
  ?stat a wikibase:BestRank .  
  ?stat psv:P625/wikibase:geoLongitude ?long. # Längengrad
  ?stat psv:P625/wikibase:geoLatitude ?lat.   # Breitengrad
  wd:Q1460 p:P1332/psv:P1332/wikibase:geoLatitude ?north . filter(?lat <= ?north ) # innerhalb des Rechtecks der Region Sizilien
  wd:Q1460 p:P1333/psv:P1333/wikibase:geoLatitude ?south . filter(?lat >= ?south )
  wd:Q1460 p:P1334/psv:P1334/wikibase:geoLongitude ?east . filter(?long <= ?east )
  wd:Q1460 p:P1335/psv:P1335/wikibase:geoLongitude ?west . filter(?long >= ?west )
  filter((?long <= 13.5) || (?lat >= 36.5) ) # Malta ausklammern
    ?item wdt:P625 ?coordinate.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "de,it,en,[AUTO_LANGUAGE]". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?Center") v9("?coordinate"):::projected v4("?east") v8("?item"):::projected v2("?lat") v1("?long") v6("?north") v5("?south") v10("?stat") v3("?west") a1((" ")) a2((" ")) a3((" ")) a4((" ")) a5((" ")) a6((" ")) a7((" ")) a8((" ")) a9((" ")) a10((" ")) a11((" ")) c6(["bd:serviceParam"]):::iri c3(["wd:Q1460"]):::iri c12(["wd:Q23397"]):::iri c15(["wikibase:BestRank"]):::iri c29(["de,it,en,#91;AUTO_LANGUAGE#93;"]):::literal c9(["300"]):::literal f0[["(?long <= '13.5^^xsd:decimal' || ?lat >= '36.5^^xsd:decimal')"]] f0 --> v1 f0 --> v2 f1[["?long >= ?west"]] f1 --> v1 f1 --> v3 f2[["?long <= ?east"]] f2 --> v1 f2 --> v4 f3[["?lat >= ?south"]] f3 --> v2 f3 --> v5 f4[["?lat <= ?north"]] f4 --> v2 f4 --> v6 c3 --"p:direct/P625"--> v7 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v8 --"p:direct/P625"--> v9 c6 --"wikibase:center"--> v7 c6 --"wikibase:radius"--> c9 end v8 --"p:direct/P31"--> a1 a1 --"p:direct/P279"--> c12 v8 --"p:P625"--> v10 v10 --"a"--> c15 v10 --"p:statement/value/P625"--> a2 a2 --"wikibase:geoLongitude"--> v1 v10 --"p:statement/value/P625"--> a3 a3 --"wikibase:geoLatitude"--> v2 c3 --"p:P1332"--> a4 a4 --"p:statement/value/P1332"--> a5 a5 --"wikibase:geoLatitude"--> v6 c3 --"p:P1333"--> a6 a6 --"p:statement/value/P1333"--> a7 a7 --"wikibase:geoLatitude"--> v5 c3 --"p:P1334"--> a8 a8 --"p:statement/value/P1334"--> a9 a9 --"wikibase:geoLongitude"--> v4 c3 --"p:P1335"--> a10 a10 --"p:statement/value/P1335"--> a11 a11 --"wikibase:geoLongitude"--> v3 v8 --"p:direct/P625"--> v9 subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c6 --"wikibase:language"--> c29 end