| Package | Description |
|---|---|
| ai.grakn.concept |
Provides the meta-ontology interfaces and definitions.
|
| ai.grakn.exception |
Grakn exception definitions.
|
| ai.grakn.migration.export |
Implements export of data and ontology from a Grakn graph into Graql statements.
|
| ai.grakn.test.graphs |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Entity
An instance of Entity Type
EntityType |
interface |
Relation
Encapsulates relationships between
Thing |
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 |
|---|---|
Thing |
Concept.asInstance()
|
Thing |
Resource.owner()
If the Resource is unique, this method retrieves the Thing that possesses it.
|
Thing |
Thing.resource(Resource resource)
Creates a relation from this instance to the provided resource.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Role,Set<Thing>> |
Relation.allRolePlayers()
Retrieve a list of all Instances involved in the Relation, and the Role Types they play.
|
Collection<? extends Thing> |
Type.instances()
Get all indirect instances of this type.
|
Collection<Thing> |
Resource.ownerInstances()
Retrieves the set of all Instances that possess this Resource.
|
Collection<Thing> |
Relation.rolePlayers(Role... roles)
|
Collection<Thing> |
Type.scopes()
Retrieve a list of the Instances that scope this Type.
|
| Modifier and Type | Method and Description |
|---|---|
Relation |
Relation.addRolePlayer(Role role,
Thing thing)
Expands this Relation to include a new role player which is playing a specific role.
|
Type |
Type.deleteScope(Thing scope)
Delete the scope specified.
|
RuleType |
RuleType.deleteScope(Thing scope)
Delete the scope specified.
|
ResourceType<D> |
ResourceType.deleteScope(Thing scope)
Delete the scope specified.
|
RelationType |
RelationType.deleteScope(Thing scope)
Delete the scope specified.
|
EntityType |
EntityType.deleteScope(Thing scope)
Delete the scope specified.
|
Type |
Type.scope(Thing scope)
Classifies the type to a specific scope.
|
RuleType |
RuleType.scope(Thing scope)
Classifies the type to a specific scope.
|
ResourceType<D> |
ResourceType.scope(Thing scope)
Classifies the type to a specific scope.
|
RelationType |
RelationType.scope(Thing scope)
Classifies the type to a specific scope.
|
EntityType |
EntityType.scope(Thing scope)
Classifies the type to a specific scope.
|
| Modifier and Type | Method and Description |
|---|---|
static GraphOperationException |
GraphOperationException.hasNotAllowed(Thing thing,
Resource resource,
String hasType)
Thrown when an
thing is not allowed to have resource of the type hasType. |
static GraqlQueryException |
GraqlQueryException.insertNewType(Thing thing,
Type type) |
static GraphOperationException |
GraphOperationException.noType(Thing thing)
Thrown when an thing does not have a type
|
| Modifier and Type | Method and Description |
|---|---|
static VarPattern |
InstanceMapper.map(Thing thing)
Map an Thing to the equivalent Graql representation
|
| Modifier and Type | Method and Description |
|---|---|
static Thing |
TestGraph.getInstance(GraknGraph graph,
String id) |
static Thing |
TestGraph.putEntity(GraknGraph graph,
String id,
EntityType type,
Label key) |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
TestGraph.putResource(Thing thing,
ResourceType<T> resourceType,
T resource) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.