| Modifier and Type | Method and Description |
|---|---|
RoleType |
GraknGraph.getRoleType(String name)
Get the Role Type with the name provided, if it exists.
|
RoleType |
GraknGraph.putRoleType(String name)
Create a Role Type, or return a pre-existing Role Type, with the specified name.
|
| 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 |
|---|---|
RoleType |
Concept.asRoleType()
Return as a RoleType if the Concept is a Role Type.
|
RoleType |
RoleType.deletePlaysRole(RoleType roleType)
Removes the RoleType to prevent instances from playing it
|
RoleType |
RoleType.playsRole(RoleType roleType)
Sets the RoleType which instances of this Type may play.
|
RoleType |
RoleType.setAbstract(Boolean isAbstract)
Sets the RoleType to be abstract - which prevents it from having any instances.
|
RoleType |
RoleType.superType()
Returns the supertype of this RoleType.
|
RoleType |
RoleType.superType(RoleType type)
Sets the supertype of this RoleType.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<RoleType> |
RelationType.hasRoles()
Retrieves a list of the RoleTypes that make up this RelationType.
|
Collection<RoleType> |
Type.playsRoles() |
Collection<RoleType> |
Instance.playsRoles()
Determine the Role Types that this Instance may play.
|
Map<RoleType,Instance> |
Relation.rolePlayers()
Retrieve a list of all Instances involved in the Relation, and the Role Types they play.
|
Collection<RoleType> |
RoleType.subTypes()
Returns the subtypes of this RoleType.
|
| Modifier and Type | Method and Description |
|---|---|
RelationType |
RelationType.deleteHasRole(RoleType roleType)
Delete a RoleType from this RelationType
|
Type |
Type.deletePlaysRole(RoleType roleType) |
RuleType |
RuleType.deletePlaysRole(RoleType roleType) |
RoleType |
RoleType.deletePlaysRole(RoleType roleType)
Removes the RoleType to prevent instances from playing it
|
ResourceType<D> |
ResourceType.deletePlaysRole(RoleType roleType)
Removes the RoleType to prevent instances of this ResourceType from playing it.
|
RelationType |
RelationType.deletePlaysRole(RoleType roleType)
Removes the RoleType to prevent instances of this RelationType from playing it.
|
EntityType |
EntityType.deletePlaysRole(RoleType roleType)
Removes the RoleType to prevent instances of this EntityType from playing it.
|
RelationType |
RelationType.hasRole(RoleType roleType)
Sets a new RoleType for this RelationType.
|
Type |
Type.playsRole(RoleType roleType) |
RuleType |
RuleType.playsRole(RoleType roleType) |
RoleType |
RoleType.playsRole(RoleType roleType)
Sets the RoleType which instances of this Type may play.
|
ResourceType<D> |
ResourceType.playsRole(RoleType roleType)
Sets the RoleType which instances of this ResourceType may play.
|
RelationType |
RelationType.playsRole(RoleType roleType)
Sets the RoleType which instances of this RelationType may play.
|
EntityType |
EntityType.playsRole(RoleType roleType)
Sets the RoleType which instances of this EntityType may play.
|
Relation |
Relation.putRolePlayer(RoleType roleType,
Instance instance)
Expands this Relation to include a new role player which is playing a specific role.
|
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.
|
RoleType |
RoleType.superType(RoleType type)
Sets the supertype of this RoleType.
|
| Modifier and Type | Method and Description |
|---|---|
RoleType |
AbstractGraknGraph.getRoleType(String name) |
RoleType |
AbstractGraknGraph.putRoleType(String name) |
| Modifier and Type | Method and Description |
|---|---|
Relation |
AbstractGraknGraph.getRelation(RelationType relationType,
Map<RoleType,Instance> roleMap) |
| Modifier and Type | Method and Description |
|---|---|
static Set<RoleType> |
Utility.getCompatibleRoleTypes(Type type,
Type relType) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Utility.computeRoleCombinations(Set<String> vars,
Set<RoleType> roles,
Map<String,String> roleMap,
Set<Map<String,String>> roleMaps) |
| Modifier and Type | Method and Description |
|---|---|
Map<RoleType,javafx.util.Pair<String,Type>> |
Atom.getRoleVarTypeMap() |
Map<String,javafx.util.Pair<Type,RoleType>> |
Atom.getVarTypeRoleMap() |
| Modifier and Type | Method and Description |
|---|---|
Map<RoleType,javafx.util.Pair<String,Type>> |
Relation.getRoleVarTypeMap() |
Map<String,javafx.util.Pair<Type,RoleType>> |
Relation.getVarTypeRoleMap() |
| Modifier and Type | Method and Description |
|---|---|
RoleType |
OWLMigrator.entityRole(EntityType entityType,
ResourceType<?> resourceType) |
RoleType |
OWLMigrator.objectRole(RelationType relType) |
RoleType |
OWLMigrator.resourceRole(ResourceType<?> resourceType) |
RoleType |
OWLMigrator.subjectRole(RelationType relType) |
Copyright © 2016 Grakn Labs Ltd. All rights reserved.