On 05/12/2021 10:52, Jean-Marc Vanel wrote:
After having fixed bad data in the TDB database (latitude is present but
not longitude, coordinates as strings , see issue
https://issues.apache.org/jira/browse/JENA-2202 ),
there is an exception, probably related to the database content.
Here is the log:
Dec 05, 2021 9:57:33 AM org.apache.sis.referencing.factory.sql.EPSGFactory
<init>
WARNING: The “SIS_DATA” environment variable is not set.
2021-12-05T09:57:33.940Z [application-akka.actor.default-dispatcher-9] INFO
jena - SpatialIndex: isFunctionRegistered true
2021-12-05T09:57:33.941Z [application-akka.actor.default-dispatcher-9] INFO
jena - Before setupSpatialIndex
2021-12-05T09:57:33.948Z [application-akka.actor.default-dispatcher-9] INFO
o.a.j.g.c.GeoSPARQLOperations - Find Mode SRS - Started
And here is the exception:
*Exception: Unrecognised Geometry Datatype:
http://www.w3.org/2001/XMLSchema#string
<http://www.w3.org/2001/XMLSchema#string> Ensure that Datatype is extending
GeometryDatatype.*
org.apache.jena.geosparql.implementation.datatype.GeometryDatatype.get(GeometryDatatype.java:78)
(rdfDatatype instanceof GeometryDatatype)
so maybe rdfDatatype is null.
org.apache.jena.geosparql.implementation.datatype.GeometryDatatype.get(GeometryDatatype.java:86)
which would happen if datatypeURI not in the map.
org.apache.jena.geosparql.implementation.GeometryWrapper.extract(GeometryWrapper.java:1175)
org.apache.jena.geosparql.implementation.GeometryWrapper.extract(GeometryWrapper.java:1137)
org.apache.jena.geosparql.implementation.GeometryWrapper.extract(GeometryWrapper.java:1147)
org.apache.jena.geosparql.configuration.ModeSRS.search(ModeSRS.java:61)
org.apache.jena.geosparql.configuration.GeoSPARQLOperations.findModeSRS(GeoSPARQLOperations.java:520)
org.apache.jena.geosparql.spatial.SpatialIndex.buildSpatialIndex(SpatialIndex.java:336)
org.apache.jena.geosparql.configuration.GeoSPARQLConfig.setupSpatialIndex(GeoSPARQLConfig.java:263)
deductions.runtime.jena.RDFStoreLocalJenaProviderObject$.createDatabase(RDFStoreLocalJenaProvider.scala:175)
I use the latest Jena release 4.2.0 . Note that there is no trouble on my
development machine, only on the production site , although the source is
the same .
If it is a data issue, we need a producible example (java, or
data+query), to see further what is happening.
Also, please try the current development version of 4.3.0-SANSHOT which
has the JENA-2220 fix in it.
Andy
Jean-Marc Vanel