Export the actual schema of a keyspace


Hi Grakn community,

I’ve been playing around and creating an schema dynamically and I was wondering if there is a way of exporting the schema that I’ve generated to a gql file. My goal is to iterate and do a fresh start but I was wondering if I could reuse part of the actual schema.

Thanks !



We do have an export functionality. The migration script is found in the bin/ folder.

For the ontology:

migration.sh export -ontology -keyspace grakn

For the data:

migration.sh export -data -keyspace grakn

Hope this helps.


Great ! That was exactly what I needed.
Thank you very much !

Link to the docs