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 |
|---|---|
default OntologyConcept |
asOntologyConcept()
Deprecated.
|
Label |
getLabel()
Returns the unique label of this Type.
|
LabelId |
getLabelId()
Returns the unique id 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. |
Boolean |
isImplicit()
Return whether the Ontology Element was created implicitly.
|
default boolean |
isOntologyConcept()
Deprecated.
|
OntologyConcept |
setLabel(Label label)
|
Collection<? extends OntologyConcept> |
subs()
Get all indirect subs of this concept.
|
OntologyConcept |
sup() |
asEntity, asEntityType, asRelation, asRelationType, asResource, asResourceType, asRole, asRule, asRuleType, asThing, asType, delete, getId, isEntity, isEntityType, isRelation, isRelationType, isResource, isResourceType, isRole, isRule, isRuleType, isThing, isTypecompareToOntologyConcept setLabel(Label label)
@CheckReturnValue LabelId getLabelId()
@CheckReturnValue Label getLabel()
@CheckReturnValue @Nullable 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 conclusionRule@Deprecated @CheckReturnValue default OntologyConcept asOntologyConcept()
ConceptasOntologyConcept in interface ConceptOntologyConcept if the Concept is a OntologyConcept@Deprecated @CheckReturnValue default boolean isOntologyConcept()
ConceptConcept is a OntologyConceptisOntologyConcept in interface ConceptConcept concept is a OntologyConceptCopyright © 2017 Grakn Labs Ltd. All rights reserved.