You can't. Since a teacher could have multiple roles anyway, it makes
perfect sense to leave teacherRole as a separate template, with the
teacher's ID as a foreign key.
On Mar 3, 2009, at 11:08 PM, Nopphadol Chalortham wrote:
Dear all
I would like to create a fact that extends from two facts, for example
the first fact is (deftemplate person (slot name)
(slot age)
(slot gender))
and the second fact is (deftemplate teacherRole
(slot
communicationSkill)
(slot subject)).
So I would like to define a teacher fact that inherits slots from
the person fact and the teacherRole fact as below
(deftemplate teacher
(slot name)
(slot age)
(slot gender)
(slot
communicationSkill)
(slot subject)) .
in deftemplate can not extends multiple template, how to define the
teacher template?
thank you very much
nopphadol C.
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences, Sandia National Laboratories
PO Box 969, MS 9012, Livermore, CA 94550
http://www.jessrules.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].
--------------------------------------------------------------------