use of com.vaticle.typedb.core.pattern.constraint.type.OwnsConstraint in project grakn by graknlabs.
the class TypeVariable method owns.
public OwnsConstraint owns(TypeVariable attributeType, @Nullable TypeVariable overriddenAttributeType, boolean isKey) {
OwnsConstraint ownsConstraint = new OwnsConstraint(this, attributeType, overriddenAttributeType, isKey);
constrain(ownsConstraint);
return ownsConstraint;
}
Aggregations