Class RuleWrapper2ConjunctiveQueryWithNegatedParts
java.lang.Object
fr.lirmm.graphik.integraal.core.RuleWrapper2ConjunctiveQueryWithNegatedParts
- All Implemented Interfaces:
ConjunctiveQueryWithNegatedParts, Query
public class RuleWrapper2ConjunctiveQueryWithNegatedParts
extends Object
implements ConjunctiveQueryWithNegatedParts
Creates a negated query from the head of a query. This is used for the restricted
chase implementation.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Constructor Summary
ConstructorsConstructorDescriptionWraps the given rule as a conjunctive query with negated parts. -
Method Summary
Modifier and TypeMethodDescriptionvoidGet the answer variablesgetLabel()The label (the name) for this query.Get the set of facts which must be false (at least one).Get the set of facts which must be true.booleanReturns whether the query expects a boolean answer.voidSets the query label.toString()
-
Constructor Details
-
RuleWrapper2ConjunctiveQueryWithNegatedParts
Wraps the given rule as a conjunctive query with negated parts.- Parameters:
rule- the rule to wrap
-
-
Method Details
-
isBoolean
-
setLabel
-
getLabel
Description copied from interface:ConjunctiveQueryWithNegatedPartsThe label (the name) for this query.- Specified by:
getLabelin interfaceConjunctiveQueryWithNegatedParts- Specified by:
getLabelin interfaceQuery- Returns:
- the label of this query.
-
getPositivePart
Description copied from interface:ConjunctiveQueryWithNegatedPartsGet the set of facts which must be true.- Specified by:
getPositivePartin interfaceConjunctiveQueryWithNegatedParts- Returns:
- an atom set representing the atom conjunction of the query.
-
getNegatedParts
Description copied from interface:ConjunctiveQueryWithNegatedPartsGet the set of facts which must be false (at least one).- Specified by:
getNegatedPartsin interfaceConjunctiveQueryWithNegatedParts- Returns:
- a list of atom sets representing negated conjunctions of atoms.
-
getAnswerVariables
Description copied from interface:ConjunctiveQueryWithNegatedPartsGet the answer variables- Specified by:
getAnswerVariablesin interfaceConjunctiveQueryWithNegatedParts- Returns:
- an Collection of Term representing the answer variables.
-
toString
-
appendTo
-