Hi, if you really need to model this scenario...I guess this is a good way to do it.
Which are the queries you'd like to answer? Anyway this is somehow different from a graph database scenario and probably I would use the lower level Document API with LINKs. Another possibility is to use what is called "reification" of your relation. In your case create a class Statement, which extends Vertex. A statement has always an outgoing edge labeled "subject" and another outgoing edge labeled "object". The first statement (s1) has subject Bob and object Star Trek. The second statement (s2) has subject Joe and object s1. Each statement of course may have a label or type. I prefer the reification solution, since you are compliant with the graph model. Cheers, Riccardo 2015-08-23 20:54 GMT+02:00 <[email protected]>: > On Sunday, August 23, 2015 at 4:17:15 AM UTC-4, scott molinari wrote: >> >> The image didn't work because the link is broken. The image throws a 403. >> >> Scott >> > > Thanks for the info! With my 1st post, I had dragged/dropped the image > from my computer into the Google Groups post editor, and, since the image > appeared in my editor, it looked like it was going to work. Oh, well. > > > The link in my 2nd post works for me: > http://astroblahhh.com/temporary__files/orient_db_group/OrientDB-Question-1.png > > Archive.org also was able to access that link: > https://web.archive.org/web/http://astroblahhh.com/temporary__files/orient_db_group/OrientDB-Question-1.png > > > But, in case the link from my 2nd post is also not working for some > people, here's an ASCII art version of my picture: > > > |-----| |-----------| > | Bob |----likes--->| Star Trek | > |-----| ^ |-----------| > | > | likes > | > |-----| > | Joe | > |-----| > > Explanation: Joe likes the fact that Bob likes Star Trek. > > Here's a link to my original post, containing my questions: > https://groups.google.com/d/msg/orient-database/NDrGteQLmf8/kOQ0gEZiBAAJ > > Sorry for all the confusion! > > Best wishes, > Apollia > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
