Skip to content
Joshua Shinavier edited this page Mar 25, 2017 · 1 revision

From SmSn 1.1 (TinkerPop v2) to SmSn 1.2+ (TinkerPop v3)

Step 1: export your TinkerPop2 graph in GraphML

Use the shortcut "C-c C-w g" to export your knowledge graph. Make sure you see a red prompt, indicating that all of your data (including private data) will be included in the exported graph.

You can now shut down Rexster and move the contents of your Neo4j directory to a safe backup location; you will not use them again.

Step 2: transform the GraphML dump for TinkerPop3

Download this XSLT, then apply it to the GraphML dump you have just created:

xsltproc tp2-to-tp3-smsn.xslt /tmp/joesbrain.xml > /tmp/joesbrain-tp3.xml

The result is another GraphML file which is compatible with Apache TinkerPop and SmSn 1.2.

Step 3: install Gremlin Server and the SmSn plugin

Install and configure Gremlin Server as described in Installation.

Step 4: import the new GraphML dump

Once Gremlin Server and the SmSn plugin are running, execute "C-c C-r g" in Brain-mode to import the TP3-compatible GraphML file into your new, empty Neo4j graph. You may not simply load the file in Gremlin Console, as SmSn needs to index the data in application-specific ways.

At this point, the upgrade process is complete.