Class ConjunctiveQueryRuleAdapter
java.lang.Object
fr.lirmm.graphik.integraal.core.AbstractRule
fr.lirmm.graphik.integraal.core.ConjunctiveQueryRuleAdapter
- All Implemented Interfaces:
Rule, Comparable<Rule>
Adapts a conjunctive query so it can be manipulated through the
Rule API.- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an adapter over the body and label of the specified conjunctive query.Creates an adapter over the specified atom set with an empty label. -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Get the body (the hypothesis) of this rule.Get all constants of this rule.Compute and return the set of existential variables of this rule.Compute and return the set of frontier variables of this rule.getHead()Get the head (the conclusion) of this rule.getLabel()Get the label (the name) of this rule.Get all literals of this rule.getTerms()Get all terms of this rule.Get terms by Type.Get all variables of this rule.voidSet the label (the name) of this rule.
-
Constructor Details
-
ConjunctiveQueryRuleAdapter
Creates an adapter over the body and label of the specified conjunctive query.- Parameters:
query- the query to adapt
-
ConjunctiveQueryRuleAdapter
Creates an adapter over the specified atom set with an empty label.- Parameters:
query- the atom set used as rule body
-
-
Method Details
-
getLabel
-
setLabel
-
getBody
Description copied from interface:RuleGet the body (the hypothesis) of this rule.- Returns:
- the body of this rule.
-
getHead
Description copied from interface:RuleGet the head (the conclusion) of this rule.- Returns:
- the head of this rule.
-
getFrontier
-
getExistentials
-
getTerms
-
getVariables
-
getConstants
-
getLiterals
-
getTerms
-