public interface OntologyConcept extends Concept
Facilitates construction of ontological elements.
Allows you to create schema or ontological elements.
These differ from normal graph constructs in two ways:
1. They have a unique Label which identifies them
2. You can link them together into a hierarchical structure
| Modifier and Type | Method and Description |
|---|---|
Label |
getLabel()
Returns the unique label of this Type.
|
Collection<Rule> |
getRulesOfConclusion()
Return the collection of
Rule for which this OntologyConcept serves as a conclusion. |
Collection<Rule> |
getRulesOfHypothesis()
Return the collection of
Rule for which this OntologyConcept serves as a hypothesis. |
LabelId |
getTypeId()
Returns the unique id of this Type.
|
Boolean |
isImplicit()
Return whether the Ontology Element was created implicitly.
|
Collection<? extends OntologyConcept> |
subs()
Get all indirect subs of this concept.
|
OntologyConcept |
sup() |
asEntity, asEntityType, asInstance, asOntologyConcept, asRelation, asRelationType, asResource, asResourceType, asRoleType, asRule, asRuleType, asType, delete, getId, isEntity, isEntityType, isInstance, isOntologyConcept, isRelation, isRelationType, isResource, isResourceType, isRoleType, isRule, isRuleType, isTypecompareTo@CheckReturnValue LabelId getTypeId()
@CheckReturnValue Label getLabel()
@CheckReturnValue OntologyConcept sup()
@CheckReturnValue Collection<? extends OntologyConcept> subs()
@CheckReturnValue Boolean isImplicit()
@CheckReturnValue Collection<Rule> getRulesOfHypothesis()
Rule for which this OntologyConcept serves as a hypothesis.Rule for which this OntologyConcept serves as a hypothesisRule@CheckReturnValue Collection<Rule> getRulesOfConclusion()
Rule for which this OntologyConcept serves as a conclusion.Rule for which this OntologyConcept serves as a conclusionRuleCopyright © 2017 Grakn Labs Ltd. All rights reserved.