This project demonstrates how an expert system can be constructed by integrating a graphical user interface written in Java with rules written in Prolog. The open source Projog library is used to integrate Java with Prolog.
The subject of the expert system is the classification of birds. The rules are taken from the birds.pl program described in the book "Adventure in Prolog" by Dennis Merritt (ISBN: 978-1520918914).
You can build the application using the command:
./mvnw package
You can then run the application using the command:
java -jar target/prolog-expert-system-0.1.0-SNAPSHOT.jar
- Calling Prolog from Java
- Adding Extra Functionality to Prolog Using Java
- Adventure in Prolog - contains an example of writing an expert system using Prolog.
- AssertJ Swing - used by the unit tests to interact with the UI.