| 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.admin |
A collection of interfaces offering more behaviour on Graql objects.
|
| ai.grakn.graql.internal.query.match | |
| ai.grakn.graql.internal.reasoner | |
| ai.grakn.graql.internal.reasoner.atom | |
| ai.grakn.graql.internal.reasoner.atom.binary | |
| ai.grakn.graql.internal.reasoner.query | |
| ai.grakn.migration.export |
Implements export of data and ontology from a Grakn graph into Graql statements.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Type> |
GraknGraph.getType(TypeLabel label)
Get the
Type with the label 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.copy() |
Type |
Type.deletePlays(RoleType roleType) |
Type |
Type.deleteScope(Instance scope)
Delete the scope specified.
|
Type |
Type.key(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked in a strictly one-to-one mapping.
|
Type |
Type.plays(RoleType roleType) |
Type |
Type.resource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
Type |
Type.scope(Instance scope)
Classifies the type to a specific scope.
|
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()
Get all indirect sub-types of this type.
|
| 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(TypeLabel label) |
| 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
convert given entity type to a set of relation types in which it can play roles
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends Type> |
Utility.getCompatibleRelationTypes(Set<T> types,
java.util.function.Function<T,Set<RelationType>> typeMapper)
compute the set of compatible relation types for given types (intersection of allowed sets of relation types for each entry type)
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Utility.checkTypesCompatible(Type parent,
Type child) |
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.
|
| 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.