public abstract class RelationshipProperty extends Object implements UniqueVarProperty
($x, $y) or (wife: $x, husband: $y)) on a Relationship.
This property can be queried and inserted.
This propert is comprised of instances of RelationPlayer, which represents associations between a
role-player Thing and an optional Role.| Constructor and Description |
|---|
RelationshipProperty() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisUniquegraqlString, implicitInnerVarPatternsfrom, uniquelyIdentifiesConceptpublic static RelationshipProperty of(com.google.common.collect.ImmutableMultiset<RelationPlayer> relationPlayers)
public abstract com.google.common.collect.ImmutableMultiset<RelationPlayer> relationPlayers()
public void buildString(StringBuilder builder)
buildString in interface VarPropertypublic Collection<EquivalentFragmentSet> match(Var start)
VarPropertyInternalEquivalentFragmentSet to match the given property in the graphmatch in interface VarPropertyInternalpublic java.util.stream.Stream<VarPatternAdmin> getTypes()
getTypes in interface VarPropertypublic java.util.stream.Stream<VarPatternAdmin> innerVarPatterns()
innerVarPatterns in interface VarPropertyinnerVarPatterns in interface VarPropertyInternalpublic void checkValidProperty(GraknTx graph, VarPatternAdmin var) throws GraqlQueryException
GraqlQueryExceptionpublic void checkInsertable(VarPatternAdmin var) throws GraqlQueryException
VarPropertyInternalcheckInsertable 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 Atomic mapToAtom(VarPatternAdmin var, Set<VarPatternAdmin> vars, ReasonerQuery parent)
mapToAtom in interface VarPropertypublic final void checkValid(GraknTx graph, VarPatternAdmin var) throws GraqlQueryException
VarPropertyInternalMatchcheckValid in interface VarPropertyInternalGraqlQueryExceptionpublic Collection<PropertyExecutor> define(Var var) throws GraqlQueryException
define in interface VarPropertyInternalGraqlQueryExceptionpublic Collection<PropertyExecutor> undefine(Var var) throws GraqlQueryException
undefine in interface VarPropertyInternalGraqlQueryExceptionpublic java.util.stream.Stream<VarPatternAdmin> implicitInnerVarPatterns()
implicitInnerVarPatterns in interface VarPropertyCopyright © 2018 Grakn Labs Ltd. All rights reserved.