public class ReasonerQueries extends Object
Factory for reasoner queries.
| Constructor and Description |
|---|
ReasonerQueries() |
| Modifier and Type | Method and Description |
|---|---|
static ReasonerAtomicQuery |
atomic(Atom atom)
create an atomic query from the provided atom
NB: atom constraints (types and predicates, if any) will be included in the query
|
static ReasonerAtomicQuery |
atomic(Conjunction<VarPatternAdmin> pattern,
GraknTx tx) |
static ReasonerAtomicQuery |
atomic(ReasonerAtomicQuery q)
create an atomic query copy from the provided query with the types inferred
|
static ReasonerAtomicQuery |
atomic(ReasonerAtomicQuery q,
Answer sub)
create an atomic query by combining an existing atomic query and a substitution
|
static ReasonerQueryImpl |
create(Conjunction<VarPatternAdmin> pattern,
GraknTx tx)
create a reasoner query from a conjunctive pattern with types inferred
|
static ReasonerQueryImpl |
create(List<Atom> as,
GraknTx tx)
create a reasoner query from provided list of atoms
NB: atom constraints (types and predicates, if any) will be included in the query
|
static ReasonerQueryImpl |
create(ReasonerQueryImpl q)
create a reasoner query copy from the provided query with the types inferred
|
static ReasonerQueryImpl |
create(ReasonerQueryImpl q,
Answer sub)
create a reasoner query by combining an existing query and a substitution
|
static ReasonerQueryImpl |
create(Set<Atomic> as,
GraknTx tx)
create a reasoner query from provided set of atomics
|
public static ReasonerQueryImpl create(Conjunction<VarPatternAdmin> pattern, GraknTx tx)
pattern - conjunctive pattern defining the querytx - corresponding transactionpublic static ReasonerQueryImpl create(Set<Atomic> as, GraknTx tx)
as - set of atomics that define the querytx - corresponding transactionpublic static ReasonerQueryImpl create(List<Atom> as, GraknTx tx)
as - list of atoms that define the querytx - corresponding transactionpublic static ReasonerQueryImpl create(ReasonerQueryImpl q)
q - query to be copiedpublic static ReasonerQueryImpl create(ReasonerQueryImpl q, Answer sub)
q - base query for substitution to be attachedsub - (partial) substitutionpublic static ReasonerAtomicQuery atomic(Conjunction<VarPatternAdmin> pattern, GraknTx tx)
pattern - conjunctive pattern defining the querytx - corresponding transactionpublic static ReasonerAtomicQuery atomic(Atom atom)
atom - defining the querypublic static ReasonerAtomicQuery atomic(ReasonerAtomicQuery q)
q - query to be copiedpublic static ReasonerAtomicQuery atomic(ReasonerAtomicQuery q, Answer sub)
q - base query for substitution to be attachedsub - (partial) substitutionCopyright © 2017 Grakn Labs Ltd. All rights reserved.