Interface ConjunctiveQuery
- All Superinterfaces:
CloseableIterable<Atom>, CloseableIterableWithoutException<Atom>, Iterable<Atom>, Query
- All Known Implementing Classes:
DefaultConjunctiveQuery
This interface represents a conjunctive query. A conjunctive query Q is a conjunction of
atoms with a distinguished subset of its variables (the answer variables). It is
interpreted as the logical formula obtained from Q by existentially quantifying non-distinguished
variables. When the set of answer variables is empty, Q is a Boolean query.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppends this object representation to the provided builder.Get the answer variablesGet the atom conjunction representing the query.getLabel()The label (the name) for this query.iterator()Return an iterator over the atoms conjunction of the query.voidsetAnswerVariables(List<Term> ans) Sets the answer variables of this query.Methods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
getLabel
-
getAtomSet
InMemoryAtomSet getAtomSet()Get the atom conjunction representing the query.- Returns:
- an atom set representing the atom conjunction of the query.
-
getAnswerVariables
-
setAnswerVariables
-
iterator
CloseableIteratorWithoutException<Atom> iterator()Return an iterator over the atoms conjunction of the query.- Specified by:
iteratorin interfaceCloseableIterable<Atom>- Specified by:
iteratorin interfaceCloseableIterableWithoutException<Atom>- Specified by:
iteratorin interfaceIterable<Atom>- Returns:
- the iterator over the elements
-
appendTo
Appends this object representation to the provided builder.- Parameters:
sb- the target builder
-