Absolutely! Funny how entities start falling about the woodwork when you think 
graphy.

There's a "purchase" entity that links the specific pen, shopper, and shop too. 
You might even boil it down to line items if that makes sense in this domain. 
And don't get me going on where the pen was (ethically) sourced - so many 
interesting things to explore.

Jim

On 16 Jun 2011, at 00:34, Craig Taverner wrote:

> Another common thing to do in this case is create a node for the purchase
> action. This node would be related to the purchaser (user), item (pen) and
> shop, and would contain data appropriate to the purchase (date/time, price,
> etc).
> 
> Then traverse from the shop or the pen to all purchase actions that
> reference the other one (shop or pen).
> 
> On Thu, Jun 16, 2011 at 4:48 AM, Jim Webber <[email protected]> wrote:
> 
>> Hi Manav,
>> 
>> I think there's a relationship missing here.
>> 
>> Pen--SOLD_BY-->shop
>> 
>> That way it's easy to find all the pens that a shop sold, and who them sold
>> them to.
>> 
>> In general modelling your domain expressively does not come at an increase
>> cost with Neo4j (caveat: you can still create write hotspots).
>> 
>> Jim
>> _______________________________________________
>> Neo4j mailing list
>> [email protected]
>> https://lists.neo4j.org/mailman/listinfo/user
>> 
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to