Graph Modeling Language (GML) is a widely used format for describing graphs. TuringDB supports importing GML files natively via theDocumentation Index
Fetch the complete documentation index at: https://docs.turingdb.ai/llms.txt
Use this file to discover all available pages before exploring further.
LOAD GML command.
Expected file format
| Field | Requirement |
|---|---|
id | Required. Unique non-negative integer. |
| other fields | Optional. Stored as node properties. |
| Field | Requirement |
|---|---|
source / target | Required. Must reference the id of a node defined in the same file. |
| other fields | Optional. Stored as edge properties. |
Import steps
Place the GML 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 GML graph is now imported and ready to query.
Verify the import
Use meta-queries to inspect what was imported:- Cypher
- Python SDK

