public abstract class RelatesProperty extends Object
relates property on a RelationshipType.
This property can be queried, inserted or deleted.
This property relates a RelationshipType and a Role. It indicates that a Relationship whose
type is this RelationshipType may have a role-player playing the given Role.
| Constructor and Description |
|---|
RelatesProperty() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfrom, uniquelyIdentifiesConceptgraqlString, isUniquepublic static RelatesProperty of(VarPatternAdmin role, @Nullable VarPatternAdmin superRole)
public static RelatesProperty of(VarPatternAdmin role)
public String getName()
public void buildString(StringBuilder builder)
public Collection<EquivalentFragmentSet> match(Var start)
VarPropertyInternalEquivalentFragmentSet to match the given property in the graphpublic java.util.stream.Stream<VarPatternAdmin> getTypes()
getTypes in interface VarPropertypublic java.util.stream.Stream<VarPatternAdmin> innerVarPatterns()
public Collection<PropertyExecutor> define(Var var) throws GraqlQueryException
define in interface VarPropertyInternalGraqlQueryExceptionpublic Collection<PropertyExecutor> undefine(Var var) throws GraqlQueryException
undefine in interface VarPropertyInternalGraqlQueryExceptionpublic Atomic mapToAtom(VarPatternAdmin var, Set<VarPatternAdmin> vars, ReasonerQuery parent)
public final void checkValid(GraknTx graph, VarPatternAdmin var) throws GraqlQueryException
VarPropertyInternalMatchcheckValid in interface VarPropertyInternalGraqlQueryExceptionpublic Collection<PropertyExecutor> insert(Var var) throws GraqlQueryException
VarPropertyInternalPropertyExecutor that describes how to insert the given VarProperty into.insert in interface VarPropertyInternalGraqlQueryException - if this VarProperty cannot be insertedpublic java.util.stream.Stream<VarPatternAdmin> implicitInnerVarPatterns()
implicitInnerVarPatterns in interface VarPropertyCopyright © 2018 Grakn Labs Ltd. All rights reserved.