public abstract class ValueProperty extends Object
value property on a Attribute.
This property can be queried or inserted.
This property matches only resources whose value matches the given ValuePredicate.| Constructor and Description |
|---|
ValueProperty() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckValid, define, from, undefine, uniquelyIdentifiesConceptgetTypes, graqlString, implicitInnerVarPatterns, isUniquepublic static final String NAME
public static ValueProperty of(ValuePredicate predicate)
public abstract ValuePredicate predicate()
public String getName()
public String getProperty()
public Collection<EquivalentFragmentSet> match(Var start)
VarPropertyInternalEquivalentFragmentSet to match the given property in the graphmatch in interface VarPropertyInternalpublic 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 void checkInsertable(VarPatternAdmin var)
VarPropertyInternalcheckInsertable in interface VarPropertyInternalpublic java.util.stream.Stream<VarPatternAdmin> innerVarPatterns()
innerVarPatterns in interface VarPropertyinnerVarPatterns in interface VarPropertyInternalpublic Atomic mapToAtom(VarPatternAdmin var, Set<VarPatternAdmin> vars, ReasonerQuery parent)
mapToAtom in interface VarPropertypublic void buildString(StringBuilder builder)
buildString 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> getTypes()
getTypes in interface VarPropertypublic java.util.stream.Stream<VarPatternAdmin> implicitInnerVarPatterns()
implicitInnerVarPatterns in interface VarPropertyCopyright © 2018 Grakn Labs Ltd. All rights reserved.