| Package | Description |
|---|---|
| ai.grakn.concept |
Provides the meta-ontology interfaces and definitions.
|
| ai.grakn.exception |
Grakn exception definitions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Concept.delete()
Delete the Concept.
|
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.setAbstract(Boolean isAbstract)
Sets the Entity Type to be abstract - which prevents it from having any instances.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ConceptNotUniqueException
This exception is thrown when two concepts attept to have the same unique id.
|
class |
InvalidConceptTypeException
This exception is thrown when attempting to incorrectly cast a concept to something it is not.
|
class |
InvalidConceptValueException
Thrown when the value of a resource does not match the resources datatype.
|
class |
MoreThanOneConceptException
Thrown when two concepts are returned when using a unique id to retrieve them.
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.