示例#1
0
 public static void evalPrint(Expr expr, Binding binding) {
   try {
     NodeValue r = eval(expr, binding);
     // System.out.println(r.asQuotedString()) ;
     Node n = r.asNode();
     String s = FmtUtils.stringForNode(n);
     System.out.println(s);
   } catch (ExprEvalException ex) {
     System.out.println("Exception: " + ex.getMessage());
     return;
   } catch (ExprBuildException ex) {
     System.err.println("Build exception: " + ex.getMessage());
     return;
   }
 }
示例#2
0
 public static void fmtSPARQL(IndentedWriter iOut, ExprList exprs) {
   fmtSPARQL(iOut, exprs, FmtUtils.sCxt());
 }