| Package | Description |
|---|---|
| ai.grakn | |
| ai.grakn.concept | |
| ai.grakn.graph.internal | |
| ai.grakn.migration.owl |
| Modifier and Type | Method and Description |
|---|---|
EntityType |
GraknGraph.getEntityType(String name)
Get the Entity Type with the name provided, if it exists.
|
EntityType |
GraknGraph.putEntityType(String name)
Create a new Entity Type, or return a pre-existing Entity Type, with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
EntityType |
Concept.asEntityType()
Return as an EntityType if the Concept is an Entity Type.
|
EntityType |
EntityType.deletePlaysRole(RoleType roleType)
Removes the RoleType to prevent instances of this EntityType from playing it.
|
EntityType |
EntityType.playsRole(RoleType roleType)
Sets the RoleType which instances of this EntityType may play.
|
EntityType |
EntityType.setAbstract(Boolean isAbstract)
Sets the EntityType to be abstract - which prevents it from having any instances.
|
EntityType |
EntityType.superType()
Returns the supertype of this EntityType.
|
EntityType |
EntityType.superType(EntityType type)
Sets the 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.superType(EntityType type)
Sets the supertype of the EntityType to be the EntityType specified.
|
| Modifier and Type | Method and Description |
|---|---|
EntityType |
AbstractGraknGraph.getEntityType(String name) |
EntityType |
AbstractGraknGraph.putEntityType(String name) |
| 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 © 2016 Grakn Labs Ltd. All rights reserved.