O'Reilly logo

Neo4j Graph Data Modeling by Mahesh Lal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A model for reviews and comments

The following figure gives an example of the information that reviews and comments will contain:

A model for reviews and comments

Figure 6.1: Reviews and comments

Every review has to be uniquely identified for which we use the _id property. Value for money, comfort, food, and service are all the parameters that have been discussed earlier. The rating has been given on a scale of 1 to 5, assuming 1 to be lowest and 5 to be the highest. In addition to these, we have created_on, which is the timestamp of the creation of the review. Similarly, stayed_on is a timestamp of the day that the reviewer stayed at the hotel. We also capture additional information ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required