I agree with David's suggestion of using relationship types for two reasons:
- It definitely makes querying/traversal easier - It reduces the need for unnecessary properties on a "generic" relationship type (the relationship type's .name() method provides something like an "implicit" property) -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of David Montag Sent: Wednesday, March 16, 2011 1:42 PM To: Massimo Lusetti Cc: Neo4j user discussions Subject: Re: [Neo4j] Graph design Massimo, It sounds like certain PERFORMED_ACTION_ON and ACTION_TOOK_PLACE_FROM relationships are logically grouped/related. Is this a correct statement? If so, then you might want to consider something like: (UID) --TOOK_ACTION--> (ACTION) (ACTION) --TOOK_PLACE_FROM--> (IP) (ACTION) --WAS_PERFORMED_ON --> (DOMAIN) Could such a model possibly make reasoning about and querying the data easier? David On Wed, Mar 16, 2011 at 10:26 AM, Massimo Lusetti <[email protected]>wrote: > On Wed, Mar 16, 2011 at 6:17 PM, David Montag > <[email protected]> wrote: > > > Massimo, > > So just to understand your graph layout, you have: > > (UID) --PERFORMED_ACTION_ON--> (DOMAIN) > > (UID) --ACTION_TOOK_PLACE_FROM--> (IP) > > Is this correct? Could you elaborate a bit more on the use case, along > with > > the queries you want to do on your data? > > Thanks, > > David > > Yep, I got: > > (NETWORK) --> (IP) <-- (UID) --> (DOMAIN) > > Then I need to "collect" which actions (defined as properties of the > rel between UID and DOMAIN) users has taken from which NETWORK and > calculate statistics (which domains are most used, the IP more > frequently used, the active UID in a period of time... and so on) and > do some (for now limited) semantic analysis. > > Does this sounds good? Am I using neo4j the right way? > > Cheers > -- > Massimo > http://meridio.blogspot.com > -- David Montag Neo Technology, www.neotechnology.com Cell: 650.556.4411 [email protected] _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

