Hi All,

Suppose I have the following deftemplates:

(deftemplate foo (slot A) (slot B) (slot C) ...)
(deftemplate bar (slot A) (slot D) ...)
(deftemplate baz (slot A) (slot B) (slot E) ...)

I want to get the A value for all facts with specific B value.

I know I can use this:

(defrule findB
   (or
     (foo (A ?id) (B ?b))
     (baz (A ?id) (B ?b))
   )
   (test (eq ?b value))
   =>
   (do something)
)

but this gets rather unwieldy with the dozen or so templates I've currently 
got to search.

Is there any way I can search across multiple templates?

cheers
Rob.
-- 
British Maritime Technology
Tel: +44 (0)20 8943 5544
Fax: +44 (0)20 8977 9304
WWW: http://www.bmtech.co.uk

IMPORTANT: Any views or opinions expressed are solely those of the author 
and do not necessarily represent those of British Maritime Technology.




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