| Package | Description |
|---|---|
| ai.grakn | |
| ai.grakn.concept | |
| ai.grakn.engine.backgroundtasks.taskstatestorage | |
| ai.grakn.exception | |
| ai.grakn.graph.internal | |
| ai.grakn.migration.export |
| Modifier and Type | Method and Description |
|---|---|
Relation |
GraknGraph.getRelation(RelationType relationType,
Map<RoleType,Instance> roleMap)
Get a Relation that has the specified Relation Type and role map, if it exists.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Entity
An instance of Entity Type
EntityType |
interface |
Relation
Encapsulates relationships between
Instance |
interface |
Resource<D>
Represent a literal resource in the graph.
|
interface |
Rule
A rule which defines how implicit knowledge can extracted.
|
| Modifier and Type | Method and Description |
|---|---|
Instance |
Concept.asInstance()
Return as an Instance if the Concept is an Instance.
|
Instance |
Resource.owner()
If the Resource is unique, this method retrieves the Instance that possesses it.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends Instance> |
Type.instances() |
Collection<Instance> |
Resource.ownerInstances()
Retrieves the set of all Instances that possess this Resource.
|
Map<RoleType,Instance> |
Relation.rolePlayers()
Retrieve a list of all Instances involved in the Relation, and the Role Types they play.
|
Collection<Instance> |
Relation.scopes()
Retrieve a list of the Instances that scope this Relation.
|
| Modifier and Type | Method and Description |
|---|---|
Relation |
Relation.deleteScope(Instance scope)
Delete the scope specified.
|
Relation |
Relation.putRolePlayer(RoleType roleType,
Instance instance)
Expands this Relation to include a new role player which is playing a specific role.
|
Relation |
Relation.scope(Instance instance)
Sets the Instance that can scope this Relation to a specific domain.
|
| Modifier and Type | Method and Description |
|---|---|
TaskState |
TaskStateGraphStore.instanceToState(GraknGraph graph,
Instance instance)
Given an instance concept, turn it into a TaskState object.
|
| Constructor and Description |
|---|
ConceptNotUniqueException(Resource resource,
Instance instance) |
| Modifier and Type | Method and Description |
|---|---|
Relation |
AbstractGraknGraph.getRelation(RelationType relationType,
Map<RoleType,Instance> roleMap) |
| Modifier and Type | Method and Description |
|---|---|
static Var |
InstanceMapper.map(Instance instance)
Map an Instance to the equivalent Graql representation
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.