1

私は、 cascalog projectのクローンの lein repl で次の例に取り組んでいます。私は実行しました:

(def src [[1] [3] [2]])

(def queryx (<- [?x ?y] (src ?x) (inc ?x :> ?y)))

(?<- (stdout) [?x ?y] 
(queryx ?x ?y))
-- works

(?- (stdout) queryx) ;; produces (([1 2] [2 3] [3 4]))
-- works

(?- (stdout) (first-n queryx 1 :sort ["?x"] :reverse true))
--works

しかし、これを試してみると:

(?<- (stdout) [?x ?y] (first-n queryx 1 :sort ["?x"] :reverse true))

私は得る

IllegalArgumentException Unable to join predicates together  jackknife.core/throw-illegal (core.clj:100)

これは、クエリの作成と実行のようです。このクエリを実行するクエリを作成することはできますか?

4

1 に答える 1