- Nodes
- Reviewer
- Review
- Beers
- Relationships
- Reviewer ↔ Review
- Review ↔ Beers
Each Reviewer can rate beers via a Review, with the graph thus obtained we can query the database to know which beers are the most rated, the best rated or find the beers that match specific criteria.
The file Rapport Neo4J.docx is a benchmark wrote in french about the NEO4J software.NEO4J is widely used to make recommendations. So we wanted to test this functionality. We started from the NEO4J documentation which is very detailed, then we adapted the codes to our use case.
We built the algorithm to find the similar beers of a given beer. To establish whether a beer is similar to another, we chose to proceed in steps.
- First, We select the beers that have been rated by users who have reviewed a given beer.
- Then, among the beers we have, we keep only the beers with a rating at least equal to 4/5.
- Thus, we have a list of beers similar to our beer. We then sort the beers according to the number of times they appear in the list.
- The beers on the top of the list are those which are recommanded.