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) |
Label |
getLabel() |
LabelId |
getLabelId() |
java.util.stream.Stream<Rule> |
getRulesOfConclusion() |
java.util.stream.Stream<Rule> |
getRulesOfHypothesis() |
String |
innerToString() |
Boolean |
isImplicit() |
T |
setLabel(Label label) |
T |
sub(T concept)
Adds another sub to this
SchemaConcept |
java.util.stream.Stream<T> |
subs() |
T |
sup() |
T |
sup(T newSuperType) |
java.util.stream.Stream<T> |
sups() |
baseType, caches, createShard, currentShard, deleteNode, equals, getId, hashCode, isDeleted, keyspace, shardCount, shards, toString, vertexclone, finalize, getClass, notify, notifyAll, wait, wait, waitasSchemaConcept, isSchemaConceptasAttribute, asAttributeType, asEntity, asEntityType, asRelationship, asRelationshipType, asRole, asRule, asThing, asType, getId, isAttribute, isAttributeType, isDeleted, isEntity, isEntityType, isRelationship, isRelationshipType, isRole, isRule, isThing, isType, keyspacefromfrom, registerCache, txCacheClear, txCacheFlushpublic T setLabel(Label label)
setLabel in interface SchemaConceptpublic LabelId getLabelId()
getLabelId in interface SchemaConceptpublic Label getLabel()
getLabel 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 sub(T concept)
SchemaConceptconcept - The sub concept of this SchemaConceptSchemaConcept itselfpublic T sup(T newSuperType)
newSuperType - This type's super typepublic java.util.stream.Stream<Rule> getRulesOfHypothesis()
getRulesOfHypothesis in interface SchemaConceptRule for which this SchemaConcept serves as a hypothesispublic java.util.stream.Stream<Rule> getRulesOfConclusion()
getRulesOfConclusion 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.