projog icon indicating copy to clipboard operation
projog copied to clipboard

Question on adding prolog rules dynamically

Open sreeramvenkat opened this issue 2 years ago • 1 comments

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

sreeramvenkat avatar Jun 03 '22 12:06 sreeramvenkat