This project contains examples of how the open source Projog library can be used to integrate Java with Prolog.
calling-java-from-prolog
provides an example of how you can interact with a Prolog inference engine from a Java application.
calling-prolog-from-java
provides examples of how to extend the functionality of Prolog by writing new built-in predicates and arithmetic operations using Java. This project also contains examples of how you can unit test the new functionality using the Projog test framework.
debugging-prolog-from-java
provides an example of how to obtain debug information for Prolog queries called from a Java application.
tfilter
provides an example of how to use tfilter/3
in Prolog queries called from a Java application.
Examples of larger applications where Projog is used to integrate rules written in Prolog with a graphical user interface written in Java:
For more information on Projog see: