public interface RuleType extends Type
| Modifier and Type | Method and Description |
|---|---|
Rule |
addRule(Pattern lhs,
Pattern rhs)
Add a new Rule, given Patterns for the Left Hand Side and Right Hand Side.
|
RuleType |
deletePlaysRole(RoleType roleType) |
Collection<Rule> |
instances() |
RuleType |
playsRole(RoleType roleType) |
RuleType |
setAbstract(Boolean isAbstract)
Sets the Entity Type to be abstract - which prevents it from having any instances.
|
Collection<RuleType> |
subTypes() |
RuleType |
superType() |
RuleType |
superType(RuleType type) |
getName, getRulesOfConclusion, getRulesOfHypothesis, hasResource, isAbstract, isImplicit, key, playsRolesasEntity, asEntityType, asInstance, asRelation, asRelationType, asResource, asResourceType, asRoleType, asRule, asRuleType, asType, delete, getId, isEntity, isEntityType, isInstance, isRelation, isRelationType, isResource, isResourceType, isRoleType, isRule, isRuleType, isType, typecompareToRule addRule(Pattern lhs, Pattern rhs)
lhs - A string representing the left hand side Graql query.rhs - A string representing the right hand side Graql query.PatternRuleType setAbstract(Boolean isAbstract)
TypesetAbstract in interface TypeisAbstract - Specifies if the concept is abstract (true) or not (false).
If the concept type is abstract it is not allowed to have any instances.RuleType superType()
RuleType superType(RuleType type)
type - The super type of this Rule TypeCollection<RuleType> subTypes()
RuleType deletePlaysRole(RoleType roleType)
deletePlaysRole in interface TyperoleType - The Role Type which the instances of this Type should no longer be allowed to play.Collection<Rule> instances()
Copyright © 2016 Grakn Labs Ltd. All rights reserved.