| 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.migration.owl |
Implements migration of OWL into Grakn.
|
| Modifier and Type | Method and Description |
|---|---|
EntityType |
GraknGraph.getEntityType(String label)
Get the Entity Type with the label provided, if it exists.
|
EntityType |
GraknGraph.putEntityType(String label)
Create a new
EntityType with super-type entity, or return a pre-existing EntityType,
with the specified label. |
EntityType |
GraknGraph.putEntityType(TypeLabel label)
Create a new
EntityType with super-type entity, or return a pre-existing EntityType,
with the specified label. |
| Modifier and Type | Method and Description |
|---|---|
EntityType |
Concept.asEntityType()
Return as an EntityType if the Concept is an Entity Type.
|
EntityType |
EntityType.copy() |
EntityType |
EntityType.deletePlays(RoleType roleType)
Removes the RoleType to prevent instances of this EntityType from playing it.
|
EntityType |
EntityType.deleteScope(Instance scope)
Delete the scope specified.
|
EntityType |
EntityType.key(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked in a strictly one-to-one mapping.
|
EntityType |
EntityType.plays(RoleType roleType)
Sets the RoleType which instances of this EntityType may play.
|
EntityType |
EntityType.resource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
EntityType |
EntityType.scope(Instance scope)
Classifies the type to a specific scope.
|
EntityType |
EntityType.setAbstract(Boolean isAbstract)
Sets the EntityType to be abstract - which prevents it from having any instances.
|
EntityType |
EntityType.subType(EntityType type)
Adds another subtype to this type
|
EntityType |
EntityType.superType()
Returns the supertype of this EntityType.
|
EntityType |
EntityType.superType(EntityType type)
Sets the direct supertype of the EntityType to be the EntityType specified.
|
EntityType |
Entity.type() |
| Modifier and Type | Method and Description |
|---|---|
Collection<EntityType> |
EntityType.subTypes()
Returns a collection of subtypes of this EntityType.
|
| Modifier and Type | Method and Description |
|---|---|
EntityType |
EntityType.subType(EntityType type)
Adds another subtype to this type
|
EntityType |
EntityType.superType(EntityType type)
Sets the direct supertype of the EntityType to be the EntityType specified.
|
| Modifier and Type | Method and Description |
|---|---|
EntityType |
GraknAdmin.getMetaEntityType()
Get the root of all the Entity Types.
|
| Modifier and Type | Method and Description |
|---|---|
EntityType |
AbstractGraknGraph.getEntityType(String label) |
EntityType |
AbstractGraknGraph.getMetaEntityType() |
EntityType |
AbstractGraknGraph.putEntityType(String label) |
EntityType |
AbstractGraknGraph.putEntityType(TypeLabel label) |
| Modifier and Type | Method and Description |
|---|---|
EntityType |
OWLMigrator.entityType(org.semanticweb.owlapi.model.OWLClass owlclass) |
EntityType |
OWLMigrator.owlThingEntityType() |
| Modifier and Type | Method and Description |
|---|---|
RoleType |
OWLMigrator.entityRole(EntityType entityType,
ResourceType<?> resourceType) |
Entity |
OWLMigrator.putEntity(String id,
EntityType type) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.