This will work in Jess5.0b4, to be released today.
I think Michal Fadljevic wrote:
> Hi everyone,
>
> I am impressed by the quality of the Jess.
> It is really powerfull system. {:)
>
> I have simple question:
> Is this query supposed to work ?
>
> (deftemplate person
> (slot id (type INTEGER) (default 0) ) ;; 0 means not initialized
> (slot sex (type ATOM) (default nil) ) ;; male/female atoms
> (slot mother (type INTEGER) (default 0) ) ;; 0 means not initialized
> (slot father (type INTEGER) (default 0) ) ;; 0 means not initialized
> )
> ...
> (defquery children-of (declare (variables ?id))
> (person (mother ?mid) (father ?fid))
> (test (or (= ?id ?mid) (= ?id ?fid)))
> )
>
> the run-query complains about sth like
> Value.listValue while executing (= ?id ?mid)
> Not a list: "1" (type = INTEGER).
>
> But there are only integer number involved in this query,
> so why is he expecting list ?
>
> Am I missing something about concept of queries ?
>
> Thank you very much
> Michal
> --
> [EMAIL PROTECTED] phone: 415.876.0187 pager: 415.253.8030
>
>
>
> ---------------------------------------------------------------------
> 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]
> ---------------------------------------------------------------------
>
---------------------------------------------------------
Ernest Friedman-Hill
Distributed Systems Research Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
Org. 8920, MS 9012 [EMAIL PROTECTED]
PO Box 969 http://herzberg.ca.sandia.gov
Livermore, CA 94550
---------------------------------------------------------------------
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]
---------------------------------------------------------------------