public class ReasonerQueryImpl extends Object implements ReasonerQuery
Base reasoner query providing resolution and atom handling facilities for conjunctive graql queries.
public ReasonerQuery copy()
copy in interface ReasonerQuerypublic int resolutionPriority()
public GraknGraph graph()
graph in interface ReasonerQuerypublic Conjunction<PatternAdmin> getPattern()
getPattern in interface ReasonerQuerypublic boolean isRuleResolvable()
isRuleResolvable in interface ReasonerQuerypublic Set<Atomic> getAtoms()
getAtoms in interface ReasonerQuerypublic Set<Predicate> getPredicates()
public Set<IdPredicate> getIdPredicates()
public Set<ValuePredicate> getValuePredicates()
public Set<TypeAtom> getTypeConstraints()
public Set<Var> getVarNames()
getVarNames in interface ReasonerQuerypublic Unifier getUnifier(ReasonerQuery parent)
getUnifier in interface ReasonerQueryparent - query to unify wthpublic MatchQuery getMatchQuery()
getMatchQuery in interface ReasonerQuerypublic Map<Var,OntologyConcept> getVarOntologyConceptMap()
getVarOntologyConceptMap in interface ReasonerQuerypublic IdPredicate getIdPredicate(Var var)
var - variable namepublic boolean addAtomic(Atomic atom)
atom - to be addedpublic boolean removeAtomic(Atomic atom)
atom - to be removedpublic void addAtomConstraints(Set<? extends Atomic> cstrs)
cstrs - set of constraintspublic boolean isEquivalent(ReasonerQueryImpl q)
q - query to be compared withpublic java.util.stream.Stream<Answer> resolve(boolean materialise)
ReasonerQueryresolve in interface ReasonerQuerymaterialise - materialisation flagpublic Iterator<Answer> iterator(Answer sub, Set<ReasonerAtomicQuery> subGoals, QueryCache<ReasonerAtomicQuery> cache)
sub - partial substitution if anysubGoals - visited subGoalscache - query cachepublic Iterator<Answer> extendedIterator(Answer sub, Set<ReasonerAtomicQuery> subGoals, QueryCache<ReasonerAtomicQuery> cache)
sub - partial substitution if anysubGoals - visited subGoalscache - query cacheCopyright © 2017 Grakn Labs Ltd. All rights reserved.