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 |
|---|---|
default RuleType |
asRuleType()
Deprecated.
|
RuleType |
deletePlays(Role role) |
RuleType |
deleteScope(Thing scope)
Delete the scope specified.
|
Collection<Rule> |
instances()
Get all indirect instances of this type.
|
default boolean |
isRuleType()
Deprecated.
|
RuleType |
key(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked in a strictly one-to-one mapping.
|
RuleType |
plays(Role role) |
Rule |
putRule(Pattern when,
Pattern then)
Adds a new Rule if it does not exist otherwise returns the existing rule.
|
RuleType |
resource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
RuleType |
scope(Thing scope)
Classifies the type to a specific scope.
|
RuleType |
setAbstract(Boolean isAbstract)
Sets the Entity Type to be abstract - which prevents it from having any instances.
|
RuleType |
setLabel(Label label)
|
RuleType |
sub(RuleType type)
Adds another subtype to this type
|
Collection<RuleType> |
subs()
Get all indirect sub-types of this type.
|
RuleType |
sup() |
RuleType |
sup(RuleType type) |
asType, isAbstract, isType, keys, plays, resources, scopesasOntologyConcept, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, isImplicit, isOntologyConceptasEntity, asEntityType, asRelation, asRelationType, asResource, asResourceType, asRole, asRule, asThing, delete, getId, isEntity, isEntityType, isRelation, isRelationType, isResource, isResourceType, isRole, isRule, isThingcompareToRule putRule(Pattern when, Pattern then)
RuleType scope(Thing scope)
RuleType deleteScope(Thing scope)
deleteScope in interface Typescope - The Instances that is currently scoping this Type.RuleType key(ResourceType resourceType)
RuleType resource(ResourceType resourceType)
RuleType 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.@Nonnull RuleType sup()
sup in interface OntologyConceptsup in interface TypeRuleType sup(RuleType type)
type - The super type of this Rule TypeRuleType sub(RuleType type)
type - The sub type of this rule typeCollection<RuleType> subs()
Typesubs in interface OntologyConceptsubs in interface TypeRuleType deletePlays(Role role)
deletePlays in interface Typerole - The Role Type which the instances of this Type should no longer be allowed to play.Collection<Rule> instances()
Type@Deprecated @CheckReturnValue default RuleType asRuleType()
ConceptasRuleType in interface ConceptRuleType if the Concept is a RuleType@Deprecated @CheckReturnValue default boolean isRuleType()
ConceptisRuleType in interface ConceptConcept is a RuleTypeCopyright © 2017 Grakn Labs Ltd. All rights reserved.