public interface Concept extends Comparable<Concept>
| Modifier and Type | Method and Description |
|---|---|
Entity |
asEntity()
Return as an Entity, if the Concept is an Entity Instance.
|
EntityType |
asEntityType()
Return as an EntityType if the Concept is an Entity Type.
|
Instance |
asInstance()
Return as an Instance if the Concept is an Instance.
|
Relation |
asRelation()
Return as a Relation if the Concept is a Relation Instance.
|
RelationType |
asRelationType()
Return as a Relation Type if the concept is a Relation Type.
|
<D> Resource<D> |
asResource()
Return as a Resource if the Concept is a Resource Instance.
|
<D> ResourceType<D> |
asResourceType()
Return as a Resource Type if the Concept is a Resource Type.
|
RoleType |
asRoleType()
Return as a RoleType if the Concept is a Role Type.
|
Rule |
asRule()
Return as a Rule if the Concept is a Rule Instance.
|
RuleType |
asRuleType()
Return as a Rule Type if the Concept is a Rule Type.
|
Type |
asType()
Return as a Type if the Concept is a Type.
|
void |
delete()
Delete the Concept.
|
ConceptId |
getId()
Get the unique ID associated with the Concept.
|
boolean |
isEntity()
Determine if the Concept is an Entity.
|
boolean |
isEntityType()
Determine if the Concept is an Entity Type.
|
boolean |
isInstance()
Determine if the Concept is an Instance.
|
boolean |
isRelation()
Determine if the Concept is a Relation.
|
boolean |
isRelationType()
Determine if the Concept is a Relation Type.
|
boolean |
isResource()
Determine if the Concept is a Resource.
|
boolean |
isResourceType()
Determine if the Concept is a Resource Type.
|
boolean |
isRoleType()
Determine if the Concept is a Role Type.
|
boolean |
isRule()
Determine if the Concept is a Rule.
|
boolean |
isRuleType()
Determine if the Concept is a Rule Type.
|
boolean |
isType()
Determine if the Concept is a Type.
|
compareToConceptId getId()
Type asType()
Instance asInstance()
EntityType asEntityType()
RoleType asRoleType()
RelationType asRelationType()
<D> ResourceType<D> asResourceType()
RuleType asRuleType()
Entity asEntity()
Relation asRelation()
<D> Resource<D> asResource()
Rule asRule()
boolean isType()
boolean isInstance()
boolean isEntityType()
boolean isRoleType()
boolean isRelationType()
boolean isResourceType()
boolean isRuleType()
boolean isEntity()
boolean isRelation()
boolean isResource()
boolean isRule()
void delete()
throws ConceptException
ConceptException - Throws an exception if the node has any edges attached to it.Copyright © 2017 Grakn Labs Ltd. All rights reserved.