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> |
superSet() |
void |
txCacheClear()
Clears the internal
Cache |
void |
txCacheFlush()
Flushes the internal transaction caches so they can refresh with persisted graph
|
addEdge, baseType, compareTo, createShard, currentShard, deleteNode, equals, getId, getShardCount, hashCode, isDeleted, setShardCount, 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, isTypecompareTofromfrompublic T setLabel(Label label)
setLabel in interface SchemaConceptpublic LabelId getLabelId()
getLabelId in interface SchemaConceptpublic Label getLabel()
getLabel in interface SchemaConceptpublic void txCacheFlush()
public void txCacheClear()
ContainsTxCacheCachetxCacheClear in interface ContainsTxCachepublic T sup()
sup in interface SchemaConceptSchemaConceptpublic java.util.stream.Stream<T> superSet()
public 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 © 2017 Grakn Labs Ltd. All rights reserved.