Thank you very much for your time and help. I really appreciate it. 

Regards
SAUMIL MEHTA

Quoting [EMAIL PROTECTED]:

> I think Saumil Sunil Mehta wrote:
> 
> > Unfortunately, the old CLIPS code has several COOL-type statements that
> it 
> > uses to iterate over all instances of the Protege classes. I realize
> that 
> > Jess has no COOL-type support, and what I am trying to do, in effect is
> to 
> > mimic the COOL "do-for-all-instances" statement that will iterate over
> all 
> > class instances that satisfy a certain condition. 
> > 
> 
> Jess has "defqueries" which let you select instances in a procedural
> way like this. Charlemagne (Jess 7, or whatever it ends up being called)
> will
> have something like "do-for-all-instances" implemented using queries,
> but it can be implemented now with a minimum of trouble.
> 
> The existing defquery interface is a little clunky, but it works well
> enough. See section 2.9 of the Jess manual, or the slightly better
> treatment in section 7.7 of "Jess in Action"
> (http://www.amazon.com/exec/obidos/ASIN/1930110898/jess-20).
> 
> 
> > 
> > Secondly, since I am using the JessTab, I use an intrinsic JessTab 
> > function (called mapclass) to convert all class instances to facts in
> the 
> > knowledge base. Is there a way to access these class instances so I can
> 
> > append them onto a multifield? Should I define a rule that performs
> this 
> > LOOK-AT-INSTANCES then APPEND-TO-MULTIFIELD operation and then run it 
> > separately before my rules for the main app get defined? Or is there a
> 
> > better way to do this?
> 
> I don't know enough about Protege to know what "class instances" are
> in this context; someone else probably does.
> 
> 
> ---------------------------------------------------------
> Ernest Friedman-Hill  
> Science and Engineering PSEs        Phone: (925) 294-2154
> Sandia National Labs                FAX:   (925) 294-2234
> PO Box 969, MS 9012                 [EMAIL PROTECTED]
> Livermore, CA 94550         http://herzberg.ca.sandia.gov
> 
> --------------------------------------------------------------------
> 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]
> --------------------------------------------------------------------
> 
> 

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