コード例 #1
0
ファイル: Rules.java プロジェクト: afs/jena-inf-engine
 /** {@link Rel} with ANY, not variables. */
 public static Rel unvar(Rel r) {
   if (r.getTuple().stream().allMatch(Rules::check)) return r;
   // Tuple::map??
   List<Node> x = r.getTuple().stream().map(n -> fUnvar.apply(n)).collect(Collectors.toList());
   return new Rel(r.getName(), TupleFactory.create(x));
 }