Search in sources :

Example 1 with RelatesConstraint

use of com.vaticle.typedb.core.pattern.constraint.type.RelatesConstraint in project grakn by graknlabs.

the class TypeVariable method relates.

public RelatesConstraint relates(TypeVariable roleType, @Nullable TypeVariable overriddenRoleType) {
    RelatesConstraint relatesConstraint = new RelatesConstraint(this, roleType, overriddenRoleType);
    constrain(relatesConstraint);
    return relatesConstraint;
}
Also used : RelatesConstraint(com.vaticle.typedb.core.pattern.constraint.type.RelatesConstraint)

Aggregations

RelatesConstraint (com.vaticle.typedb.core.pattern.constraint.type.RelatesConstraint)1