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 [email protected].
To unsubscribe, please send an email to: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to