Ernest Friedman-Hill wrote: > > This query isn't written correctly; you can't use a plain function > call in the middle of a query any more than you can use one in the > middle of the LHS of a rule. You mean something like > > (defquery search (declare (variables ?in)) (A (b ?out&:(contains ?in ? > out)))) > > or > > (defquery search (declare (variables ?in)) (A (b ?out) (test > (contains ?in ?out))) >
These facts are in jess but I don't manage to query one of them with one of the versions of search. Jess> (facts) f-0 (MAIN::initial-fact) f-1 (MAIN::A (a s) (b c d e f)) f-2 (MAIN::A (a t) (b d e f g)) f-3 (MAIN::A (a u) (b e f g h)) For a total of 4 facts in module MAIN. For both versions I get the following result: Jess> (bind ?result (run-query* search (list d e f))) <Java-Object:jess.QueryResult> Jess> (while (?result next) (printout t (?result getString a))) FALSE I don't know whether it helps but I use the latest version (7.0p1) of Jess. bye Nils Boesch -- View this message in context: http://www.nabble.com/Question-about-multislot-und-list-tf3481748.html#a9722250 Sent from the Jess mailing list archive at Nabble.com. -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
