How to mix Java with Prolog
62Why do you have to mix Java with Prolog?
Java is a great programming language, but it is an imperative programming language and it is difficult to model declarative problems with it. Instead, Prolog is more suitable to handle problems where you need declarative programming features. In order to properly connect your Java program with a Prolog interpreter you need an interface. There are several such interfaces depending on the Prolog intepreter you want to use. In this page I will describe some of the interfaces that I found searching the web.
Mixing Java with Ciao Prolog
Ciao Prolog provides an interface for Java. You can find out more by checking their site at:
http://clip.dia.fi.upm.es/Software/Ciao/ciao_html/ciao_158.html#SEC662
JPL: a bidirectional interface for SWI-Prolog
JPL is a library using the SWI-Prolog foreign interface and the Java jni
interface providing a bidirectional interface between Java and Prolog
that can be used to embed Prolog in Java as well as for embedding Java
in Prolog. In both setups it provides a reentrant bidirectional interface. Check it here:
http://www.swi-prolog.org/packages/jpl/
Jasper: a bidrectional interface for SICStus Prolog
Jasper is a bi-directional interface between programs written in Java and programs written in Prolog. The Java-side of the interface constists of a Java package (
jasper) containing classes representing the SICStus emulator. Check it here:
http://www.sics.se/sicstus/docs/3.7.1/html/sicstus_12.html
InterProlog: a powerful Java/Prolog interface
I found this interesting interface that can help you build powerful programs mixing Java and Prolog:
http://www.cs.ucy.ac.cy/compulog/dec98update/projects/interprolog.htm
Products on Amazon
|
Expert Systems: Principles and Programming, Fourth Edition
Price: $54.94
List Price: $189.95 |
|
|
Expert Systems
Price: $69.08
List Price: $144.95 |
|
Expert Systems: The Technology of Knowledge Management for the 21st Century Six Volume Set
Price: $1,052.75
List Price: $2,460.00 |
|
Introduction to Expert Systems (International Computer Science Series)
Price: $4.00
List Price: $42.19 |
|
Innovations in Information Systems Modeling: Methods and Best Practices (Advances in Database Research)
Price: $138.75
List Price: $195.00 |
|
Knowledge in Action: Logical Foundations for Specifying and Implementing Dynamical Systems
Price: $49.00
List Price: $63.00 |
|
Expert Trading Systems: Modeling Financial Markets with Kernel Regression
Price: $38.50
List Price: $75.95 |
|
|
Clinical Decision Support Systems: Theory and Practice (Health Informatics)
Price: $53.98
List Price: $89.95 |
PrintShare it! — Rate it: up down flag this hub









Robert Shiplett says:
5 months ago
I added a link to the Aule Prolog + SemWeb page
Curl from www.curl.com is required to view the page (currently I have no Linux or Mac viewer available)
I found Java to Amzi prolog worked very well. I think there are options at BinNet as well.
Did you ever looka t Prolog in Smalltalk?
Regards