MATCH (n) RETURN n
this is the title
This is how you might model Premier League managers tenures at different clubs in Neo4j:
The date modeling is based on an approach described in more detail in Return partly shared path ranges.
Our example graph consists of movies with title and year and actors with a name. Actors have ACTS_IN relationships to movies, which represents the role they played. This relationship also has a role attribute.
We queried and updated the data so far, now let’s find interesting constellations, a.k.a. paths.
This is the Orienteering Dataset based on the blog.neo4j.org post.
It’s a simple, three-leg training course in an Antwerp park. Setting this up as a graph in neo4j was easy enough:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= Business Rule / Recommendation gist = | |
Let's see if I can create a graphgist for business rules/simple recommendations. | |
//console | |
First, lets create the graph: | |
//setup | |
[source,cypher] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`CREATE UNIQUE` will make sure we don't create duplicate patterns. | |
Using this: `[r:ACTED_IN]` lets us return the relationship. |