Reltio does not allow two reference attributes to point to the same relationship configuration for the same entity type, as it would create ambiguity and complexity in the model. However, there are a couple of ways to achieve a parent-child relationship within the same entity type:
1. Use a Single Reference Attribute with Role Differentiation
Instead of having separate `parent` and `child` reference attributes, use a single reference attribute and distinguish between parent and child relationships using roles in the relationship configuration. For example:
- Define roles such as `Parent` and `Child` in the relationship type.
- Use this relationship to connect entities and specify roles for each connection.
This approach minimizes duplication and adheres to Reltio's best practices.
2. Leverage Multiple Relationship Types
If separate attributes for `parent` and `child` are absolutely necessary, you can:
- Define two different relationship types, e.g., `ParentOf` and `ChildOf`.
- Configure `parent` to use `ParentOf` and `child` to use `ChildOf`.
While this adds additional configuration, it resolves the limitation of not being able to point to the same relationship type.
I hope this is helpful!
------------------------------
Paul Lawrence
Technical Delivery Manager
St Neots
United Kingdom
------------------------------