I'm building a example of a solution to count visits between Persons and Places. In this time I have some doubts to modeling.
First of all, what is the better pratice, make various Visit nodes with it's own properties, or put some properties on relationships.
This question is about create nodes with just one relation, like Person-make->Visit and Visit-there->Place (only one node visit with unique relation between them, or, shoud I make various relations Visit, with it's own properties but between the same nodes when it repeats?
I would start with relationships and only if you see the need arise to add more information to the visit choose to elevate them to nodes (either in general or in a case-by-case basis).
What is your use-case you want to solve with the data?
Hi,
It's better to add timestamp, precision, arrival and departure as properties to the Relationship. See the picture below.
I added relationship {date:'01/01/2018'} to "VISITS" relationship. Here visitor 'V1' visits places 'P1' and 'P2' on the same day and also visits 'P1' on a different date. 'V1' has two relations with 'P1'.
You can extend this simple model to suit your needs.
-Kamal