Neo4j-import admin programmatically


(Ishaan Madan) #1

trying to use neo4j-admin import directly from my java program (no command line action). Is there a recommended way to go about this? Want to throw out old data and import new data on a weekly basis.


(Michael Hunger) #2

I recommend to run it from a script. Really.

In Java you could run it with Process.exec or such.

There is an underlying API for neo4j-import, which you can see in action here, but I would only use that for very specific reasons if you know what you're doing.