final DebugContainerQuery<BasicOperatorByteArray, Node> dcq;
if (this.rdfs == RDFS.OPTIMIZEDRDFS || this.rdfs == RDFS.OPTIMIZEDRUDIMENTARYRDFS || this.rdfs == RDFS.OPTIMIZEDALTERNATIVERDFS) {
dcq = this.rdfsStreamQueryToIndexQueryDebugByteArray(query, root_param, prefixInstance);
} else {
final SimpleNode root = SPARQL1_1Parser.parse(query);
for (int i = 0; i < root.jjtGetNumChildren(); ++i) {
final Node child = root.jjtGetChild(i); // get current child
if (child instanceof ASTPrefixDecl) {
// get prefix...
final String prefix = ((ASTPrefixDecl) child).getPrefix();
// get child of PrefixDecl to get the namespace...
final Node prefixDeclChild = child.jjtGetChild(0);
// if child of PrefixDecl is QuotedURIRef...
if (prefixDeclChild instanceof ASTQuotedURIRef) {
// get namespace...
final String namespace = ((ASTQuotedURIRef) prefixDeclChild)
.toQueryString();
// add namespace and prefix to predefined list
// of prefix instance...
prefixInstance.getPredefinedList().put(namespace,
prefix);
}
}
}
final SPARQL2CoreSPARQLParserVisitorImplementationDumper spvid = SPARQL2CoreSPARQLParserVisitorImplementationDumper.createInstance();
final String corequery = (root==null)?"":(String) spvid.visit(root);
final SimpleNode root_CoreSPARQL = SPARQL1_1Parser.parse(corequery);
if(root_CoreSPARQL==null){
this.result = new Result();
root_param.setSucceedingOperator(new OperatorIDTuple(this.result,0));
} else {