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) |
java.util.stream.Stream<Type> |
getConclusionTypes() |
java.util.stream.Stream<Type> |
getHypothesisTypes() |
Pattern |
getThen() |
Pattern |
getWhen() |
delete, from, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, innerToString, isImplicit, setLabel, sub, subs, sup, sup, superSet, txCacheClear, txCacheFlushaddEdge, baseType, compareTo, createShard, currentShard, deleteNode, equals, getId, getShardCount, hashCode, isDeleted, setShardCount, shards, toString, vertexclone, finalize, getClass, notify, notifyAll, wait, wait, waitasRule, isRule, setLabel, sub, subs, sup, supasSchemaConcept, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, isImplicit, isSchemaConceptasAttribute, asAttributeType, asEntity, asEntityType, asRelationship, asRelationshipType, asRole, asThing, asType, delete, getId, isAttribute, isAttributeType, isDeleted, isEntity, isEntityType, isRelationship, isRelationshipType, isRole, isThing, isTypecompareTofromfrompublic static RuleImpl get(VertexElement vertexElement)
public static RuleImpl create(VertexElement vertexElement, Rule type, Pattern when, Pattern then)
public java.util.stream.Stream<Type> getHypothesisTypes()
getHypothesisTypes in interface Rulepublic java.util.stream.Stream<Type> getConclusionTypes()
getConclusionTypes in interface Rulepublic void addHypothesis(Type type)
public void addConclusion(Type type)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.