public interface RuleType extends Type
An ontological element used to model and categorise different types of Rule.
An ontological element used to define different types of Rule.
Currently supported rules include GraknAdmin.getMetaRuleInference()
and GraknAdmin.getMetaRuleConstraint()
| 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.
|
RuleType |
subType(RuleType type)
Adds another subtype to this type
|
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, isTypecompareToRule 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 TypeRuleType subType(RuleType type)
type - The sub 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 © 2017 Grakn Labs Ltd. All rights reserved.