title: Embedded Prolog Interpreter/Compiler for Java
body: <p>I'm working on an application in Java, that needs to do some complex logic rule deductions as part of its functionality. I'd like to code my logic deductions in Prolog or some other logic/constraint programming language, instead of Java, as I believe the resulting code will be significantly simpler and more maintainable.</p>
  
  <p>I googled for embedded Java implementations on Prolog, and found number of them, each with very little documentation. My (modest) selection criteria are:</p>
  
  <ul>
  <li>should be embeddable in Java (e.g. can be bundled up with my java package instead of requiring any native installations on external programs)</li>
  <li>simple interface to use from Java (for initiating deductions, inspecting results, and adding rules)</li>
  <li>come with at least a few examples on how to use it</li>
  <li>doesn't necessarily have to be Prolog, but other logic/constraint programming languages with the above criteria would suit my needs, too.</li>
  </ul>
  
  <p>What choices do I have and what are their advantages and disadvantages?</p>