Re: Build by program a Dataset that is both textual and spatial

2018-12-24 Thread Jean-Marc Vanel
Le lun. 24 déc. 2018 à 08:29, Jean-Marc Vanel a écrit : > ... > but, as I wrote previously, it probably only works statically, that is, > TDB updates are probably not reflected in both indices. > I put the new config on a site in production, and I will confirm that. > Indeed, I checked that, alt

Re: Build by program a Dataset that is both textual and spatial

2018-12-23 Thread Jean-Marc Vanel
ly, these entities are for Lucene, to create documents > with fields, that will be used later by the query. At least that's my > understanding (: > > Hope that helps > > Bruno > > > > > > From: Bruno P. Kinoshita > To

Re: Build by program a Dataset that is both textual and spatial

2018-12-23 Thread Jean-Marc Vanel
___ > From: Jean-Marc Vanel > To: Jena users > Sent: Monday, 24 December 2018 9:36 AM > Subject: Re: Build by program a Dataset that is both textual and spatial > > > > I finally got it to work by coding: > > > https://github.com/jmvanel/semantic_fo

Re: Build by program a Dataset that is both textual and spatial

2018-12-23 Thread Bruno P. Kinoshita
that will be used later by the query. At least that's my understanding (: Hope that helps Bruno From: Bruno P. Kinoshita To: "users@jena.apache.org" Sent: Monday, 24 December 2018 12:27 PM Subject: Re: Build by program a Dataset that is both t

Re: Build by program a Dataset that is both textual and spatial

2018-12-23 Thread Bruno P. Kinoshita
es, right? Only programmatically? Cheers! Bruno From: Jean-Marc Vanel To: Jena users Sent: Monday, 24 December 2018 9:36 AM Subject: Re: Build by program a Dataset that is both textual and spatial I finally got it to work by coding: https://github.com/jmvanel/sema

Re: Build by program a Dataset that is both textual and spatial

2018-12-23 Thread Jean-Marc Vanel
king, but even though I had a text:index > >>> pointing to an index, when the query was executed, it would be > delegated to > >>> the DatasetGraphSpatial. This dataset knows nothing of text, and when > the > >>> TextQueryPF is executed, the textIndex is

Re: Build by program a Dataset that is both textual and spatial

2018-12-23 Thread ajs6f
ndex : >>> tried context and as a text-enabled dataset >>> [2018-12-23 21:03:57] TextQueryPF WARN No text index - no text search >>> performed >>> >>> So alas I couldn't post a working example. >>> >>> Hope that helps anywa

Re: Build by program a Dataset that is both textual and spatial

2018-12-23 Thread Jean-Marc Vanel
> [2018-12-23 21:03:57] TextQueryPF WARN No text index - no text search >> performed >> >> So alas I couldn't post a working example. >> >> Hope that helps anyway >> >> Bruno >> >> ps: Lucene locks its indexes, so I **guess** if you

Re: Build by program a Dataset that is both textual and spatial

2018-12-23 Thread Jean-Marc Vanel
helps anyway > > Bruno > > ps: Lucene locks its indexes, so I **guess** if you tried a different > approach of having another Fuseki pointing to the same directory, it would > probably raise an exception at some point > > > ____________ > > Fro

Re: Build by program a Dataset that is both textual and spatial

2018-12-23 Thread Bruno P. Kinoshita
___ From: Jean-Marc Vanel To: Jena users Sent: Saturday, 22 December 2018 10:03 PM Subject: Re: Build by program a Dataset that is both textual and spatial I reverted to trying configuration by code, with 2 more tries: https://github.com/jmvanel/semantic_forms/blob/master/scala/forms/src/main/

Re: Build by program a Dataset that is both textual and spatial

2018-12-22 Thread Jean-Marc Vanel
I reverted to trying configuration by code, with 2 more tries: https://github.com/jmvanel/semantic_forms/blob/master/scala/forms/src/main/scala/deductions/runtime/jena/lucene/LuceneIndex.scala#L109 : add to textual Dataset's Context a spatialIndex key to the spatialIndex. and line 135 : Use same L

Re: Build by program a Dataset that is both textual and spatial

2018-12-21 Thread Jean-Marc Vanel
I'm still clueless about how to configure Jena for textual AND spatial indexes. I tried yet another assembler file: https://github.com/jmvanel/semantic_forms/blob/master/scala/jena.spatial%2Btext3.assembler.ttl but even less good as https://github.com/jmvanel/semantic_forms/blob/master/scala/jena.s

Re: Build by program a Dataset that is both textual and spatial

2018-12-17 Thread Jean-Marc Vanel
Le lun. 17 déc. 2018 à 13:24, Andy Seaborne a écrit : > ... > :spatial_dataset rdf:type spatial:SpatialDataset ; > rdf:type text:TextDataset ; > ... > > Not sure but I think the system will create this twice. > > It would be better to have two declarations, one for spatial, one for >

Re: Build by program a Dataset that is both textual and spatial

2018-12-17 Thread Andy Seaborne
[] ja:loadClass... Not needed these days. Harmless. :spatial_dataset rdf:type spatial:SpatialDataset ; rdf:type text:TextDataset ; ... Not sure but I think the system will create this twice. It would be better to have two declarations, one for spatial, one for text. I'm not su

Re: Build by program a Dataset that is both textual and spatial

2018-12-16 Thread Jean-Marc Vanel
Sorry , I sent a bad link on the list, my assembler file is really this: https://github.com/jmvanel/semantic_forms/blob/master/scala/jena.spatial%2Btext.assembler.ttl Le dim. 16 déc. 2018 à 13:40, Marco Neumann a écrit : > you are missing the text index in the assembler. > > On Sun, Dec 16, 2

Re: Build by program a Dataset that is both textual and spatial

2018-12-16 Thread Marco Neumann
you are missing the text index in the assembler. On Sun, Dec 16, 2018 at 12:08 PM Jean-Marc Vanel wrote: > Yes indeed, > exactly with this assembler file: > > https://github.com/jmvanel/semantic_forms/blob/master/scala/jena.spatial.assembler.ttl > > And, when the Jena based application is starte

Re: Build by program a Dataset that is both textual and spatial

2018-12-16 Thread Jean-Marc Vanel
Yes indeed, exactly with this assembler file: https://github.com/jmvanel/semantic_forms/blob/master/scala/jena.spatial.assembler.ttl And, when the Jena based application is started with this same assembler file, the spatial queries work , as said above in this thread. Le dim. 16 déc. 2018 à 12:1

Re: Build by program a Dataset that is both textual and spatial

2018-12-16 Thread Marco Neumann
did you create the text index with jena.textindexer --desc=//config.ttl? On Sun, Dec 16, 2018 at 8:48 AM Jean-Marc Vanel wrote: > I fixed a stupid error in text index URI, resulting from pasting, in new > file jena.spatial+text.assembler.ttl: > > https://github.com/jmvanel/semantic_forms/blob/m

Re: Build by program a Dataset that is both textual and spatial

2018-12-16 Thread Jean-Marc Vanel
I fixed a stupid error in text index URI, resulting from pasting, in new file jena.spatial+text.assembler.ttl: https://github.com/jmvanel/semantic_forms/blob/master/scala/jena.spatial%2Btext.assembler.ttl Now, it reads: :spatial_dataset rdf:type spatial:SpatialDataset ; rdf:type text:T

Re: Build by program a Dataset that is both textual and spatial

2018-12-16 Thread Jean-Marc Vanel
So I tried a new file jena.spatial+text.assembler.ttl with separate Lucene indices for spatial and text: https://github.com/jmvanel/semantic_forms/blob/master/scala/jena.spatial%2Btext.assembler.ttl It defines a Dataset with both Dataset types and both Lucene indices: :spatial_dataset rdf:type

Re: Build by program a Dataset that is both textual and spatial

2018-12-15 Thread ajs6f
> On Dec 15, 2018, at 9:59 AM, Marco Neumann wrote: > >> *Question*: does that make sense to have a unique Lucene index for text and >> space ? >> It is possible at all? If yes, is it good in terms of disk space and >> performance? >> Like this: >> <#indexLucene> a text:TextIndexLucene ; >>

Re: Build by program a Dataset that is both textual and spatial

2018-12-15 Thread Marco Neumann
a spatial:SpatialIndexLucene ; ># etc ... > > > Le jeu. 13 déc. 2018 à 11:08, Jean-Marc Vanel a > écrit : > > > Hi all > > > > After looking the documentation, > > > > > https://jena.apache.org/documentation/query/spa

Re: Build by program a Dataset that is both textual and spatial

2018-12-15 Thread Jean-Marc Vanel
mentation, > > https://jena.apache.org/documentation/query/spatial-query.html#building-a-spatial-index > it is not clear which is the best way to build by program a Dataset that > is both textual and spatial. > > Both functions take an argument of type Dataset and return an "augmen

Build by program a Dataset that is both textual and spatial

2018-12-13 Thread Jean-Marc Vanel
Hi all After looking the documentation, https://jena.apache.org/documentation/query/spatial-query.html#building-a-spatial-index it is not clear which is the best way to build by program a Dataset that is both textual and spatial. Both functions take an argument of type Dataset and return an