public abstract class TestGraph extends Object
| Constructor and Description |
|---|
TestGraph() |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Consumer<GraknGraph> |
build() |
protected void |
buildInstances(GraknGraph graph) |
protected void |
buildOntology(GraknGraph graph) |
protected void |
buildRelations(GraknGraph graph) |
protected void |
buildRules(GraknGraph graph) |
static Thing |
getInstance(GraknGraph graph,
String id) |
static Thing |
putEntity(GraknGraph graph,
String id,
EntityType type,
Label key) |
static <T> void |
putResource(Thing thing,
ResourceType<T> resourceType,
T resource) |
protected void buildOntology(GraknGraph graph)
protected void buildInstances(GraknGraph graph)
protected void buildRelations(GraknGraph graph)
protected void buildRules(GraknGraph graph)
public java.util.function.Consumer<GraknGraph> build()
public static Thing putEntity(GraknGraph graph, String id, EntityType type, Label key)
public static <T> void putResource(Thing thing, ResourceType<T> resourceType, T resource)
public static Thing getInstance(GraknGraph graph, String id)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.