Dear Thomas, all,

I too am trying to use the RDBMS Extension to JESS which you have created. I
have had some success in accessing my own database, retrieving data from it
and associating the data with a JESS fact. This works fine with rules that
apply backwards chaining to one fact on the LHS.

Is it possible to have two facts with backwards chaining on the LHS of a
rule? For example:

(defrule some rule
        (fact (slot1 ?X))
        (database-user (name ?X) (user_id ?Y))
        (database-usercar (user_id ?Y) (car ?Z))
        =>
        (printout t ?X " owns a " ?Z crlf)
)

When "fact" is asserted the value for ?Y in the second fact is found by
backward chaining and querying the database table database.user. Then, in
turn, the value for ?Z in the third fact is found by matching ?Y with the
second fact and backward chaining again.

Was that clear enough? :-)

Maybe this isn't an issue just for RDBMS, but for JESS backward chaining as
a whole. Maybe my approach is totally wrong. Does anyone have any
suggestions?

many thanks,
Kaveh
-----------------------------------------------------------------
-----------------------------------------------------------------
Kaveh Kamyab,
rm 1201,
Intelligent and Interactive Systems Group,
Dept. of Electrical Engineering,
Imperial College of Science Technology and Medicine,
London SW7 2BT,
Tel. +44 (0) 20 75946330
Fax. +44 (0) 20 75946274


---------------------------------------------------------------------
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]
---------------------------------------------------------------------

Reply via email to