5.6. Find friends based on similar tagging

5.6.1. Find people based on similar tagged favorties

Graph

cypher-peoplesimilaritytags-graph.svg

5.6.1. Find people based on similar tagged favorties

To find out people similar to me based on taggings of their favorited items, an approach could be: * Determine the tags associated with what I favorite. * What else is tagged with those tags? * Who favorites items tagged with the same tags. * Sort the result by how many of the same things these people like.

Query

START me=node(9)
MATCH me-[:favorite]->myFavorites-[:tagged]->tag<-[:tagged]-theirFavorites<-[:favorite]-people
WHERE NOT(me=people)
RETURN people.name as name, count(*) as similar_favs
ORDER BY similar_favs DESC

The list of possible friends ranked by them liking similar stuff that are not yet friends.

Result

namesimilar_favs
2 rows
0 ms

"Sara"

2

"Derrick"

1