How to load multiple theories #14
-
I am looking for a way to load multiple theories. In my case I only want an app
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There are 2 ways to load multiple theories into a solver:
The difference among static and dynamic KBs is very important as well. Clauses in the dynamic KB can be affected by the retract- and assert-like predicates. Clauses in the static KB cannot. So in the general case you may want to lead theories parsed from file into the static KB, as this is the usual Prolog way of consulting theory files |
Beta Was this translation helpful? Give feedback.
There are 2 ways to load multiple theories into a solver:
Theory.plus
operator, and then you crate a solver out of the whole concatenated theoryMutableSolver
and you load each theory via theMutable Solver.appendStaticKb
methodThe difference among static and dynamic KBs is very important as well.
Clauses in the dynamic KB can be affected by the retract- and assert-like predicates. Clauses in the static KB cannot. So in the general case you may want to lead theories parsed from file into the static KB, as this is the usual Prolog way of consulting theory files