* @return
*/
private BasicIndexRuleEvaluator initAndGetEvaluator(String ontology) {
try {
// set up parameters of evaluators and initialize the evaluators...
final MemoryIndexQueryEvaluator evaluator = new MemoryIndexQueryEvaluator();
evaluator.setupArguments();
evaluator.getArgs().set("type", "Turtle");
evaluator.getArgs().set("result", QueryResult.TYPE.MEMORY);
evaluator.getArgs().set("codemap", LiteralFactory.MapType.TRIEMAP);
evaluator.getArgs().set("distinct",
CommonCoreQueryEvaluator.DISTINCT.HASHSET);
evaluator.getArgs().set("join",
CommonCoreQueryEvaluator.JOIN.HASHMAPINDEX);
evaluator.getArgs().set("optional",
CommonCoreQueryEvaluator.JOIN.HASHMAPINDEX);
evaluator.getArgs().set("datastructure",
Indices.DATA_STRUCT.HASHMAP);
evaluator.init();
LinkedList<URILiteral> dataIRIs = new LinkedList<URILiteral>();
dataIRIs.add(LiteralFactory.createStringURILiteral("<inlinedata:"
+ ontology + ">"));