Shortly after posting to the list I found something useful on Github (funny how 
that works sometimes). This code uses Java Process and ProcessBuilder classes 
to communicate with gprolog. The repo is a bit old but I think with some 
freshening up it should do pretty much what I want. 
https://github.com/adamcrussell/GPJaSI

Still open to alternative suggestions though if anyone has them!

-----Original Message-----
From: Users-prolog <[email protected]> On Behalf 
Of Adam Russell
Sent: Friday, February 26, 2021 1:34 PM
To: [email protected]
Subject: interfacing Java and Gnu Prolog

I am wondering if there is any (easy) way to interface gprolog from Java? 
Attempts to google search “Gnu Prolog and Java” and similar all result in links 
to a separate Gnu Prolog for Java project which as far as I can tell is an 
unrelated and no longer maintained effort to implement a Prolog in Java?

To be specific, I would like to implement a scheduler in Prolog but call it 
from Java. I’ve used swi’s jpl in the past  and it works fine, but would prefer 
Gnu Prolog. Seems easier to add to a docker image. 😉

Reply via email to