Passing Prolog terms from Prolog to Java

Sergio Castro <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
Hello,

In a couple of scenarios I need to pass complex Prolog terms from Prolog to Java (e.g., invoking from Prolog a Java method declaring one or more of its parameters as instances of the jpl.Term class).
As far as I understand this is not possible using JPL (at least not using the JPL high level API), correct?. 
The workaround I am using is to pass in the Prolog side the atom representation of the term I need to a method in the Java side that receives a Java string and parses it as a term. This is of course expensive. I am wondering if this is the best I can do using jpl, or maybe I am missing something ?

Thanks !

Sergio
-------------- next part --------------
HTML attachment scrubbed and removed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.