예제 #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;
   }
 }
 private static String makeMessage(Resource root, Property property) {
   return "The object "
       + FmtUtils.stringForResource(root)
       + " has multiple values for the unique property "
       + FmtUtils.stringForResource(property);
 }
예제 #3
0
 public static void fmtSPARQL(IndentedWriter iOut, ExprList exprs) {
   fmtSPARQL(iOut, exprs, FmtUtils.sCxt());
 }