SANSA-Stack
SANSA-Stack copied to clipboard
GeoSPARQL
Is GeoSPARQL supported? If not: What would be required to do?
No, we do not support GeoSPARQL.
"What would be required" -> basically a GeoSPARQL parser, some index structures, some query evaluator.
On the other hand, with the latest develop version and next release we do integrate Ontop as a SPARQL engine, and they have some kind of GeoSPARQL support. But it needs some mapping to a GIS enabled SQL language which Spark does not support afaik. I know there is GeoSpark, but I never touched it and we have to figure if it's possible to map from Ontop to it.
So, thanks for the request, will check and come back to you once we have more insights.
On a first glance it would seem it should be fairly straight forward getting ontop and sparqlify to work with GeoSPARK as the spatial support is already available in the SQL:
From https://github.com/lzugis/GeoSpark
SELECT superhero.name
FROM city, superhero
WHERE ST_Contains(city.geom, superhero.geom)
AND city.name = 'Gotham';
The main effort might be fiddling with the type mappings; geoSparks spatial datatype might need mapping to the VKG engines and also to Jena's GeoSPARQL types.
@LorenzBuehmann @patrickwestphal You have recently discussed the current state of the Sedona integration - maybe this issue can already be closed after a quick status update?