projog
projog copied to clipboard
Question on adding prolog rules dynamically
Hi,
I would like to use projog for my java application by importing it as a library. Some of the rules will be implemented in java using AbstractSingleResultPredicate.
Is it possible to add such rules (i.e., those implemented in Java) dynamically during the execution of the java program ?
The example program SingleResultPredicateExample.java shows an implementation where such rules can be added from prolog console. But I am not sure the rules can be added dynamically from Java.
Can you please tell me if this is possible ? Thanks for your time.
Best regards, Sreeram