Inheritance constraints in relationships?


#1

Greetings.

I’m trying to figure out if/why do the sub relationships have to have their own ‘relates’? Shouldn’t they be able to inherit from super?

define
	super_relationship sub relationship,
	relates role1,
	relates role2;

	sub_relationship sub super_relationship;

	item sub entity,
	plays role1,
	plays role2;

A structural validation error has occurred. Please correct the [`3`] errors found. 
Relationship Type [sub_relationship] does not have one or more roles 
The Role [role1] which is connected to Relationship Type [super_relationship] does not have a sub Role Type which is connected to the sub Relationship Type [sub_relationship] 
The Role [role2] which is connected to Relationship Type [super_relationship] does not have a sub Role Type which is connected to the sub Relationship Type [sub_relationship]

#2

Great question, @ag0x00!! :slight_smile: yes, it does make sense for relationships to inherit the roles they relate, from their super-relationship! We’re working on this in the next release, bare with us. :slight_smile:


#3

Thank you for answering.