query-13d501ab735b2a1db9c18ebc74c04c1b

rq turtle/ttl

Where is the most dense concentration of item ?Hi, part). The best I could to is: most but I'm stuck with the wikibase:aroundI had this question « Where is the most dense concentration of item ? ». Is it something that can be done with a query ? (probably with

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 ?item (COUNT(?place) AS ?count) WHERE {
  ?item wdt:P131+ wd:Q12130 ; wdt:P625 ?center .
  SERVICE wikibase:around {
    ?place wdt:P625 ?coord .
    bd:serviceParam wikibase:center ?center .
    bd:serviceParam wikibase:radius "1" .
  } .
}
GROUP BY ?item
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?center") v5("?coord") v6("?count") v2("?item"):::projected v4("?place"):::projected c8(["1"]):::literal c5(["bd:serviceParam"]):::iri c2(["wd:Q12130"]):::iri v2 --"wdt:P131"--> c2 v2 --"wdt:P625"--> v3 subgraph s1["http://wikiba.se/ontology#around"] style s1 stroke-width:4px; v4 --"wdt:P625"--> v5 c5 --"wikibase:center"--> v3 c5 --"wikibase:radius"--> c8 end bind1[/"count(?place)"/] v4 --o bind1 bind1 --as--o v6