Hello, I’m trying to create Lucene index (from Java) in my app
The test triples I have are: @base <http://ao.com/> . p:p1 <name> "abc fdjfh jlkgjdf" . p:p2 <name> "fsdkfj abc ffdsfs" . And my code to create the index is: Dataset ds = loadData(); … Resource res = ResourceFactory.createProperty("http://ao.com/name/"); EntityDefinition entDef = new EntityDefinition("uri", "text", res) ; Directory dir = new RAMDirectory(); Dataset indexDataset = TextDatasetFactory.createLucene(ds, dir, entDef, null); … FusekiEmbeddedServer server = FusekiEmbeddedServer.create().add("/ds", indexDataset).build() ; server.start() ; The server is starting and I can query the loaded data with regular SPARQL queries, but when I try to use the index (assuming I’ve created it correctly): PREFIX text: <http://jena.apache.org/text#> SELECT ?s { ?s text:query 'abc' ; } I get empty results: { "head": { "vars": [ "s" ] } , "results": { "bindings": [] } } What am I doing wrong? S.
