public class Reasoner extends Object
| Constructor and Description |
|---|
Reasoner(GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
static Set<Rule> |
getRules(GraknGraph graph) |
static boolean |
hasRules(GraknGraph graph) |
void |
linkConceptTypes()
Link all unlinked rules in the rule base to their matching types
|
void |
precomputeInferences() |
QueryAnswers |
resolve(MatchQuery inputQuery) |
QueryAnswers |
resolve(MatchQuery inputQuery,
boolean materialise)
Resolve a given query using the rule base
|
MatchQuery |
resolveToQuery(MatchQuery inputQuery)
Materialised by default, BC reasoning
|
MatchQuery |
resolveToQuery(MatchQuery inputQuery,
boolean materialise)
Resolve a given query using the rule base
|
public Reasoner(GraknGraph graph)
public static Set<Rule> getRules(GraknGraph graph)
public static boolean hasRules(GraknGraph graph)
public void linkConceptTypes()
public void precomputeInferences()
public QueryAnswers resolve(MatchQuery inputQuery, boolean materialise)
inputQuery - the query string to be expandedpublic QueryAnswers resolve(MatchQuery inputQuery)
public MatchQuery resolveToQuery(MatchQuery inputQuery, boolean materialise)
inputQuery - the query string to be expandedpublic MatchQuery resolveToQuery(MatchQuery inputQuery)
inputQuery - Copyright © 2016 Grakn Labs Ltd. All rights reserved.