Hi!
> I want to get the A value for all facts with specific B value.
> [...]
> Is there any way I can search across multiple templates?
It seems you might have a generalization hierarchy where you could use
inheritance to do what you want to accomplish. Instead of writing
(deftemplate foo (slot A) (slot B) (slot C) ...)
(deftemplate bar (slot A) (slot D) ...)
(deftemplate baz (slot A) (slot B) (slot E) ...)
you could as well say
(deftemplate root (slot A) (slot B))
(deftemplate foo extends root (slot C) ...)
(deftemplate baz extends root (slot E) ...)
and then have the following rule:
(defrule findB
(root (A ?id) (B specific-value))
=>
(do-something-with ?id))
Greetings,
Thomas
+-------------------------------------------------------------+
| This message may contain confidential and/or privileged |
| information. If you are not the addressee or authorized to |
| receive this for the addressee, you must not use, copy, |
| disclose or take any action based on this message or any |
| information herein. If you have received this message in |
| error, please advise the sender immediately by reply e-mail |
| and delete this message. Thank you for your cooperation. |
+-------------------------------------------------------------+
---------------------------------------------------------------------
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]
---------------------------------------------------------------------