| 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.
|
| ai.grakn.test.graphs |
| 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(Label label)
Create a new
EntityType with super-type entity, or return a pre-existing EntityType,
with the specified label. |
EntityType |
GraknGraph.putEntityType(String 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()
|
EntityType |
EntityType.deletePlays(Role role)
Removes the Role to prevent instances of this EntityType from playing it.
|
EntityType |
EntityType.deleteScope(Thing 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(Role role)
Sets the Role 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(Thing 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.sub(EntityType type)
Adds another subtype to this type
|
EntityType |
EntityType.sup()
Returns the supertype of this EntityType.
|
EntityType |
EntityType.sup(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.subs()
Returns a collection of subtypes of this EntityType.
|
| Modifier and Type | Method and Description |
|---|---|
EntityType |
EntityType.sub(EntityType type)
Adds another subtype to this type
|
EntityType |
EntityType.sup(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(Label label) |
EntityType |
AbstractGraknGraph.putEntityType(String 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 |
|---|---|
Role |
OWLMigrator.entityRole(EntityType entityType,
ResourceType<?> resourceType) |
Entity |
OWLMigrator.putEntity(String id,
EntityType type) |
| Modifier and Type | Method and Description |
|---|---|
static Thing |
TestGraph.putEntity(GraknGraph graph,
String id,
EntityType type,
Label key) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.