SANSA-Stack icon indicating copy to clipboard operation
SANSA-Stack copied to clipboard

GeoSPARQL

Open akuckartz opened this issue 5 years ago • 4 comments

Is GeoSPARQL supported? If not: What would be required to do?

akuckartz avatar Aug 02 '20 14:08 akuckartz

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.

LorenzBuehmann avatar Oct 06 '20 10:10 LorenzBuehmann

Test

patrickwestphal avatar Oct 30 '20 11:10 patrickwestphal

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.

Aklakan avatar Jan 15 '21 03:01 Aklakan

@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?

Aklakan avatar Jun 11 '21 21:06 Aklakan