## a function to import cypher statements into the shell
build_import = function(NEO_SHELL="~/neo4j-community-2.3.1/bin/neo4j-shell",
cypher_file) {
cmd = sprintf("%s -file %s", NEO_SHELL, cypher_file)
system(cmd)
}
## example
## import the database from scratch
## build_import(cypher_file="import-db.cql")