Hi,
I'm new to LARQ. I have a code for indexing triples using LARQ.

public void indexTriples() {
try {
model = ModelFactory.createDefaultModel();

IndexBuilderString larqBuilder = new IndexBuilderString("path where the index 
will be stored");
model.register(larqBuilder);
FileManager.get().readModel(model, "path of file containg triples ");
larqBuilder.closeWriter();
model.unregister(larqBuilder);
IndexLARQ index = new IndexLARQ(IndexReader.open("path where the index is 
stored"), new StandardAnalyzer());
LARQ.setDefaultIndex(index);


} catch (Exception e) {
System.out.println("Exception caught: " + e.toString());
}

}


It's creating a index file in specified folder.
But what I want is to read these index files into a model and then want to 
query model. Otherwise each time I run this code , it indexes all the data 
again.

Is is possible to read these index files into a jena model??

Reply via email to