Neo4j-import admin programmatically

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.

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.

1 Like