public interface Role extends OntologyConcept
An OntologyConcept which defines a role which can be played in a RelationType
This ontological element defines the Role which make up a RelationType.
It behaves similarly to OntologyConcept when relating to other types.
| Modifier and Type | Method and Description |
|---|---|
default Role |
asRole()
Deprecated.
|
default boolean |
isRole()
Deprecated.
|
Collection<Type> |
playedByTypes()
Returns a collection of the Types that can play this Role.
|
Collection<RelationType> |
relationTypes()
Returns the RelationTypes that this Role takes part in.
|
Role |
setLabel(Label label)
|
Role |
sub(Role type)
Adds another sub to this type
|
Collection<Role> |
subs()
Returns the sub of this Role.
|
Role |
sup()
Returns the super of this Role.
|
Role |
sup(Role type)
Sets the super of this Role.
|
asOntologyConcept, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, isImplicit, isOntologyConceptasEntity, asEntityType, asRelation, asRelationType, asResource, asResourceType, asRule, asRuleType, asThing, asType, delete, getId, isEntity, isEntityType, isRelation, isRelationType, isResource, isResourceType, isRule, isRuleType, isThing, isTypecompareToRole setLabel(Label label)
setLabel in interface OntologyConceptlabel - The new Label.Concept itselfRole sup(Role type)
type - The super of this RoleRole sub(Role type)
type - The sub type of this role type@Nonnull Role sup()
sup in interface OntologyConceptCollection<Role> subs()
subs in interface OntologyConcept@CheckReturnValue Collection<RelationType> relationTypes()
RelationType@CheckReturnValue Collection<Type> playedByTypes()
Type@Deprecated @CheckReturnValue default Role asRole()
Concept@Deprecated @CheckReturnValue default boolean isRole()
ConceptCopyright © 2017 Grakn Labs Ltd. All rights reserved.