[ 
https://issues.apache.org/jira/browse/JENA-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17465729#comment-17465729
 ] 

Andy Seaborne commented on JENA-2230:
-------------------------------------

Yes, you can wrap a TDB dataset to add GeoSPARQL capability, or indeed any 
other kind of dataset.
The {{spatial.index}} file is generated if it does not exist or is empty, or 
built on startup each time. I'm still not clear what happens in GeoSPARQL about 
update.

Most of {{DatasetOperations}} is concerned with setting up the base data. The 
steps to setup the dataset, uncoupled from command line {{ArgsConfig}} are done 
in the assembler. There didn't seem to be much opportunity to share code so for 
simplicity and a smooth transition {{jena-fuseki-geosparql}} has been left 
alone.

A simple setup:
{noformat}
<#geo_ds> rdf:type geosparql:geosparqlDataset ;
    geosparql:inference true;
    geosparql:spatialIndexFile    "DB2/spatial.index";
    geosparql:dataset <#baseDataset> .

<#baseDataset> rdf:type tdb2:DatasetTDB2 ;
    tdb2:location "DB2" .
{noformat}

Temporary: development code:
[GeoAssembler|https://github.com/afs/jena/blob/geosparql/jena-geosparql/src/main/java/org/apache/jena/geosparql/system/GeoAssembler.java]

BTW: You can add Shiro to Fuseki main if you really want to. 
{{ExFusekiMain_2_AddShiro}} -- and now it should be considerably shorter with 
FusekiModules hooking in as the server starts up.  Separate conversation!

> Assembler for GeoSPARQL
> -----------------------
>
>                 Key: JENA-2230
>                 URL: https://issues.apache.org/jira/browse/JENA-2230
>             Project: Apache Jena
>          Issue Type: New Feature
>          Components: GeoSPARQL
>    Affects Versions: Jena 4.3.2
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Major
>             Fix For: Jena 4.4.0
>
>
> An assembler for the GeoSPARQL engine.
> This is for {{jena-geosparql}}, making it a loadable module for Jena and 
> usable with any Fuseki server.
> jena-fuseki-geosparql and its command line are unchanged.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to