We provide different ways to load external data into a TuringDB graph. As for now, the following format can be imported to a TuringDB graph:
jsonlgml
To be able to import external files into a TuringDB graph, they have to be saved into the data subdirectory in the TuringDB directory: -turing-dir flag when you run turingdb (by default is $HOME/.turing).
- Cypher
- Python SDK
Load a jsonl file as a TuringDB graph:
LOAD JSONL 'myjsonl.json' AS mygraphLoad a gml file as a TuringDB graph:
LOAD GML 'mygml.gml' AS mygraphLoad a jsonl file as a TuringDB graph:
client.query("LOAD JSONL 'myjsonl.json' AS mygraph")Load a gml file as a TuringDB graph:
client.query("LOAD GML 'mygml.gml' AS mygraph")
