First, I am a newbie to dgraph and graphdb.
My simplified use case is that there are 2 entities, people and company.
People invests in company, and people may have different relationships, like parent/child, husband/wife, siblings, friends. These are all kinship relationship, but of different types.
The questions to be answered will be find the path between people and company, such as Person A’s wife’s older sister’s son’s friend invest a company.
What is the best way to model the relationship between peoples?
- name predicate as kin, add specific kind (parent/child, siblings…) as facet
con: not easy to tell the relationship, like who is parent, who is child.
- put kinship as vertex, connect people to kinship
- create different predicate for different kinships.
- any other suggestion?
Thanks a lot!