public interface Relation extends Instance
| Modifier and Type | Method and Description |
|---|---|
Relation |
deleteScope(Instance scope)
Delete the scope specified.
|
Relation |
putRolePlayer(RoleType roleType,
Instance instance)
Expands this Relation to include a new role player which is playing a specific role.
|
Map<RoleType,Instance> |
rolePlayers()
Retrieve a list of all Instances involved in the Relation, and the Role Types they play.
|
Relation |
scope(Instance instance)
Sets the Instance that can scope this Relation to a specific domain.
|
Collection<Instance> |
scopes()
Retrieve a list of the Instances that scope this Relation.
|
RelationType |
type()
Retrieve the associated Relation Type for this Relation.
|
hasResource, playsRoles, relations, resourcesasEntity, asEntityType, asInstance, asRelation, asRelationType, asResource, asResourceType, asRoleType, asRule, asRuleType, asType, delete, getId, isEntity, isEntityType, isInstance, isRelation, isRelationType, isResource, isResourceType, isRoleType, isRule, isRuleType, isTypecompareToRelation scope(Instance instance)
instance - A new instance which scopes this RelationRelationType type()
type in interface ConceptRelationTypeMap<RoleType,Instance> rolePlayers()
RoleTypeCollection<Instance> scopes()
Relation putRolePlayer(RoleType roleType, Instance instance)
roleType - The Role Type of the new role player.instance - The new role player.Relation deleteScope(Instance scope) throws ConceptException
scope - The Instances that is currently scoping this Relation.ConceptExceptionCopyright © 2016 Grakn Labs Ltd. All rights reserved.