public class LhsProperty extends RuleProperty
lhs (left-hand side) property on a Rule.
This property can be inserted and not queried.
The left-hand side describes the left-hand of an implication, stating that when the left-hand side of a rule is true
the right-hand side must hold.pattern| Constructor and Description |
|---|
LhsProperty(Pattern pattern) |
| Modifier and Type | Method and Description |
|---|---|
default void |
buildString(StringBuilder builder)
Build a Graql string representation of this property
|
void |
checkValid(GraknGraph graph,
VarPatternAdmin var)
Check if the given property can be used in a match query
|
void |
delete(GraknGraph graph,
Concept concept)
Delete the given property from the graph, if possible.
|
java.util.stream.Stream<VarPatternAdmin> |
getImplicitInnerVars()
Get a stream of any inner
VarPatternAdmin within this `VarProperty`, including any that may have been
implicitly created (such as with "has"). |
String |
getName() |
java.util.stream.Stream<VarPatternAdmin> |
getTypes()
Get a stream of
VarPatternAdmin that must be types. |
equals, getPattern, getProperty, hashCode, insert, mapToAtom, matchclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisUniquecheckInsertable, checkValid, delete, getInnerVarsgetImplicitInnerVars, getTypes, graqlStringpublic LhsProperty(Pattern pattern)
public String getName()
public void buildString(StringBuilder builder)
VarPropertybuildString in interface VarPropertybuilder - a string builder to append topublic final void checkValid(GraknGraph graph, VarPatternAdmin var) throws GraqlQueryException
VarPropertyInternalcheckValid in interface VarPropertyInternalGraqlQueryExceptionpublic void delete(GraknGraph graph, Concept concept)
VarPropertyInternaldelete in interface VarPropertyInternalgraph - the graph to operate onconcept - the concept to delete properties ofpublic java.util.stream.Stream<VarPatternAdmin> getTypes()
VarPropertyVarPatternAdmin that must be types.getTypes in interface VarPropertypublic java.util.stream.Stream<VarPatternAdmin> getImplicitInnerVars()
VarPropertyVarPatternAdmin within this `VarProperty`, including any that may have been
implicitly created (such as with "has").getImplicitInnerVars in interface VarPropertyCopyright © 2017 Grakn Labs Ltd. All rights reserved.