the rise of graph databases we can insert the connected data in figure into neo by using cypher we can write cypher commands directly in the browser-based interface of neo jor alternatively through python driver (see databases to write an appropriate create statement in cypherfirst we should have good understanding of which data we' like to store as nodes and which as relationshipswhat their properties should beand whether labels would be useful the first decision is to decide which data should be regarded as nodes and which as relationships to provide semantic context for these nodes in figure we've chosen to represent the users and countries they have been in as nodes data that provides information about specific nodefor example name that' associated with nodecan be represented as property all data that provides context about two or more nodes will be considered as relationship nodes that share common featuresfor example cambodia and sweden are both countrieswill also be grouped through labels in figure this is already done in the following listing we demonstrate how the different objects could be encoded in cypher through one big create statement be aware that cypher is case sensitive listing cypher data creation statement create (user :user {name :'annelies'})(user :user {name :'paullastname'beun'})(user :user {name :'muhuba'})(user :user {name 'jelmelastname'ragnar'})(country :country name:'mongolia'})(country :country name:'cambodia'})(country :country name:'new zealand'})(country :country name:'sweden'})(food :food name:'sushi})(hobby :hobby name:'travelling'})(user )-[:has_been_in]->(country )(user )-[has_been_in]->(country )(user )-[has_been_in]->(country )(user )-[has_been_in]->(country )(user )-[is_mother_of]->(user )(user )-[knows]->(user )(user )-[is_friend_of]->(user )(user )-[likes]->food )(user )-[likes]->food )(user )-[is_born_in]->(country running this create statement in one go has the advantage that the success of this execution will ensure us that the graph database has been successfully created if an error existsthe graph won' be created in real scenarioone should also define indexes and constraints to ensure fast lookup and not search the entire database we haven' done this here because our simulated data set is small howeverthis can be easily done using cypher consult the