jena icon indicating copy to clipboard operation
jena copied to clipboard

Ability to render GeoSPARQL results on a map in Fuseki-UI

Open SimonBin opened this issue 1 month ago • 3 comments

Version

6.0.0

Feature

A small convenience feature for the Fuseki UI, add a Geo plug-in to be able to render GeoSPARQL results on a map.

Example: image

Are you interested in contributing a solution yourself?

Yes

SimonBin avatar Nov 13 '25 19:11 SimonBin

What happens if there is no geo? Just an empty tab? What "geo" can it cope with? If I did a geo search of my local city, does it adjust the map?

FWIW I love the inland port.

afs avatar Nov 24 '25 21:11 afs

Hi @afs Initially, there is just an empty tab.

If the result set contains a column whose types are geo:wktLiteral, then an openstreetmap/leaflet map is displayed.

Otherwise, the message "Could not render results with the Geo plugin" is shown and the tab text is dimmed

Currently, only CRS84 is supported by the plug-in, so it may be needed to call

BIND(spatialF:transformSRS(?geom_,
<http://www.opengis.net/def/crs/OGC/1.3/CRS84>) AS ?geom)

for the geometries to be rendered correctly

GeoJSON (which is CRS84-only) should be supported, but currently there is a bug. Once it is fixed, one could also use BIND(spatialF:transformDatatype(?geom_, geo:geoJSONLiteral) AS ?geom)

The map is centred on the boundary of the resultset, so if you add a spatialF:withinBoxGeom filter (or similar) you should directly see the right place

NB the plug-in itself is created by @thib-g, I'm just suggesting to include it

SimonBin avatar Nov 25 '25 06:11 SimonBin

Currently, only CRS84 is supported by the plug-in, so it may be needed to call

There is a PR to allow it to support all CRS, relying on the SRID to be defined in the WKTliteral according to GeoSPARQL requirements.

It would be really nice if Jena had this out of the box

MathiasVDA avatar Nov 25 '25 07:11 MathiasVDA