What's coming back is a list where every item in the list is an instance of a Protege class. How do I interrogate the contents of the instance from Java?

Karen Fox

Karen Fox wrote:

I am able to store variables from Java into Jess and use them in a batch file. I then want to retrieve the multislot list that has been put together within this batch file and view the list. I've tried several different things, none of which has worked.

Here is where I store the list in the clp file:

(defrule complete-search
   (goal-is-to (action "complete") (argument1 $?iplList))
=>
   (store IPLLIST $?iplList)
   (printout t "We are finished!! " crlf)
   (printout t "Final list is:  " crlf)
   (stepIPLList $?iplList)
)


Here is the latest attempt to retrieve the list from Java:


//fetch stored result
System.out.println("Results are " + r.fetch("IPLLIST").listValue(null));


which gives me this error:

Results are <External-Address:edu.stanford.smi.protege.model.DefaultSimpleInstan
ce> <External-Address:edu.stanford.smi.protege.model.DefaultSimpleInstance>


I've tried using externalAddressValue(null) and that didn't work either. I tried using the Enumeration example from the manual and that didn't work. I'm sure I'm doing something very stupid as a newbie, but I'm not seeing it. I'd appreciate any suggestions.

Thank you.


-- Karen Fox Technical Project Support III The MITRE Corporation Colorado Springs, CO 719-572-8368 [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