| 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.exception |
Grakn exception definitions.
|
| ai.grakn.graph.internal |
Internal implementation of Grakn graph.
|
| ai.grakn.graql.internal.reasoner.utils |
| Modifier and Type | Method and Description |
|---|---|
<T extends Type> |
GraknGraph.getType(Label 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
Things may relate to each other. |
interface |
ResourceType<D>
An ontological element which models and categorises the various
Resource in the graph. |
interface |
RuleType
An ontological element used to model and categorise different types of
Rule. |
| Modifier and Type | Method and Description |
|---|---|
Type |
Concept.asType()
|
Type |
Type.deletePlays(Role role) |
Type |
Type.deleteScope(Thing 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(Role role) |
Type |
Type.resource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
Type |
Type.scope(Thing 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.sup() |
Type |
Thing.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> |
Role.playedByTypes()
Returns a collection of the Types that can play this Role.
|
Collection<? extends Type> |
Type.subs()
Get all indirect sub-types of this type.
|
| Modifier and Type | Method and Description |
|---|---|
static GraphOperationException |
GraphOperationException.addingInstancesToAbstractType(Type type)
Throw when trying to add instances to an abstract Type
|
static GraqlQueryException |
GraqlQueryException.createInstanceOfMetaConcept(VarPatternAdmin var,
Type type) |
static GraphOperationException |
GraphOperationException.duplicateHas(Type type,
ResourceType resourceType)
|
static GraqlQueryException |
GraqlQueryException.insertNewType(Thing thing,
Type type) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Type> |
AbstractGraknGraph.getType(Label label) |
| Modifier and Type | Method and Description |
|---|---|
static Type |
ReasonerUtils.getTopType(Type type) |
| Modifier and Type | Method and Description |
|---|---|
static Set<Role> |
ReasonerUtils.getCompatibleRoleTypes(Type type,
Set<Role> 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 Type |
ReasonerUtils.getTopType(Type type) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.