LOAD JSONL command. The expected format is compatible with Neo4j APOC’s JSON export (produced by apoc.export.json.all with useTypes:true).
Expected file format
Each line is a self-contained JSON object representing either a node or a relationship:"type": "node"):
| Field | Requirement |
|---|---|
type | Must be the string "node" |
id | Required. Integer or string parseable as integer. Must start at 0 and increment by 1 with no gaps. |
labels | Required. Array with at least one label. |
properties | Optional. Dictionary with property keys and values. |
"type": "relationship"):
| Field | Requirement |
|---|---|
type | Must be the string "relationship" |
id | Required. Integer or string parseable as integer. Must start at 0 and increment by 1 with no gaps. |
label | Required. Exactly one label. |
start / end | Required. Either: - a bare integer (or string parseable as integer) referencing a node id- a dictionary with an id key holding an integer (or string parseable as integer) referencing a node id. |
properties | Optional. Dictionary with property keys and values. |
Import steps
Place your file in the TuringDB data directory
TuringDB only reads external files from the
data subdirectory of its working directory (set by --turing-dir, default $HOME/.turing).Load the file into a new graph
- Cypher
- Python SDK
mygraph and populates it with all nodes and relationships from the file.Your JSONL data is now loaded and queryable as a TuringDB graph.
Verify the import
Use meta-queries to inspect what was imported:- Cypher
- Python SDK

