sgExecuter.setStorage(localStorage);
sgExecuter.setP2PNetwork(p2pInstance);
/*
* create an query evaluator for the local storage, which is evaluated in local storage
*/
QueryEvaluator localEvaluator = new QueryClientWithSubgraphTransmission(localStorage,distribution,sgExecuter) {
@Override
public String toString() {
return "LocalQueryExecuter for instance " + instance;
}
};
Collection<URILiteral> defaultGraphs = new LinkedList<URILiteral>();
// init with empty dataset ...
LiteralFactory.setType(MapType.NOCODEMAP);
defaultGraphs.add(LiteralFactory
.createURILiteralWithoutLazyLiteral("<inlinedata:>"));
Collection<URILiteral> namedGraphs = new LinkedList<URILiteral>();
localEvaluator.prepareInputData(defaultGraphs, namedGraphs);
queryClientInstance.prepareInputData(defaultGraphs, namedGraphs);
try {
PhysicalOptimizations.memoryReplacements();
} catch (Exception e) {
//ignore