You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "chaoshades (via GitHub)" <gi...@apache.org> on 2025/09/16 19:49:12 UTC

[D] Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index? [jena]

GitHub user chaoshades created a discussion: Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index?

## Question

Hello everyone, 
Does the new Spatial-Indexer feature added in Jena Fuseki 5.5.0 also reload the spatial index without restarting?
> from this great contribution : #3027 

## Description

We followed the steps documented here https://github.com/apache/jena-site/pull/213 to setup the config and the spatial index is regenerated without any issue. However, Fuseki needs to be restarted to reload the index.

It's quite fast to restart though and we are running in containers, so planning restarts would not be an issue if this is not available.

## Use Case

One of our system will export its geo-spatial data into Fuseki in a one-way sync fashion. The updates will be frequent because this is the main operational system and it would be better if the GeoSPARQL queries would operate on the fresh data.

## Configuration

I'm using the container version from [jena-fuseki-docker](https://github.com/apache/jena/tree/main/jena-fuseki2)

<details>

<summary>Entrypoint</summary>

```bash
./entrypoint.sh --conf /fuseki/run/config.ttl --modules=true
```
</details>

<details>

<summary>config.ttl</summary>

```turtle
PREFIX fuseki:    <http://jena.apache.org/fuseki#>
PREFIX rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs:      <http://www.w3.org/2000/01/rdf-schema#>
PREFIX tdb2:      <http://jena.apache.org/2016/tdb#>
PREFIX ja:        <http://jena.hpl.hp.com/2005/11/Assembler#>
PREFIX geosparql: <http://jena.apache.org/geosparql#>

<#service> rdf:type fuseki:Service;
    fuseki:name "geoDemo";

    fuseki:endpoint [ fuseki:operation fuseki:query ; fuseki:name "query" ];
    fuseki:endpoint [ fuseki:operation fuseki:update ; fuseki:name "update" ];
    fuseki:endpoint [ fuseki:operation fuseki:gsp-r ; fuseki:name "get" ];
    fuseki:endpoint [ fuseki:operation fuseki:gsp-rw ; fuseki:name "data" ];
    fuseki:endpoint [ fuseki:operation fuseki:upload ; fuseki:name "upload" ];
    fuseki:endpoint [ fuseki:operation fuseki:spatial-indexer ; fuseki:name "spatial-indexer" ] ;
    fuseki:dataset <#geo_ds> .

<#geo_ds> rdf:type geosparql:geosparqlDataset ;
    geosparql:spatialIndexFile   "DB/spatial.index";
    geosparql:srsUri <http://www.opengis.net/def/crs/OGC/1.3/CRS84> ;
    geosparql:inference            true ;
    geosparql:queryRewrite         true ;
    geosparql:indexEnabled         true ;
    geosparql:applyDefaultGeometry false ;
    geosparql:indexSizes           "-1,-1,-1" ;       # Default - unlimited.
    geosparql:indexExpires         "5000,5000,5000" ; # Default - time in milliseconds.
    geosparql:dataset <#baseDataset> ;
    .

<#baseDataset> rdf:type tdb2:DatasetTDB2 ;
    tdb2:location "DB/geoDemo" ;
    .
```
</details>

<details>

<summary>Jena Fuseki</summary>

```text
INFO org.apache.jena.fuseki.Server {} - Module: Spatial Indexer (5.5.0)
INFO org.apache.jena.fuseki.Server {} - Apache Jena Fuseki 5.5.0
...
```
</details>

GitHub link: https://github.com/apache/jena/discussions/3442

----
This is an automatically sent email for issues@jena.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@jena.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [D] Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index? [jena]

Posted by "scs-eb (via GitHub)" <gi...@apache.org>.
GitHub user scs-eb deleted a comment on the discussion: Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index?

@chaoshades - I was also exploring the spatial-indexer when I found this discussion.
So, I'm letting you know that I posted something pretty similar on the Jena users mailing list : https://lists.apache.org/thread/y07kpmsnln4zvxfo4wwvgypvofq4hcjn
I would also recommend you to subscribe if you are able to.

GitHub link: https://github.com/apache/jena/discussions/3442#discussioncomment-14503799

----
This is an automatically sent email for issues@jena.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@jena.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [D] Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index? [jena]

Posted by "scs-eb (via GitHub)" <gi...@apache.org>.
GitHub user scs-eb added a comment to the discussion: Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index?

@chaoshades - I was also exploring the spatial-indexer when I found this discussion.
So, I'm letting you know that I posted something pretty similar on the Jena users mailing list : https://lists.apache.org/thread/y07kpmsnln4zvxfo4wwvgypvofq4hcjn
I would also recommend you to subscribe if you are able to.

GitHub link: https://github.com/apache/jena/discussions/3442#discussioncomment-14503799

----
This is an automatically sent email for issues@jena.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@jena.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [D] Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index? [jena]

Posted by "chaoshades (via GitHub)" <gi...@apache.org>.
GitHub user chaoshades added a comment to the discussion: Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index?

@scs-eb thanks a lot, last week past way too fast.
I will close this discussion in favor of the post you made.

GitHub link: https://github.com/apache/jena/discussions/3442#discussioncomment-14532193

----
This is an automatically sent email for issues@jena.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@jena.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [D] Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index? [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
GitHub user afs added a comment to the discussion: Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index?

@chaoshades - you have more success in getting an answer to your question by send an email to the Jena users mailing list : users@jena.apache.org (you have to subscribe first if you are not already on that list).

GitHub link: https://github.com/apache/jena/discussions/3442#discussioncomment-14473146

----
This is an automatically sent email for issues@jena.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@jena.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org


Re: [D] Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index? [jena]

Posted by "scs-eb (via GitHub)" <gi...@apache.org>.
GitHub user scs-eb added a comment to the discussion: Jena Fuseki 5.5.0 - Does the Spatial-Indexer reload the spatial index?

@chaoshades - I was also exploring the spatial-indexer when I found this discussion.
So, I'm letting you know that I posted something pretty similar on the Jena users mailing list : https://lists.apache.org/thread/y07kpmsnln4zvxfo4wwvgypvofq4hcjn
I would also recommend you to subscribe if you are able to.

GitHub link: https://github.com/apache/jena/discussions/3442#discussioncomment-14503800

----
This is an automatically sent email for issues@jena.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@jena.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org