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?
Using Jess's Java reflection, you can use Protege API to get all instance of a class (getInstances() or getDirectInstances() method of Cls interface, depending on whether you want instances of subclasses), and then convert the resulting Collection to Array, which Jess multifield uses.
Samson -- Samson Tu email: [EMAIL PROTECTED] Stanford Medical Informatics phone: 1-650-725-3391 Stanford University fax: 1-650-725-7944
-------------------------------------------------------------------- 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] --------------------------------------------------------------------
