To keep it short as there is a discussion on SO:

You uploaded your current data: https://file.io/MlAYgy72jjsa

You can't simply load an GML file into Jena - I mean, ok it's XML and Jena will produce some RDF triples (and a lots of warnings for good reasons). But this is not the format you need for GeoSPARQL. The GML data has be represented as a literal with the datatype geo:gmlLiteral attached to a geometry object. That's it.

Like for WKT

"Point(-83.38 33.95)"^^<http://www.opengis.net/ont/geosparql#wktLiteral>

you have to do it for GML and put the whole XML serialization of the point into a literal:

"<gml:Point
 srsName=\"http://www.opengis.net/def/crs/OGC/1.3/CRS84\";
 xmlns:gml=\"http://www.opengis.net/ont/gml\";>
 <gml:pos>-83.38 33.95</gml:pos>
</gml:Point>"^^<http://www.opengis.net/ont/geosparql#gmlLiteral>

That's the only way how any GeoSPARQL capable store knows how to parse and index the geospatial data.



On 05.07.21 16:02, Matt Whitby wrote:
Hello all.

My work address didn't work for this list so I'll use my personal one.

I've lost of how many weeks I've been banging my head against the desk
trying to get GeoSparql to work. I appreciate that not enough people use
Jena GeoSparql to warrant a group, so okay if I vent via this list?

Reply via email to