Prerequisites
- A running or restorable Neo4j instance (version 4.x or 5.x) with the APOC plugin installed
- A running TuringDB instance
Migrating from Neo4j 4.x
If your database was created with Neo4j 4.x, you need to migrate it to the 5.x format before exporting. Usingneo4j-admin:
1
Export from Neo4j with APOC
Connect to your Neo4j instance (via Neo4j Browser, This writes the entire graph to
cypher-shell, or any client) and run:output.json in Neo4j’s import directory (typically $NEO4J_HOME/import/). The file contains one JSON object per line — one for each node and one for each relationship.2
Copy the file to TuringDB's data directory
TuringDB only reads external files from the
data subdirectory of its working directory (set by -turing-dir, default $HOME/.turing).3
Load the file into a new graph
- Cypher
- Python SDK
mygraph and populates it with all nodes and relationships from the file.4
Set the graph as active and query it
- Cypher
- Python SDK
Your Neo4j graph is now available in TuringDB as
mygraph.Verify the import
Use meta-queries to inspect what was imported:- Cypher
- Python SDK

