Knowledge Base objects are containers managing knowledge represented
by clauses sets (this includes facts and rules).
As from version 1.9 the knowledge base manages also a set of (named) queries.
This is consistent with RuleML where knowledge bases ("rule bases") also contain queries.
New methods for adding/removing plugins to the knowledgebase are added since 3.3.1 (by Adrian Paschke).
New methods for adding/removing test cases to the knowledgebase are added since 3.4 (by Jens Dietrich).
See Also:org.mandarax.kernel.Fact See Also:org.mandarax.kernel.Rule See Also:org.mandarax.kernel.ClauseSet See Also:org.mandarax.kernel.validation.TestCase author: Jens Dietrich version: 3.4 <7 March 05> since: 1.0
getPredicate(String name) Get a predicate by name.
Note that there might by more than one predicate in the kb with the same name.
In some cases, this makes sense (e.g.
Get a predicate by name.
Note that there might by more than one predicate in the kb with the same name.
In some cases, this makes sense (e.g. polymorphic predicates such as < for different
types), but should be avoided for "custom" predicates (such as SimplePredicates).
In this case, this method should return one predicate. In this case, applications can still use
predicates() in order to find all predicates with a particular name.
a predicate or null indicating that the kb does not contain a predicate with this name Parameters: name - a predicate name
Get a query by name or null if there is no query with this name.
Parameters: queryName - a query name a query of null if there is no query registered with this name