Interface PreparedFOQuery<Formula extends FOFormula, QD extends QueryableData>
- Type Parameters:
Formula- the queried formula typeQD- the prepared data-source type
- All Superinterfaces:
fr.inria.rules.dlgpemodel.api.sentences.HasItemInfo, fr.inria.rules.dlgpemodel.api.sentences.IPrintable, fr.inria.rules.dlgpemodel.api.sentences.ISentence, Labeled, PreparedQuery<FOQuery<? extends Formula>, QD, Substitution, Substitution>, Query, Sentence
- All Known Implementing Classes:
PreparedFOQueryImpl
public interface PreparedFOQuery<Formula extends FOFormula, QD extends QueryableData>
extends PreparedQuery<FOQuery<? extends Formula>, QD, Substitution, Substitution>
A prepared first-order query bound to a
QueryableData source.-
Field Summary
Fields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.HasItemInfo
IDENTFields inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
WRITER -
Method Summary
Modifier and TypeMethodDescriptiondefault Stream<Substitution> execute()Executes the prepared query with an empty substitution.Returns the variables that must be bound before evaluating the query.default booleanisEvaluableWith(Substitution substitution) Checks whether the query can be evaluated with the given substitution.Methods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.HasItemInfo
getIdentifier, getInfo, getItemInfo, setIdentifier, setInfo, setItemInfoMethods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.IPrintable
toDLGPEMethods inherited from interface fr.inria.rules.dlgpemodel.api.sentences.ISentence
setPatternsMethods inherited from interface PreparedQuery
estimateBound, execute, getAnswerVariables, getDataSource, getLabel, getQueryMethods inherited from interface Sentence
getPatterns, setLabel
-
Method Details
-
execute
Executes the prepared query with an empty substitution.- Returns:
- The answers to the query
- Throws:
EvaluationException- if execution fails
-
isEvaluableWith
Checks whether the query can be evaluated with the given substitution.- Parameters:
substitution- the substitution that associates the values to the parameters of the evaluation- Returns:
- true iff we can evaluate this query with the given substitution
-
getMandatoryParameters
-