Created
October 28, 2010 01:48
-
-
Save ghiden/650437 to your computer and use it in GitHub Desktop.
A fix for the examples from JPL prolog java binding http://www.swi-prolog.org/packages/jpl/java_api/getting_started.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Variable X = new Variable("X"); | |
Query q4 = | |
new Query( | |
"descendent_of", | |
new Term[] {X,new Atom("ralf")} | |
); | |
java.util.Hashtable solution; | |
solution = q4.oneSolution(); | |
System.out.println( "first solution of descendent_of(X, ralf)"); | |
System.out.println( "X = " + solution.get("X")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment