Interface ConjunctiveQueryFactory
- All Known Implementing Classes:
DefaultConjunctiveQueryFactory
public interface ConjunctiveQueryFactory
Factory for building conjunctive queries from atoms, atom sets, and answer-variable lists.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Create an empty queryCreate a query from the specified atom set.Create a query from the specified atom and the specified answer variables.create(ConjunctiveQuery query) Copycreate(InMemoryAtomSet atomSet) Create a query from the specified atom set.create(InMemoryAtomSet atomSet, List<Term> ans) Create a query from the specified atom set and the specified answer variables.create(CloseableIteratorWithoutException<Atom> atomSet, CloseableIteratorWithoutException<Term> answerVariables) Create a query from the specified atom set and the specified answer variables.create(String label, InMemoryAtomSet atomSet, List<Term> ans) Create a query from the specified atom set, answer variables and label.
-
Method Details
-
create
-
create
Create a query from the specified atom set. All variables appearing in the atom set will be considered as answer variables.- Parameters:
atomSet- the atom set forming the query body- Returns:
- a new ConjunctiveQuery.
-
create
Create a query from the specified atom set and the specified answer variables.- Parameters:
atomSet- the atom set forming the query bodyans- the answer variables- Returns:
- a new ConjunctiveQuery.
-
create
Create a query from the specified atom set. All variables appearing in the atom set will be considered as answer variables.- Parameters:
atom- the single atom forming the query body- Returns:
- a new ConjunctiveQuery.
-
create
Create a query from the specified atom and the specified answer variables.- Parameters:
atom- the single atom forming the query bodyans- the answer variables- Returns:
- a new ConjunctiveQuery.
-
create
ConjunctiveQuery create(CloseableIteratorWithoutException<Atom> atomSet, CloseableIteratorWithoutException<Term> answerVariables) Create a query from the specified atom set and the specified answer variables.- Parameters:
atomSet- the atom-set iterator forming the query bodyanswerVariables- the answer-variable iterator- Returns:
- a new ConjunctiveQuery.
-
create
Create a query from the specified atom set, answer variables and label.- Parameters:
label- the name of this queryatomSet- the conjunction of atoms representing the queryans- the list of answer variables- Returns:
- a new ConjunctiveQuery
-
create
Copy- Parameters:
query- the query to copy- Returns:
- a new ConjunctiveQuery.
-