query-c3128f136218f1589d9909eb1f904adb

rq turtle/ttl

مجمعة لكل بلدية على محور س، متحركة لكل بلدية على محور ص grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis seskupené podle obcí na ose x, animované podle obcí na ose z grouped per municipality on x-axis, animated per municipality on z-axis gruppiert nach Gemeinde auf der x-Achse, animiert pro Gemeinde auf der z-Achse grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis groupées par municipalité sur les abscisses, animé par municipalité sur la profondeur grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis raggruppati per comune sull'asse x, animati per comune sull'asse z grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis gegroepeerd per gemeente op x-as, geanimeerd per gemeente op z-as grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis grupperade efter kommun i en x-axel, animerade efter kommun i en y-axel grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis згруповані за муніципалітетами по осі x, анімовані за муніципалітетами по осі z grouped per municipality on x-axis, animated per municipality on z-axis grouped per municipality on x-axis, animated per municipality on z-axis

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geof: <http://www.opengis.net/def/function/geosparql/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:ScatterChart
PREFIX var_muntype: <http://www.wikidata.org/entity/Q15284>
PREFIX var_area: <http://www.wikidata.org/entity/Q6308>
SELECT ?from (?distNum AS ?kilometers) ?to (?to AS ?animation) WHERE {
  { SELECT ?mun (SAMPLE(?loc) AS ?loc)
    WHERE { ?mun wdt:P31/wdt:P279* var_muntype:;
                 wdt:P131 var_area:;
                 wdt:P625 ?loc. }
    GROUP BY ?mun
  }
  OPTIONAL {
    { SELECT (?mun AS ?mun2) (SAMPLE(?loc) AS ?loc2)
      WHERE { ?mun wdt:P31/wdt:P279* var_muntype:;
                   wdt:P131 var_area:;
                   wdt:P625 ?loc. }
      GROUP BY ?mun
    }
  }
  BIND(geof:distance(?loc, ?loc2) AS ?distNum).

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en".
    ?mun rdfs:label ?from.
    ?mun2 rdfs:label ?to.
  }
}
ORDER BY ?from ?kilometers

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v9("?animation") v7("?distNum"):::projected v1("?from"):::projected v9("?kilometers") v5("?loc") v6("?loc2") v3("?mun") v5("?mun2") v8("?to"):::projected a1((" ")) a2((" ")) c5([http://www.wikidata.org/entity/Q6308]):::iri c8(["bd:serviceParam"]):::iri c3([http://www.wikidata.org/entity/Q15284]):::iri c10(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v3 --"wdt:P131"--> c5 v3 --"wdt:P625"--> v5 bind1[/"sample(?loc)"/] v5 --o bind1 bind1 --as--o v5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P31".-> a2 a2 --"wdt:P279"--> c3 v3 --"wdt:P131"--> c5 v3 --"wdt:P625"--> v5 bind3[/"?mun"/] v3 --o bind3 bind3 --as--o v5 bind4[/"sample(?loc)"/] v5 --o bind4 bind4 --as--o v6 end bind5[/"http://www.opengis.net/def/function/geosparql/distance(?loc,?loc2)"/] v5 --o bind5 v6 --o bind5 bind5 --as--o v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 v3 --"rdfs:label"--> v1 v5 --"rdfs:label"--> v8 end bind6[/"?distNum"/] v7 --o bind6 bind6 --as--o v9 bind7[/"?to"/] v8 --o bind7 bind7 --as--o v9