Exports Graph with Gremlin

Why we need exports of Graph Databases?

i) Migration between Tinker pop enabled databases

ii) Creating backup copies of graph

There are three way It can be done

i) GraphML:- It is a lossy format

Syntax for writing

graph.io(IoCore.graphml()).writeGraph(“mydata.xml”)

Syntax for reading

graph.io(IoCore.graphml()).readGraph(“mydata.xml”)

ii) GraphSon:- It is a lossless format

Syntax for writing

graph.io(IoCore.graphson()).writeGraph(“mydata.json”)

Syntax for reading

graph.io(IoCore.graphson()).readGraph(“mydata.json”)

iii) Gyro: — Fast, efficient and lossless

Syntax for writing

graph.io(IoCore.gryo()).writeGraph(“mydata.kryo”)

Syntax for reading

graph.io(IoCore.gryo()).readGraph(“mydata.kryo”)

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response