| Package | Description |
|---|---|
| ai.grakn.concept |
Provides the meta-ontology interfaces and definitions.
|
| ai.grakn.engine.tasks.storage | |
| ai.grakn.migration.export |
Implements export of data and ontology from a Grakn graph into Graql statements.
|
| 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.
|
Instance |
Instance.resource(Resource resource)
Creates a relation from this instance to the provided resource.
|
| Modifier and Type | Method and Description |
|---|---|
Map<RoleType,Set<Instance>> |
Relation.allRolePlayers()
Retrieve a list of all Instances involved in the Relation, and the Role Types they play.
|
Collection<? extends Instance> |
Type.instances()
Get all indirect instances of this type.
|
Collection<Instance> |
Resource.ownerInstances()
Retrieves the set of all Instances that possess this Resource.
|
Collection<Instance> |
Relation.rolePlayers(RoleType... roleTypes)
|
Collection<Instance> |
Type.scopes()
Retrieve a list of the Instances that scope this Type.
|
| Modifier and Type | Method and Description |
|---|---|
Relation |
Relation.addRolePlayer(RoleType roleType,
Instance instance)
Expands this Relation to include a new role player which is playing a specific role.
|
Type |
Type.deleteScope(Instance scope)
Delete the scope specified.
|
RuleType |
RuleType.deleteScope(Instance scope)
Delete the scope specified.
|
RoleType |
RoleType.deleteScope(Instance scope)
Delete the scope specified.
|
ResourceType<D> |
ResourceType.deleteScope(Instance scope)
Delete the scope specified.
|
RelationType |
RelationType.deleteScope(Instance scope)
Delete the scope specified.
|
EntityType |
EntityType.deleteScope(Instance scope)
Delete the scope specified.
|
Type |
Type.scope(Instance scope)
Classifies the type to a specific scope.
|
RuleType |
RuleType.scope(Instance scope)
Classifies the type to a specific scope.
|
RoleType |
RoleType.scope(Instance scope)
Classifies the type to a specific scope.
|
ResourceType<D> |
ResourceType.scope(Instance scope)
Classifies the type to a specific scope.
|
RelationType |
RelationType.scope(Instance scope)
Classifies the type to a specific scope.
|
EntityType |
EntityType.scope(Instance scope)
Classifies the type to a specific scope.
|
| Modifier and Type | Method and Description |
|---|---|
TaskState |
TaskStateGraphStore.instanceToState(GraknGraph graph,
Instance instance)
Given an instance concept, turn it into a TaskState object.
|
| 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.