public class RuleImpl extends SchemaConceptImpl<Rule> implements Rule
An ontological element used to model and categorise different types of Rule.
An ontological element used to define different types of Rule.
| Modifier and Type | Method and Description |
|---|---|
void |
addConclusion(Type type) |
void |
addHypothesis(Type type) |
static RuleImpl |
create(VertexElement vertexElement,
Rule type,
Pattern when,
Pattern then) |
static <X extends Type,Y extends Thing> |
from(Rule type) |
static RuleImpl |
get(VertexElement vertexElement) |
Pattern |
then() |
java.util.stream.Stream<Type> |
thenTypes() |
Pattern |
when() |
java.util.stream.Stream<Type> |
whenTypes() |
delete, from, innerToString, isImplicit, label, label, labelId, subs, sup, sup, sups, thenRules, whenRulesbaseType, caches, createShard, currentShard, deleteNode, equals, hashCode, id, isDeleted, keyspace, shardCount, shards, toString, vertexclone, finalize, getClass, notify, notifyAll, wait, wait, waitasSchemaConcept, isImplicit, isSchemaConcept, label, labelId, thenRules, whenRulesasAttribute, asAttributeType, asEntity, asEntityType, asRelationship, asRelationshipType, asRole, asThing, asType, delete, id, isAttribute, isAttributeType, isDeleted, isEntity, isEntityType, isRelationship, isRelationshipType, isRole, isThing, isType, keyspacefromfrom, registerCache, txCacheClear, txCacheFlushpublic static RuleImpl get(VertexElement vertexElement)
public static RuleImpl create(VertexElement vertexElement, Rule type, Pattern when, Pattern then)
public java.util.stream.Stream<Type> whenTypes()
public java.util.stream.Stream<Type> thenTypes()
public void addHypothesis(Type type)
public void addConclusion(Type type)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.