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
------------------------------
Original Message:
Sent: 11-26-2024 03:00
From: Nanda kumar Nandhi
Subject: Referencing same relation in same entity type twice
HI Reltio experts, I have a requirement that I need to create a parent - child relationship in same entity type, I need to have two referece attributes(parent and child) which point towards same relationship, reltio is not allowing me to do that. Is there any alternative way I can achieve this ? Below attaching Image of the requirement.
Thanks & Regards
Nandakumar Nandhi
------------------------------
Nanda kumar Nandhi
Novartis
------------------------------