Hi, I'm just starting out investigating graph databases and OrientDB and 
I'm trying to work out how to best model this scenario:

In my app a user can tag a resource but I also need to know who tagged 
which resource. In a relational database I would simply have a join table 
which can be used to discover which user applied a particular tag. In my 
initial attempt at converting this to a graph model I had 3 vertices for 
Person, Resource and Tag but couldn't work out how to define edges that 
allow me to determine which person applied a tag.

All I could come up with is to add a fourth vertex to represent the actual 
tagging event ('Review' in the schema below).
Is this how you experts would handle such a scenario or is there a better 
way?


<https://lh5.googleusercontent.com/-XbURlewkAcM/VQUgcnwlriI/AAAAAAAAA98/qObASq70RjA/s1600/db_schema.png>


-- 

--- 
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.

Reply via email to