| Package | Description |
|---|---|
| ai.grakn | |
| ai.grakn.concept | |
| 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 collection of Relations that match the specified Relation Type and role map, if it exists.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Entity
Entity represents an instance of an Entity Type, which represents some data in the graph.
|
interface |
Relation
A Relation represents an instance of a Relation Type, which is a concept
that represents how different entities relate to one another.
|
interface |
Resource<D>
A Resource is the Concept that represents a resource associated with one or more Instances.
|
interface |
Rule
A Rule represents an instance of a Rule-Type, which is used to make inferences over the data.
|
| 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.
|
| 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.