rete
playground
Geo
Who ruled here? (point-in-polygon + time)
Label
S
E
Deutsches Reich @en
1890
1918
Königreich Preußen @en
1890
1907
Berlin @en
1881
1920
Run this query →
no server · no download · no account
caviri.github.io/rete
Run this query in the playground →
3 rows · 37.6 s · 56.0 MB of 168.3 MB read over HTTP range · no server, no download — the query runs in your browser.
The query
PREFIX ex: <http://ex/> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX geo: <http://www.opengis.net/ont/geosparql#> PREFIX geof: <http://www.opengis.net/def/function/geosparql/> SELECT ?label ?s ?e WHERE { ?x rdfs:label ?label ; ex:startYear ?s ; ex:endYear ?e ; geo:hasGeometry/geo:asWKT ?w . FILTER(?s <= 1900 && ?e >= 1900) FILTER(geof:sfContains(?w, "POINT(13.405 52.52)"^^geo:wktLiteral)) }
rete playground
·
documentation
·
github.com/caviri/rete