Skip to content

Instantly share code, notes, and snippets.

@dgkris
Last active January 15, 2019 02:59
Show Gist options
  • Select an option

  • Save dgkris/a78f479c0a01f349b0b6 to your computer and use it in GitHub Desktop.

Select an option

Save dgkris/a78f479c0a01f349b0b6 to your computer and use it in GitHub Desktop.
= C Graph
:neo4j-version: 2.0.0-RC1
'''
//setup
//hide
== Initial Data Setup
[source,cypher]
----
CREATE (person1:Persona { name:'Jin Daikoku', aliasName:'Jin' }),
(md5OfEmail:Email),
(md5OfPhoneNumber:Phone),
(md5OfAddress:Address{ city:'Fairfax',state:'VA',zipcode:'22033',lat:'20.31',lon:'22.34' }),
(location2:Location{ city:'Arlington',state:'VA',zipcode:'22032',lat:'23.21',lon:'22.94' }),
(location3:Location{ city:'McLean',state:'VA',zipcode:'22031',lat:'20.34',lon:'22.14' }),
(person1)-[:STAYS_AT]->(location1),
(person1)-[:STAYS_AT]->(location2),
----
//graph
'''
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment