I tested GeoSPARQL + Lucene API's together, extending previous code for GeoSPARQL alone. Correct results are obtained for both types of queries: GeoSparql & text.
Sketch of TDB initialization: textualDataset = TextDatasetFactory.create(dataset, textIndex) load2Cities(textualDataset) GeoSPARQLConfig.setupSpatialIndex(textualDataset) GeoSPARQLConfig.setupMemoryIndex() Source code is here: https://github.com/jmvanel/semantic_forms/blob/master/scala/forms/src/main/scala/deductions/runtime/jena/GeoSPARQLluceneTest.scala#L20 https://github.com/jmvanel/semantic_forms/blob/master/scala/forms/src/main/scala/deductions/runtime/jena/GeoSPARQLtest.scala#L13 That's with TDB 1 and Jena 3.17 . I suppose it would work also for TDB 2 and Jena 4.0.0-SNAPSHOT ... Jean-Marc Vanel <http://semantic-forms.cc:1952/display?displayuri=http://jmvanel.free.fr/jmv.rdf%23me> +33 (0)6 89 16 29 52 Twitter: @jmvanel , @jmvanel_fr ; chat: irc://irc.freenode.net#eulergui Chroniques jardin <http://semantic-forms.cc:1952/history?uri=http%3A%2F%2Fdbpedia.org%2Fresource%2FChronicle>