public class Reasoner extends Object
Class providing top level reasoning interface and functionalities.
| Constructor and Description |
|---|
Reasoner() |
| Modifier and Type | Method and Description |
|---|---|
static Set<Rule> |
getRules(GraknGraph graph) |
static void |
linkConceptTypes(GraknGraph graph)
Link all unlinked rules in the rule base to their matching types
|
static void |
precomputeInferences(GraknGraph graph)
materialise all possible inferences
|
static java.util.stream.Stream<Map<VarName,Concept>> |
resolve(MatchQuery inputQuery,
boolean materialise)
Resolve a given general graql query using the knowledge base
|
public static Set<Rule> getRules(GraknGraph graph)
graph - to be checked againstpublic static void linkConceptTypes(GraknGraph graph)
graph - for the linking to be performedpublic static void precomputeInferences(GraknGraph graph)
public static java.util.stream.Stream<Map<VarName,Concept>> resolve(MatchQuery inputQuery, boolean materialise)
inputQuery - the query string to be resolvedmaterialise - materialisation flagCopyright © 2017 Grakn Labs Ltd. All rights reserved.