// get coreSPARQL query...
final boolean[] rules = { true, true, true, true, true, true, true,
true, true, true, true, true, true, true, false , true, true, true};
final SPARQL2CoreSPARQLParserVisitorImplementationDumper spvid = SPARQL2CoreSPARQLParserVisitorImplementationDumper.createInstance(rules);
final String corequery = spvid.visit(root);
// get root node of coreSPARQL query...
root = SPARQL1_1Parser.parse(corequery);
// generate VisualQuery and get root element of it...