-
Notifications
You must be signed in to change notification settings - Fork 33
Home
Sebastian Sardina edited this page Oct 7, 2018
·
30 revisions
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."
The objectives of JPL are to:
- enable Prolog applications to exploit any Java classes, instances, methods etc. (without requiring any wrappers, metadata etc. to be set up first);
- enable Java applications to manipulate any Standard Prolog libraries, predicates, etc. (without requiring any wrappers, metadata etc. to be set up first);
- enable hybrid Prolog+Java applications to be designed and implemented so as to take best advantage of both language systems, and to be testable, debuggable, maintainable.
- Setup and Install
- JPL-under-Mac-OS: how to set it up under Mac OS.
- Getting-Started:-An-Example-Tutorial: a walkthrough how one would use JPL from Java.
- Specific Information:
- Types-of-Queries:-One-shot-vs-Iterative: reference of the main high-level interface offered to access Prolog from Java.
- Subtle/Advanced Aspects:
- Multi-Threaded-Queries: how to use JPL with iterative queries and multi-threaded applications.
- The main current JPL 7 site: <https://jpl7.org/)
- It includes the Java API (to access Prolog from Java) and the Prolog API (to access Java from Prolog).
- The main Github repository for JPL 7 (which this one is a fork of): https://github.com/SWI-Prolog/packages-jpl
- The documentation of SWI
library(jpl)
: http://www.swi-prolog.org/pldoc/man?section=jpl - The old JPL 3.x documentation: http://www.swi-prolog.org/packages/jpl/