I'm not sure what you're asking here. You're certainly free to define
a deftemplate and use one of the slots to store references to other
Fact objects, as been discussed many times recently on this list --
i.e.,
(defrule example-1
?x <- (some-fact)
=>
(assert (some-fact (link ?x))))
(defrule example-2
(some-fact (link ?y))
=>
(printout t (fact-slot-value ?y link) crlf))
(defrule example-3
?z <- (some-fact)
?q <- (some-fact (link ?z))
=>
(printout t ?q " is linked to " ?z crlf))
I think Satish boggavarapu wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
>
> Hi,
>
> If i have an object which has itself as an attribute, how do i represent
> that attribute as (slotname (schema ?obj) (value ?val)).
>
> class Group {
> Node node;
> Group group;
> }
>
> Thanks in advance.
> Satish
>
>
> ---------------------------------------------------------------------
> 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]
---------------------------------------------------------------------