public
Last active

A sample neo4j DB

  • Download Gist
create-neo4j-db
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
start _0 = node(0) with _0
create
(_1 {name:"Persons_Reference"}),
(_2 {name:"Citys_Refeence"}),
(_3 {name:"Events_Reference"}),
(_4 {name:"adam"}),
(_5 {name:"bill"}),
(_6 {name:"cid"}),
(_7 {name:"dave"}),
(_8 {name:"london"}),
(_9 {name:"paris"}),
(_10 {name:"oslo"}),
(_11 {name:"conference"}),
(_12 {name:"exhibition"}),
(_13 {name:"seminar"}),
_1-[:REFERENCE]->_0,
_2-[:REFERENCE]->_0,
_3-[:REFERENCE]->_0,
_4-[:IS_A]->_1,
_4-[:FRIEND]->_5,
_4-[:FRIEND]->_6,
_4-[:FRIEND]->_7,
_4-[:LIVES]->_8,
_4-[:ATTENDS]->_12,
_5-[:IS_A]->_1,
_5-[:FRIEND]->_6,
_5-[:FRIEND]->_7,
_5-[:LIVES]->_9,
_5-[:ATTENDS]->_12,
_6-[:IS_A]->_1,
_6-[:FRIEND]->_7,
_6-[:LIVES]->_10,
_6-[:ATTENDS]->_13,
_7-[:IS_A]->_1,
_7-[:LIVES]->_10,
_8-[:IS_A]->_2,
_8-[:HOSTS]->_11,
_8-[:HOSTS]->_12,
_9-[:IS_A]->_2,
_9-[:HOSTS]->_13,
_10-[:IS_A]->_2,
_11-[:IS_A]->_3,
_12-[:IS_A]->_3,
_13-[:IS_A]->_3

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.