| Package | Description |
|---|---|
| ai.grakn | |
| ai.grakn.concept | |
| ai.grakn.graph.internal |
| 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 | Method and Description |
|---|---|
Relation |
RelationType.addRelation()
Adds a new empty Relation.
|
Relation |
Concept.asRelation()
Return as a Relation if the Concept is a Relation Instance.
|
Relation |
Relation.deleteScope(Instance scope)
Delete the scope specified.
|
Relation |
Instance.hasResource(Resource resource)
Creates a relation from this instance to the provided resource.
|
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 |
|---|---|
Collection<Relation> |
RelationType.instances()
Retrieve all the Relation instances of this RelationType
|
Collection<Relation> |
Instance.relations(RoleType... roleTypes)
Retrieves a Relations which the Instance takes part in, which may optionally be narrowed to a particular set
according to the RoleType you are interested in.
|
| Modifier and Type | Method and Description |
|---|---|
Relation |
AbstractGraknGraph.getRelation(RelationType relationType,
Map<RoleType,Instance> roleMap) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.