1

I'm trying to make local gremlin server as similar as possible to aws neptune.

After edit the property file

tinkergraph-custom.properties

with content:

gremlin.graph=org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph
gremlin.tinkergraph.vertexIdManager=UUID
gremlin.tinkergraph.edgeIdManager=UUID

Everything works well, except that jupyter-notebook that I'm using as client don't draw graph tab anymore enter image description here

Kelvin Lawrence
  • 14,674
  • 2
  • 16
  • 38
Hamall
  • 283
  • 3
  • 13
  • 1
    I need to check, but I suspect the underlying rendering code is not UUID aware enough to make sense of the result. If you use string or numeric IDs does it work OK? If other ID types work, would you be able to open an issue on the graph-notebook GIT repo? – Kelvin Lawrence Apr 11 '23 at 16:52
  • I tried with *IdManager=LONG and works well. And i noticed that neptune id type is actually a string. – Hamall Apr 11 '23 at 17:58
  • Yes - it seems likely a little code tweak is needed where the graph-notebook parses out result data such that a diagram can be drawn and the Graph tab appears. It is intended that graph-notebook work well with a Gremlin Server. So it looks like a small change is probably needed to make sure that UUID IDs work correctly. – Kelvin Lawrence Apr 11 '23 at 18:39

1 Answers1

1

The code in graph-notebook that takes a query result and decides if it can be rendered visually ("Graph" tab), was not anticipating/handling the UUIDs that a Gremlin Server supports. It will work with string IDs or integer IDs.

The issue will be resolved by this PR https://github.com/aws/graph-notebook/pull/475 once merged.

Kelvin Lawrence
  • 14,674
  • 2
  • 16
  • 38