(you)-[:KNOW]->(Neo4j)
Windows | Mac/Linux |
---|---|
Run the "Install-Neo4j.exe" |
Start a terminal |
When you see Neo4j desktop |
When you see the command prompt, |
Click the start button |
Type "./bin/neo4j start" |
(you)-[:KNOW]->(Neo4j)
with Michael Hunger
info@neotechnology.com | @neo4j
8.30am - Registration, installation and breakfast 9.00am - Session 1: Graphs and Modeling 10.30am - Morning coffee break 10.45am - Session 2: Neo4j and Cypher 12.00pm - Lunch 1.00pm - Session 3: Advanced queries using Cypher 2.30pm - Afternoon coffee break 2.45pm - Session 4: Next steps and Q&A 4.00pm - End of training
Swiss Mathematician
Königsberg (Prussia) - 1736
7 Bridges, one route?
Identify parts → Landmasses & Bridges
It’s a graph → Nodes & Relationships
Path finding → There was no route
(a)-[r] - >()
(a)-[:ACTED_IN]→(m)
(a) - - >(b) - - >(c)
(a) - - >(b)< - - (c)
a.name | m.title | d.name |
---|---|---|
“Keanu Reeves” |
“The Matrix” |
“Andy Wachowski” |
“Keanu Reeves” |
“The Matrix Reloaded” |
“Andy Wachowski” |
“Noah Wyle” |
“A Few Good Men” |
“Rob Reiner” |
“Tom Hanks” |
“Cloud Atlas” |
“Andy Wachowski” |
actor | movie | director |
---|---|---|
“Keanu Reeves” |
“The Matrix” |
“Andy Wachowski” |
“Keanu Reeves” |
“The Matrix Reloaded” |
“Andy Wachowski” |
“Noah Wyle” |
“A Few Good Men” |
“Rob Reiner” |
“Tom Hanks” |
“Cloud Atlas” |
“Andy Wachowski” |
a.name | m.title | d.name |
---|---|---|
“Keanu Reeves” |
“The Matrix” |
“Andy Wachowski” |
“Keanu Reeves” |
“The Matrix Reloaded” |
“Andy Wachowski” |
“Noah Wyle”, “A Few Good Men” |
“Rob Reiner” |
“Tom Hanks”, “Cloud Atlas" |
count(x)
- add up the number of occurrencesmin(x)
- get the lowest valuemax(x)
- get the highest valueavg(x)
- get the average of a numeric valuesum(x)
- add up all valuescollect(x)
- collected all the occurrences into an arraya.name | d.name | count(*) |
---|---|---|
“Aaron Sorkin" |
“Rob Reiner” |
2 |
“Keanu Reeves” |
"Andy Wachowski” |
3 |
“Hugo Weaving” |
“Tom Tykwer” |
1 |
a.name | d.name | count(m) |
---|---|---|
“Aaron Sorkin" |
“Rob Reiner” |
2 |
“Keanu Reeves” |
"Andy Wachowski” |
3 |
“Hugo Weaving” |
“Tom Tykwer” |
1 |
actor | director | count |
---|---|---|
“Aaron Sorkin" |
“Rob Reiner” |
2 |
“Keanu Reeves” |
"Andy Wachowski” |
3 |
“Hugo Weaving” |
“Tom Tykwer” |
1 |
(Movies featuring Tom Hanks)
(Directors who worked with Tom Hanks)
Tom Hanks
Movies
Directors
(Directors who worked with Tom Hanks)
(Movies featuring both Tom Hanks and Kevin Bacon)
(Movies in which Tom Hanks acted, that were released before 1992)
Tom Hanks
Movies
(Movies in which Keanu Reeves played Neo)
(Movies in which Keanu Reeves played Neo)
(Actors who worked with Tom and are older than he was)
(Actors who worked with Tom and are older than he was)
(Actors who worked with Gene Hackman)
(Actors who worked with Gene and were directors of their own films)
(Actors who worked with Keanu, but not when he was also working with Hugo)
(Wrong Error Message)
(delete all content in the database)
Uses indexes, constraints and locks to guarantee unique lookup and creation
(Create KNOWS relationships between anyone, Actors or Directors, who worked together)
(a)-[*1..3]→(b)
/
#