Open2

Neptuneでgremlinする

bohebohebohebohe

gremlinでNeptuneのDBに繋いで、クエリしてみる

  • Neptune DB instanceに接続する
  • switch to remote mode. This sends all Gremlin queries to the remote connection.
  • query to the Gremlin Graph.
         \,,,/
         (o o)
-----oOOo-(3)-oOOo-----
plugin activated: tinkerpop.server
plugin activated: tinkerpop.utilities
plugin activated: tinkerpop.tinkergraph


gremlin> :remote connect tinkerpop.server conf/neptune-remote.yaml
==>Configured your-cluster.ap-northeast-1.neptune.amazonaws.com/172.32.x.xx:8182


gremlin> :remote console
==>All scripts will now be sent to Gremlin Server - [your-cluster.ap-northeast-1.neptune.amazonaws.com/172.32.x.xx:8182] - type ':remote console' to return to local mode

gremlin> g.V().limit(1)
==>v[eec441ce-2b60-5540-1ded-36748cf71685]
gremlin>