| Modifier and Type | Method and Description |
|---|---|
Type |
GraknAdmin.getMetaConcept()
Get the root of all Types.
|
Type |
GraknGraph.getType(String name)
Get the Type with the name provided, if it exists.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
EntityType
EntityType is a schema element which represents the categories instances of this type can fall within.
|
interface |
RelationType
A RelationType is a schema element, and is the Concept that represents how Entities relate to one another.
|
interface |
ResourceType<D>
A ResourceType is a schema element which represents the category of resources in the graph.
|
interface |
RoleType
A RoleType is a schema element that defines a role that can be played in a Relation Type.
|
interface |
RuleType
A RuleType is a schema element used to define different types of reasoner rules.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
Concept.asType()
Return as a Type if the Concept is a Type.
|
Type |
Type.deletePlaysRole(RoleType roleType) |
Type |
Type.playsRole(RoleType roleType) |
Type |
Type.setAbstract(Boolean isAbstract)
Sets the Entity Type to be abstract - which prevents it from having any instances.
|
Type |
Type.superType() |
Type |
Instance.type()
Return the Type of the Concept.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Type> |
Rule.getConclusionTypes()
Retrieve a set of Types that constitue a part of the conclusion of the Rule.
|
Collection<Type> |
Rule.getHypothesisTypes()
Retrieve a set of Types that constitute a part of the hypothesis of this Rule.
|
Collection<Type> |
RoleType.playedByTypes()
Returns a collection of the Types that can play this RoleType.
|
Collection<? extends Type> |
Type.subTypes() |
| Modifier and Type | Method and Description |
|---|---|
Rule |
Rule.addConclusion(Type type)
Add a conclusion of the specified Type to the Rule.
|
Rule |
Rule.addHypothesis(Type type)
Add a hypothesis of the specified Type to the Rule.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
AbstractGraknGraph.getMetaConcept() |
Type |
AbstractGraknGraph.getType(String name) |
| Modifier and Type | Method and Description |
|---|---|
Set<Type> |
MatchQueryAdmin.getTypes() |
Set<Type> |
InsertQueryAdmin.getTypes() |
Set<Type> |
MatchQueryAdmin.getTypes(GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
Set<Type> |
MatchQueryBase.getTypes() |
Set<Type> |
MatchQueryBase.getTypes(GraknGraph graph) |
| Modifier and Type | Field and Description |
|---|---|
static java.util.function.Function<Type,Set<RelationType>> |
Utility.typeToRelationTypes |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Type> |
Utility.getCompatibleRelationTypes(Set<T> types,
java.util.function.Function<T,Set<RelationType>> typeMapper) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Utility.checkTypesCompatible(Type parent,
Type child) |
static Set<RoleType> |
Utility.getCompatibleRoleTypes(Type type,
Type relType)
Gets roletypes a given type can play in the provided relType relation type by performing
type intersection between type's playedRoles and relation's hasRoles.
|
| Modifier and Type | Field and Description |
|---|---|
protected Type |
Atom.type |
| Modifier and Type | Method and Description |
|---|---|
Type |
Atom.getType() |
| Modifier and Type | Method and Description |
|---|---|
Map<RoleType,javafx.util.Pair<VarName,Type>> |
Atom.getRoleVarTypeMap() |
Map<VarName,javafx.util.Pair<Type,RoleType>> |
Atom.getVarTypeRoleMap() |
| Modifier and Type | Method and Description |
|---|---|
Type |
TypeAtom.getType() |
| Modifier and Type | Method and Description |
|---|---|
Map<RoleType,javafx.util.Pair<VarName,Type>> |
Relation.getRoleVarTypeMap() |
Map<VarName,javafx.util.Pair<Type,RoleType>> |
Relation.getVarTypeRoleMap() |
| Modifier and Type | Method and Description |
|---|---|
Map<VarName,Type> |
Query.getVarTypeMap() |
| Modifier and Type | Method and Description |
|---|---|
QueryAnswers |
QueryAnswers.filterByTypes(Map<VarName,Type> varTypeMap)
filter answers by discarding answers not adhering to specific types
|
| Modifier and Type | Method and Description |
|---|---|
static Var |
TypeMapper.map(Type type)
Map a Type to the Graql string representation
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.