Re: Server - java and python

Thomas Russ <[email protected]> Tue, 6 Apr 2010 11:08:03 -0700
Newsgroups gmane.comp.ai.powerloom
Message-ID <[email protected]>
On Apr 6, 2010, at 8:01 AM, Arnkell Logi P=E9tursson wrote:

> Hi,
>
> I'm working on this project here:
> http://cadia.ru.is/wiki/public:socialgame:main
>
> I have a program in Python that needs to write to Powerloom and  =

> another
> code in Java that needs to read from the same KB. What would be the  =

> best
> way to achieve this? Has anybody implemented a server that I could  =

> use?

Well, from the Java perspective, the very simplest method of working  =

with PowerLoom is to just do it directly.  So one option would be to  =

just run the PowerLoom code in Java and have your Python program  =

communicate with that Java program using a method of your own choosing.

A second method would be to use a SOAP-server interface to PowerLoom.   =

We have created a simple server like that, which allows manipulation  =

and querying of PowerLoom knowledge bases.  As long as you can have  =

Python operate using the appropriate SOAP protocol, you could work  =

with this.  As it happens, we are close to finishing up some work on  =

making PowerLoom server systems a lot easier to deploy.  Now I should  =

also note that there isn't any security built into the SOAP protocol  =

itself, so you would really need to implement the security using an  =

external protocol.

As for a Python interface, there isn't anything that I'm aware of for  =

communicating directly with PowerLoom through any sort of a Python  =

interface.