.................................................................... //indexing // -- Read and index all literal strings. IndexBuilderString larqBuilder = new IndexBuilderString() ; // -- Index statements as they are added to the model. model3.register(larqBuilder) ; FileManager.get().readModel(model3, MY_LOG_FILE1) ; // -- Finish indexing larqBuilder.closeWriter() ; model3.unregister(larqBuilder) ; // -- Create the access index IndexLARQ index = larqBuilder.getIndex() ; // index registration // -- Make globally available LARQ.setDefaultIndex(index) ; String queryString =" PREFIX db: select ?object { ?object db:textMatch '"+SearchObject+"'}" ; Query query = QueryFactory.create(queryString) ; QueryExecution qExec = QueryExecutionFactory.create(query, model3) ; ResultSetFormatter.out(System.out, qExec.execSelect(), query) ;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)