Class DefaultConjunctiveQueryFactory
java.lang.Object
fr.lirmm.graphik.integraal.core.factory.DefaultConjunctiveQueryFactory
- All Implemented Interfaces:
ConjunctiveQueryFactory
Default factory for creating conjunctive queries.
- Author:
- Clément Sipieter (INRIA) <clement@6pi.fr>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates the default conjunctive-query factory. -
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.instance()Returns the singleton factory instance.
-
Field Details
-
BOOLEAN_BOTTOM_QUERY
Canonical boolean-bottom query instance.
-
-
Constructor Details
-
DefaultConjunctiveQueryFactory
protected DefaultConjunctiveQueryFactory()Creates the default conjunctive-query factory.
-
-
Method Details
-
instance
Returns the singleton factory instance.- Returns:
- the singleton factory
-
create
Description copied from interface:ConjunctiveQueryFactoryCreate an empty query- Specified by:
createin interfaceConjunctiveQueryFactory- Returns:
- a new ConjunctiveQuery.
-
create
Description copied from interface:ConjunctiveQueryFactoryCreate a query from the specified atom set. All variables appearing in the atom set will be considered as answer variables.- Specified by:
createin interfaceConjunctiveQueryFactory- Parameters:
atomSet- the atom set forming the query body- Returns:
- a new ConjunctiveQuery.
-
create
Description copied from interface:ConjunctiveQueryFactoryCreate a query from the specified atom set. All variables appearing in the atom set will be considered as answer variables.- Specified by:
createin interfaceConjunctiveQueryFactory- Parameters:
atom- the single atom forming the query body- Returns:
- a new ConjunctiveQuery.
-
create
Description copied from interface:ConjunctiveQueryFactoryCreate a query from the specified atom and the specified answer variables.- Specified by:
createin interfaceConjunctiveQueryFactory- Parameters:
atom- the single atom forming the query bodyans- the answer variables- Returns:
- a new ConjunctiveQuery.
-
create
Description copied from interface:ConjunctiveQueryFactoryCreate a query from the specified atom set and the specified answer variables.- Specified by:
createin interfaceConjunctiveQueryFactory- Parameters:
atomSet- the atom set forming the query bodyans- the answer variables- Returns:
- a new ConjunctiveQuery.
-
create
public ConjunctiveQuery create(CloseableIteratorWithoutException<Atom> atomSet, CloseableIteratorWithoutException<Term> answerVariables) Description copied from interface:ConjunctiveQueryFactoryCreate a query from the specified atom set and the specified answer variables.- Specified by:
createin interfaceConjunctiveQueryFactory- Parameters:
atomSet- the atom-set iterator forming the query bodyanswerVariables- the answer-variable iterator- Returns:
- a new ConjunctiveQuery.
-
create
Description copied from interface:ConjunctiveQueryFactoryCreate a query from the specified atom set, answer variables and label.- Specified by:
createin interfaceConjunctiveQueryFactory- Parameters:
label- the name of this queryatomSet- the conjunction of atoms representing the queryans- the list of answer variables- Returns:
- a new ConjunctiveQuery
-
create
Description copied from interface:ConjunctiveQueryFactoryCopy- Specified by:
createin interfaceConjunctiveQueryFactory- Parameters:
query- the query to copy- Returns:
- a new ConjunctiveQuery.
-