Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpatialIndex.getSpatialIndexItems fails on blank nodes #81

Open
Aklakan opened this issue Jan 17, 2025 · 0 comments
Open

SpatialIndex.getSpatialIndexItems fails on blank nodes #81

Aklakan opened this issue Jan 17, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Aklakan
Copy link
Member

Aklakan commented Jan 17, 2025

Version

5.3.0-SNAPSHOT

What happened?

The method should ignore data.
Wikidata may use blank nodes to indicate absent values - transforming this to geosparql vocab directly may cause introduction of these blank nodes as geometries.

Relevant output and stacktrace

2025-01-17 10:24:11] SpatialIndex INFO  building spatial index for graph https://data.coypu.org/wikidata/business/ ...
[2025-01-17 10:24:11] SpatialIndex INFO  Feature-hasGeometry-Geometry statements found.
[2025-01-17 10:24:11] Fuseki     WARN  [66] RC = 500 : _:0d6264590683c987ba32109649e59982
org.apache.jena.rdf.model.LiteralRequiredException: _:0d6264590683c987ba32109649e59982
        at org.apache.jena.rdf.model.impl.ResourceImpl.asLiteral(ResourceImpl.java:133) ~[jena-fuseki-server-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
        at org.apache.jena.geosparql.spatial.SpatialIndex.getGeometryLiteralIndexItems(SpatialIndex.java:631) ~[jena-fmod-geosparql-0.0.0-SNAPSHOT.jar:?]
        at org.apache.jena.geosparql.spatial.SpatialIndex.getSpatialIndexItems(SpatialIndex.java:596) ~[jena-fmod-geosparql-0.0.0-SNAPSHOT.jar:?]
        at org.apache.jena.geosparql.spatial.SpatialIndex.buildSpatialIndexTree(SpatialIndex.java:356) ~[jena-fmod-geosparql-0.0.0-SNAPSHOT.jar:?]
        at org.apache.jena.geosparql.spatial.SpatialIndex.buildSpatialIndex(SpatialIndex.java:452) ~[jena-fmod-geosparql-0.0.0-SNAPSHOT.jar:?]
        at org.apache.jena.fuseki.mod.geosparql.SpatialIndexComputeService.doPost(SpatialIndexComputeService.java:127) ~[jena-fmod-geosparql-0.0.0-SNAPSHOT.jar:?]
        at org.apache.jena.fuseki.servlets.ActionREST.doPost$(ActionREST.java:96) ~[jena-fuseki-server-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
        at org.apache.jena.fuseki.servlets.ActionREST.execute(ActionREST.java:45) ~[jena-fuseki-server-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
        at org.apache.jena.fuseki.servlets.ActionService.executeLifecycle(ActionService.java:58) ~[jena-fuseki-server-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
        at org.apache.jena.fuseki.servlets.ActionREST.execAny(ActionREST.java:159) ~[jena-fuseki-server-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
        at org.apache.jena.fuseki.servlets.ActionProcessor.execPost(ActionProcessor.java:50) ~[jena-fuseki-server-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]
        at org.apache.jena.fuseki.servlets.ActionProcessor.process(ActionProcessor.java:34) ~[jena-fuseki-server-5.0.0-SNAPSHOT.jar:5.0.0-SNAPSHOT]

Are you interested in making a pull request?

None

@Aklakan Aklakan added the bug Something isn't working label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant