Hello,
not sure if this is right forum to ask. I’m new into graph DBs.
I have task when I will receive records about people encounters:
- peopleID1, peopleID2, time
My use case is to get all people with who was in touch specified user in some range interval (say last 14 days). It has to be transition closure.
So lets say Person1 was in touch with Person2 and Person2 with Person3. I want to query Person1, it shouldd return Person2 and Person3.
My first idea was to try GraphDB, but I don’t have any experience and I’m not sure if this is right approach.
I was looking into dgraph… For my usecase I can use @reverse edges. And to edge by using facelet add time attribute?
I would really appreciate how to insert these records.
I found something like this
{
"set":{
"name":"Alice",
"encounter":{
"name":"Betty",
"encounter":{
"name":"Cecilie"
}
}
}
}
But is’s not really what I want. I want to add just edges and if node doesn’t exist, just creates them.
And how to query it afterwards? I found this Flattening to get unique nodes within n steps it looks similar issue like mine.
Some scoring would be great. Eg. how many times he encounters the other one, or how “deep” is the connection.
I know I got a lot of newbie questions and I don’t want from you to solve my task (it would be great :D) just point me to right direction?