Ability to render GeoSPARQL results on a map in Fuseki-UI
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:
Are you interested in contributing a solution yourself?
Yes
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.
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
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