Class DatalogValidator
java.lang.Object
edu.harvard.seas.pl.abcdatalog.ast.validation.DatalogValidator
A validator for a set of clauses. It converts a set of clauses to a program, which consists of a
set of initial facts and a set of rules for deriving new facts. The rules in a program are
guaranteed to be valid.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
DatalogValidator
public DatalogValidator()
-
-
Method Details
-
withBinaryUnificationInRuleBody
-
withBinaryDisunificationInRuleBody
-
withAtomNegationInRuleBody
-
validate
- Throws:
DatalogValidationException
-
validate
public UnstratifiedProgram validate(Set<Clause> program, boolean treatIdbFactsAsClauses) throws DatalogValidationException - Throws:
DatalogValidationException
-