public interface VarProperty
VarPatternAdmin, such as "isa movie" or "has name 'Jim'"| Modifier and Type | Method and Description |
|---|---|
void |
buildString(StringBuilder builder)
Build a Graql string representation of this property
|
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"). |
java.util.stream.Stream<VarPatternAdmin> |
getInnerVars()
Get a stream of any inner
VarPatternAdmin within this `VarProperty`. |
java.util.stream.Stream<VarPatternAdmin> |
getTypes()
Get a stream of
VarPatternAdmin that must be types. |
default String |
graqlString()
Get the Graql string representation of this property
|
default boolean |
isUnique()
True if there is at most one of these properties for each
VarPatternAdmin |
Atomic |
mapToAtom(VarPatternAdmin var,
Set<VarPatternAdmin> vars,
ReasonerQuery parent)
maps this var property to a reasoner atom
|
void buildString(StringBuilder builder)
builder - a string builder to append to@CheckReturnValue default String graqlString()
@CheckReturnValue java.util.stream.Stream<VarPatternAdmin> getTypes()
VarPatternAdmin that must be types.@CheckReturnValue java.util.stream.Stream<VarPatternAdmin> getInnerVars()
VarPatternAdmin within this `VarProperty`.@CheckReturnValue java.util.stream.Stream<VarPatternAdmin> getImplicitInnerVars()
VarPatternAdmin within this `VarProperty`, including any that may have been
implicitly created (such as with "has").@CheckReturnValue default boolean isUnique()
VarPatternAdmin@CheckReturnValue Atomic mapToAtom(VarPatternAdmin var, Set<VarPatternAdmin> vars, ReasonerQuery parent)
var - VarPatternAdmin this property belongs tovars - VarAdmins constituting the pattern this property belongs toparent - reasoner query this atom should belong toCopyright © 2017 Grakn Labs Ltd. All rights reserved.