| Modifier and Type | Method and Description |
|---|---|
<T extends Type> |
GraknGraph.getType(TypeName name)
Get the
Type with the name provided, if it exists. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
EntityType
Ontology element used to represent categories.
|
interface |
RelationType
An ontological element which categorises how
Instances may relate to each other. |
interface |
ResourceType<D>
An ontological element which models and categorises the various
Resource in the graph. |
interface |
RoleType
An ontological element which defines a role which can be played in a relation type.
|
interface |
RuleType
An ontological element used to model and categorise different types of
Rule. |
| 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 |
GraknAdmin.getMetaConcept()
Get the root of all Types.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Type> |
AbstractGraknGraph.getType(TypeName name) |
| Modifier and Type | Method and Description |
|---|---|
Type |
AbstractGraknGraph.getMetaConcept() |
| Modifier and Type | Method and Description |
|---|---|
Set<Type> |
MatchQueryAdmin.getTypes() |
Set<Type> |
InsertQueryAdmin.getTypes() |
Set<Type> |
MatchQueryAdmin.getTypes(GraknGraph graph) |
Map<VarName,Type> |
ReasonerQuery.getVarTypeMap() |
| 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() |
| Modifier and Type | Method and Description |
|---|---|
Type |
TypeAtom.getType() |
| Modifier and Type | Method and Description |
|---|---|
Map<RoleType,javafx.util.Pair<VarName,Type>> |
Relation.getRoleVarTypeMap() |
| Modifier and Type | Method and Description |
|---|---|
Relation |
Relation.addType(Type type) |
| Modifier and Type | Method and Description |
|---|---|
Map<VarName,Type> |
ReasonerQueryImpl.getVarTypeMap() |
| 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.