public abstract class TestKB extends Object
| Constructor and Description |
|---|
TestKB() |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Consumer<ai.grakn.GraknTx> |
build() |
protected void |
buildInstances(ai.grakn.GraknTx tx) |
protected void |
buildRelations() |
protected void |
buildRules(ai.grakn.GraknTx tx) |
protected void |
buildSchema(ai.grakn.GraknTx tx) |
static ai.grakn.concept.Thing |
getInstance(ai.grakn.GraknTx tx,
String id) |
SampleKBContext |
makeContext() |
static ai.grakn.concept.Thing |
putEntityWithResource(ai.grakn.GraknTx tx,
String id,
ai.grakn.concept.EntityType type,
ai.grakn.concept.Label key) |
static <T> void |
putResource(ai.grakn.concept.Thing thing,
ai.grakn.concept.AttributeType<T> attributeType,
T resource) |
protected void buildSchema(ai.grakn.GraknTx tx)
protected void buildInstances(ai.grakn.GraknTx tx)
protected void buildRelations()
protected void buildRules(ai.grakn.GraknTx tx)
public java.util.function.Consumer<ai.grakn.GraknTx> build()
public SampleKBContext makeContext()
public static ai.grakn.concept.Thing putEntityWithResource(ai.grakn.GraknTx tx,
String id,
ai.grakn.concept.EntityType type,
ai.grakn.concept.Label key)
public static <T> void putResource(ai.grakn.concept.Thing thing,
ai.grakn.concept.AttributeType<T> attributeType,
T resource)
public static ai.grakn.concept.Thing getInstance(ai.grakn.GraknTx tx,
String id)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.