Search in sources :

Example 1 with HasConstraint

use of com.vaticle.typedb.core.pattern.constraint.thing.HasConstraint in project grakn by graknlabs.

the class ThingVariable method has.

public HasConstraint has(ThingVariable attribute) {
    HasConstraint hasConstraint = new HasConstraint(this, attribute);
    constrain(hasConstraint);
    return hasConstraint;
}
Also used : HasConstraint(com.vaticle.typedb.core.pattern.constraint.thing.HasConstraint)

Aggregations

HasConstraint (com.vaticle.typedb.core.pattern.constraint.thing.HasConstraint)1