FAQ
Hi,

Cascalog is an implementation of datalog on clojure. In the datalog wiki
page: http://en.wikipedia.org/wiki/Datalog, there is an example

Example Datalog program:

parent(bill,mary).
parent(mary,john).


These two lines define two facts, i.e. things that always hold. They can be
intuitively understood as: *the parent of mary is bill* and *the parent of
john is mary*.

ancestor(X,Y) :- parent(X,Y).
ancestor(X,Y) :- parent(X,Z),ancestor(Z,Y).


----

Let's assume the input of the cascalog program is the "parent relationship"
[[parent, child]], is it possible to implement the ancestor function in
cascalog in a easy way? (in SQL it rely on multiple self-join).

--
You received this message because you are subscribed to the Google Groups "cascalog-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cascalog-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
groupcascalog-user @
categoriesclojure, hadoop
postedMay 22, '13 at 4:11p
activeMay 22, '13 at 4:11p
posts1
users1
websiteclojure.org
irc#clojure

1 user in discussion

Kang Tu: 1 post

People

Translate

site design / logo © 2021 Grokbase