public abstract class LabelProperty extends Object implements UniqueVarProperty
label property on a Type.
This property can be queried and inserted. If used in an insert query and there is an existing type with the give
label, then that type will be retrieved.| Constructor and Description |
|---|
LabelProperty() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckInsertable, checkValid, from, innerVarPatternsgetTypes, graqlString, implicitInnerVarPatterns, isUniqueisUniquepublic static final String NAME
public static LabelProperty of(Label label)
public abstract Label label()
public String getName()
public String getProperty()
public Collection<EquivalentFragmentSet> match(Var start)
VarPropertyInternalEquivalentFragmentSet to match the given property in the graphmatch in interface VarPropertyInternalpublic 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 PropertyExecutor define(Var var) throws GraqlQueryException
define in interface VarPropertyInternalGraqlQueryExceptionpublic PropertyExecutor undefine(Var var) throws GraqlQueryException
undefine in interface VarPropertyInternalGraqlQueryExceptionpublic boolean uniquelyIdentifiesConcept()
VarPropertyInternaluniquelyIdentifiesConcept 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 java.util.stream.Stream<VarPatternAdmin> getTypes()
getTypes in interface VarPropertypublic java.util.stream.Stream<VarPatternAdmin> implicitInnerVarPatterns()
implicitInnerVarPatterns in interface VarPropertyCopyright © 2017 Grakn Labs Ltd. All rights reserved.