T - The leaf interface of the object concept.
For example an EntityType or RelationshipType or Rolepublic abstract class SchemaConceptImpl<T extends SchemaConcept> extends ConceptImpl implements SchemaConcept
Schema Specific Concept
Allows you to create schema or ontological elements.
These differ from normal graph constructs in two ways:
1. They have a unique Label which identifies them
2. You can link them together into a hierarchical structure
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the concept as a
SchemaConcept |
static <X extends SchemaConcept> |
from(SchemaConcept schemaConcept) |
String |
innerToString() |
Boolean |
isImplicit() |
Label |
label() |
T |
label(Label label) |
LabelId |
labelId() |
java.util.stream.Stream<T> |
subs() |
T |
sup() |
T |
sup(T newSuperType) |
java.util.stream.Stream<T> |
sups() |
java.util.stream.Stream<Rule> |
thenRules() |
java.util.stream.Stream<Rule> |
whenRules() |
baseType, caches, createShard, currentShard, deleteNode, equals, hashCode, id, isDeleted, keyspace, shardCount, shards, toString, vertexclone, finalize, getClass, notify, notifyAll, wait, wait, waitasSchemaConcept, isSchemaConceptasAttribute, asAttributeType, asEntity, asEntityType, asRelationship, asRelationshipType, asRole, asRule, asThing, asType, id, isAttribute, isAttributeType, isDeleted, isEntity, isEntityType, isRelationship, isRelationshipType, isRole, isRule, isThing, isType, keyspacefromfrom, registerCache, txCacheClear, txCacheFlushpublic T label(Label label)
label in interface SchemaConceptpublic LabelId labelId()
labelId in interface SchemaConceptpublic Label label()
label in interface SchemaConceptpublic T sup()
sup in interface SchemaConceptSchemaConceptpublic java.util.stream.Stream<T> sups()
sups in interface SchemaConceptpublic Boolean isImplicit()
isImplicit in interface SchemaConceptpublic void delete()
SchemaConceptdelete in interface Conceptdelete in class ConceptImplpublic java.util.stream.Stream<T> subs()
subs in interface SchemaConceptpublic T sup(T newSuperType)
newSuperType - This type's super typepublic java.util.stream.Stream<Rule> whenRules()
whenRules in interface SchemaConceptRule for which this SchemaConcept serves as a hypothesispublic java.util.stream.Stream<Rule> thenRules()
thenRules in interface SchemaConceptRule for which this SchemaConcept serves as a conclusionpublic String innerToString()
public static <X extends SchemaConcept> SchemaConceptImpl<X> from(SchemaConcept schemaConcept)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.