Skip to content
Sebastian Sardina edited this page Oct 7, 2018 · 30 revisions

JPL 7.4+ - Java - SWI Prolog Interface

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.

Wiki Outline

  1. Setup and Install
  2. Getting-Started:-An-Example-Tutorial: a walkthrough how one would use JPL from Java.
  3. Types-of-Queries:-One-shot-vs-Iterative
  4. Subtle aspects:

Important Links