| Package | Description |
|---|---|
| ai.grakn |
A core package for connecting to a Grakn knowledge graph.
|
| ai.grakn.concept |
Provides the meta-ontology interfaces and definitions.
|
| ai.grakn.graph.admin | |
| ai.grakn.graph.internal |
Internal implementation of Grakn graph.
|
| ai.grakn.graql.internal.reasoner | |
| ai.grakn.graql.internal.reasoner.atom | |
| ai.grakn.graql.internal.reasoner.atom.binary | |
| ai.grakn.migration.owl |
Implements migration of OWL into Grakn.
|
| Modifier and Type | Method and Description |
|---|---|
RoleType |
GraknGraph.getRoleType(String label)
Get the Role Type with the label provided, if it exists.
|
RoleType |
GraknGraph.putRoleType(String label)
|
RoleType |
GraknGraph.putRoleType(TypeLabel label)
|
| Modifier and Type | Method and Description |
|---|---|
RoleType |
Concept.asRoleType()
Return as a RoleType if the Concept is a Role Type.
|
RoleType |
RoleType.copy() |
RoleType |
RoleType.deletePlays(RoleType roleType)
Removes the RoleType to prevent instances from playing it
|
RoleType |
RoleType.deleteScope(Instance scope)
Delete the scope specified.
|
RoleType |
RoleType.key(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked in a strictly one-to-one mapping.
|
RoleType |
RoleType.plays(RoleType roleType)
Sets the RoleType which instances of this Type may play.
|
RoleType |
RoleType.resource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
RoleType |
RoleType.scope(Instance scope)
Classifies the type to a specific scope.
|
RoleType |
RoleType.setAbstract(Boolean isAbstract)
Sets the RoleType to be abstract - which prevents it from having any instances.
|
RoleType |
RoleType.subType(RoleType type)
Adds another subtype to this type
|
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 |
|---|---|
Map<RoleType,Set<Instance>> |
Relation.allRolePlayers()
Retrieve a list of all Instances involved in the Relation, and the Role Types they play.
|
Collection<RoleType> |
Type.plays() |
Collection<RoleType> |
Instance.plays()
Determine the Role Types that this Instance may play.
|
Collection<RoleType> |
RelationType.relates()
Retrieves a list of the RoleTypes that make up this RelationType.
|
Collection<RoleType> |
RoleType.subTypes()
Returns the subtypes of this RoleType.
|
| Modifier and Type | Method and Description |
|---|---|
Relation |
Relation.addRolePlayer(RoleType roleType,
Instance instance)
Expands this Relation to include a new role player which is playing a specific role.
|
Type |
Type.deletePlays(RoleType roleType) |
RuleType |
RuleType.deletePlays(RoleType roleType) |
RoleType |
RoleType.deletePlays(RoleType roleType)
Removes the RoleType to prevent instances from playing it
|
ResourceType<D> |
ResourceType.deletePlays(RoleType roleType)
Removes the RoleType to prevent instances of this ResourceType from playing it.
|
RelationType |
RelationType.deletePlays(RoleType roleType)
Removes the RoleType to prevent instances of this RelationType from playing it.
|
EntityType |
EntityType.deletePlays(RoleType roleType)
Removes the RoleType to prevent instances of this EntityType from playing it.
|
RelationType |
RelationType.deleteRelates(RoleType roleType)
Delete a RoleType from this RelationType
|
Type |
Type.plays(RoleType roleType) |
RuleType |
RuleType.plays(RoleType roleType) |
RoleType |
RoleType.plays(RoleType roleType)
Sets the RoleType which instances of this Type may play.
|
ResourceType<D> |
ResourceType.plays(RoleType roleType)
Sets the RoleType which instances of this ResourceType may play.
|
RelationType |
RelationType.plays(RoleType roleType)
Sets the RoleType which instances of this RelationType may play.
|
EntityType |
EntityType.plays(RoleType roleType)
Sets the RoleType which instances of this EntityType may play.
|
RelationType |
RelationType.relates(RoleType roleType)
Sets a new RoleType for 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.
|
Collection<Instance> |
Relation.rolePlayers(RoleType... roleTypes)
|
RoleType |
RoleType.subType(RoleType type)
Adds another subtype to this type
|
RoleType |
RoleType.superType(RoleType type)
Sets the supertype of this RoleType.
|
| Modifier and Type | Method and Description |
|---|---|
RoleType |
GraknAdmin.getMetaRoleType()
Get the root of all the Role Types.
|
| Modifier and Type | Method and Description |
|---|---|
RoleType |
AbstractGraknGraph.getMetaRoleType() |
RoleType |
AbstractGraknGraph.getRoleType(String label) |
RoleType |
AbstractGraknGraph.putRoleType(String label) |
RoleType |
AbstractGraknGraph.putRoleType(TypeLabel label) |
| Modifier and Type | Field and Description |
|---|---|
static java.util.function.Function<RoleType,Set<RelationType>> |
Utility.roleToRelationTypes
convert given role type to a set of relation types in which it can appear
|
| Modifier and Type | Method and Description |
|---|---|
static RoleType |
Utility.getNonMetaTopRole(RoleType role) |
| Modifier and Type | Method and Description |
|---|---|
static Set<RoleType> |
Utility.getCompatibleRoleTypes(Type type,
Set<RoleType> relRoles)
Gets roletypes a given type can play in the provided relType relation type by performing
type intersection between type's playedRoles and relation's relates.
|
static Set<RoleType> |
Utility.getSuperTypes(RoleType role) |
static Set<RoleType> |
Utility.getTopRoles(Set<RoleType> roleTypes) |
| Modifier and Type | Method and Description |
|---|---|
static RoleType |
Utility.getNonMetaTopRole(RoleType role) |
static Set<RoleType> |
Utility.getSuperTypes(RoleType role) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Utility.computeRoleCombinations(Set<VarName> vars,
Set<RoleType> roles,
Map<VarName,Var> roleMap,
Set<Map<VarName,Var>> roleMaps)
compute all rolePlayer-roleType combinations complementing provided roleMap
|
static Set<RoleType> |
Utility.getCompatibleRoleTypes(Type type,
Set<RoleType> relRoles)
Gets roletypes a given type can play in the provided relType relation type by performing
type intersection between type's playedRoles and relation's relates.
|
static Set<RoleType> |
Utility.getTopRoles(Set<RoleType> roleTypes) |
| Modifier and Type | Method and Description |
|---|---|
Map<RoleType,javafx.util.Pair<VarName,Type>> |
Atom.getRoleVarTypeMap() |
| Modifier and Type | Method and Description |
|---|---|
Map<RoleType,javafx.util.Pair<VarName,Type>> |
Relation.getRoleVarTypeMap() |
| 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 © 2017 Grakn Labs Ltd. All rights reserved.