cancel
Showing results for 
Search instead for 
Did you mean: 

Modelling question

killes
Node

Hi,

this is my first post, I hope I don't step onto too many toes...

I am trying to import data into Neo4j.

The data has, among other things,  Events, People and Notes.

Notes can be attached to People and Events:

(n:Note)-[:Reference]->(e:Event)

People can participate in Events:

(p:Person)-[:Participant {role : guest}]->(e:Event)

So far so easy.

But:  Notes can also be attached to the reference between people and events.

Would I need to create some "Participation" Node for the sole purpose to attach the relationship to the Note to it that is inserted between the Person and the Event? Or is there a better solution?

1 REPLY 1

glilienfield
Ninja
Ninja

I assume you can have multiple nodes related to the same event or people nodes, or you have a note related to a person and an event at the same time.  If so, I understand the need for a note node.  Given that, your suggestion of relating the interaction between a person and an event, or even between two people, with a Participation node makes sense.