Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
02-18-2020 09:12 AM
The great examples shown here (https://neo4j.com/developer/#sample-social) don't have a way to load the data into your Neo4j Desktop Browser. Just copy and paste this into the Browser command line to load the nodes and relationships into the property graph so you can then execute the example queries:
[Friends of Friends]
[Common Friends]
[Connecting Paths]
UNWIND
[["Jim","Mike"],["Jim","Billy"],["Anna","Jim"],
["Anna","Mike"],["Sally","Anna"],["Joe","Sally"],
["Joe","Bob"],["Bob","Sally"]]
AS pair
MERGE (p1:Person {name:pair[0]})
MERGE (p2:Person {name:pair[1]})
MERGE (p1)-[:KNOWS]-(p2)
03-09-2020 05:01 AM
For small examples such as this, it is not beneficial to have these statements in files for folks to download.
Elaine
All the sessions of the conference are now available online