Guest User

Untitled

a guest
Sep 26th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. List tx = new ArrayList();
  2. tx.add(Util.map(":db/id", Peer.tempid(":db.part/user"),
  3. ":person/name", "FutureChild Suvee",
  4. ":person/parent", Peer.q("[:find ?person :where [?person :person/name \"Davy Suvee\"] ]", conn.db()).iterator().next().get(0)));
  5.  
  6. System.out.println(Peer.q("[:find ?name ?ancestorname " +
  7. ":in $ % " +
  8. ":where [?person :person/name ?name] " +
  9. "[ancestor ?person ?ancestor] " +
  10. "[?ancestor :person/name ?ancestorname] ]" , conn.db().with(tx), ancestorrule));
Add Comment
Please, Sign In to add comment