tupleExpr = tupleExpr.clone();
if (!(tupleExpr instanceof QueryRoot)) {
// Add a dummy root node to the tuple expressions to allow the
// optimizers to modify the actual root node
tupleExpr = new QueryRoot(tupleExpr);
}
try {
KiWiTripleSource tripleSource = new KiWiTripleSource(this,valueFactory,includeInferred);
EvaluationStrategy strategy = new KiWiEvaluationStrategyImpl(tripleSource, dataset, connection);