reteplayground
Geo

🗺️ Classes anchored to a place

SELECT ?class ?name ?instances ?wkt WHERE {
  ?class wdt:P625 ?wkt ;
         rete:instanceCount ?instances ;
         rdfs:label ?name . FILTER(lang(?name) = "en")
  FILTER(STRSTARTS(STR(?wkt), "Point("))
}
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → no server, no download — the query runs in your browser.

The query

PREFIX wdt: <http://www.wikidata.org/prop/direct/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rete: <https://w3id.org/rete/> SELECT ?class ?name ?instances ?wkt WHERE { ?class wdt:P625 ?wkt ; rete:instanceCount ?instances ; rdfs:label ?name . FILTER(lang(?name) = "en") FILTER(STRSTARTS(STR(?wkt), "Point(")) } LIMIT 50

rete playground · documentation · github.com/caviri/rete