private void printOrderByExpression(ISparqlPrinter sb, IResource node) { // TODO check for real test if (node is INode) { IResource resource = (IResource)node; IFunctionCall call = SPINFactory.asFunctionCall(resource); if (call != null) { sb.print("("); ISparqlPrinter pc = sb.clone(); pc.setNested(true); call.Print(pc); sb.print(")"); return; } } printNestedExpressionString(sb, node, true); }