public class AtomicQuery extends Query
| Constructor and Description |
|---|
AtomicQuery(AtomicQuery q) |
AtomicQuery(Atom at,
Set<String> vars) |
AtomicQuery(MatchQuery query,
GraknGraph graph) |
AtomicQuery(String rhs,
GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAtom(Atomic at) |
boolean |
equals(Object obj) |
void |
establishRelation(AtomicQuery aq)
establishes parent-child (if there is one) relation between this and aq query
the relation expresses the relative level of specificity between queries with the parent being more specific
|
Atom |
getAtom() |
Set<AtomicQuery> |
getChildren() |
AtomicQuery |
getParent() |
QueryAnswers |
materialise() |
QueryAnswers |
materialise(Set<IdPredicate> subs)
Add explicit IdPredicates and materialise
|
boolean |
removeAtom(Atomic at) |
Set<Atom> |
selectAtoms()
atom selection function
|
void |
unify(Map<String,String> unifiers)
change each variable occurrence according to provided mappings (apply unifiers {[from, to]_i})
|
addAtomConstraints, containsAtom, containsEquivalentAtom, DBlookup, execute, getAnswers, getAtoms, getGraph, getIdPredicate, getIdPredicates, getMatchQuery, getPattern, getResources, getSelectedNames, getTypeConstraints, getTypes, getTypes, getValuePredicates, getVarSet, getVarTypeMap, graph, hashCode, isEquivalent, isRuleResolvable, memoryLookup, propagateAnswers, select, selectAppend, stream, toString, unifyclone, finalize, getClass, notify, notifyAll, wait, wait, waitaggregate, ask, colorKeyword, colorType, delete, delete, distinct, get, insert, isReadOnly, limit, offset, orderBy, resultsString, stream, withGraphadmindelete, insert, orderBy, selectiterator, parallelStreamforEach, spliteratorpublic AtomicQuery(String rhs, GraknGraph graph)
public AtomicQuery(MatchQuery query, GraknGraph graph)
public AtomicQuery(AtomicQuery q)
public AtomicQuery getParent()
public void establishRelation(AtomicQuery aq)
aq - query to comparepublic Atom getAtom()
public Set<AtomicQuery> getChildren()
public boolean removeAtom(Atomic at)
removeAtom in class Querypublic QueryAnswers materialise()
public QueryAnswers materialise(Set<IdPredicate> subs)
subs - IdPredicates of variablespublic void unify(Map<String,String> unifiers)
Querypublic Set<Atom> selectAtoms()
QueryselectAtoms in class QueryCopyright © 2016 Grakn Labs Ltd. All rights reserved.