Console Variables in gremlin remote console.

770 views
Skip to first unread message

Shahid Iqbal

unread,
May 25, 2018, 10:42:43 AM5/25/18
to gremli...@googlegroups.com
Hi,
I am newbie and using Gremlin Console connecting to AWS Neptune from an EC2 instance and having few questions if someone can guide.

1. I want to use variables within Gremlin Console with approach as below, but it's not working. How can I get this working? Please see error at the end of message.

Second, any reference you can suggest for:
- Graph Schema Modeling  (basically guidelines to model a NoSQL DB or Relational DB to Graph DB)

Third, Can you please suggest an add-on or API that can create Visual Graph either from a Gremlin Query output or from JSON output of a Gremlin query.

Many thanks.


plugin activated: tinkerpop.server
plugin activated: tinkerpop.utilities
plugin activated: tinkerpop.tinkergraph
gremlin> :remote connect tinkerpop.server conf/neptune-remote.yaml
==>Configured ip-172-30-2-111.ec2.internal/172.30.2.111:8182
gremlin> :remote console
==>All scripts will now be sent to Gremlin Server - [ip-172-30-2-111.ec2.internal/172.30.2.111:8182] - type ':remote console' to return to local mode
gremlin> g.V().has('name','marko').next()
==>v[1]
gremlin> marko = g.V().has('name','marko').next()
{"requestId":"dff9916a-2a67-4744-a8e9-b8e6ead26620","code":"MalformedQueryException","detailedMessage":"Query parsing failed at line 1, character position at 2, error message : token recognition error at: 'rk'"}


--

Si

Stephen Mallette

unread,
May 25, 2018, 12:50:24 PM5/25/18
to Gremlin-users
Neptune is sessionless therefore it can't support that capability in the console. See other differences here:


As for references for "graph schema", i'm not sure. I've always found that kind of documentation really hard to write myself and i'm not sure i can think of any resources that are especially helpful....I don't think Kelvin's book even covers that:


Gephi works pretty well for visualization with Gremlin:


you do have to work a bit differently than that tutorial if you're trying to work with neptune though. you would need to subgraph() 


neptune and then visualize that subgraph or some query of that subgraph.








--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAFv4cttoXz5hCM1Qo0oAUZb9m8G3oc42-WAHMheVjj%3D9E32Y8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Kelvin Lawrence

unread,
May 25, 2018, 4:05:38 PM5/25/18
to Gremlin-users
Yes, I only scratch the surface on data modelling in the book. It's a topic I should probably consider adding more coverage on but I do provide a little guidance on a few basic things to consider when designing a graph schema but that's about it.

The small amount of coverage I do have is in these two sections:


Cheers,
Kelvin
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.

JB Data

unread,
May 29, 2018, 2:42:13 AM5/29/18
to gremli...@googlegroups.com
As you mention Gephi as a vizu tools for Gremlin, maybe you can help me to well configure my env (I already do a post about my issue "tinkerpop.gephi plugin always 404"
I read the documentation many times, maybe I do a mistake.

My 3.3.3 console sequence:
gremlin> :plugin use tinkerpop.gephi
==>tinkerpop.gephi activated
gremlin> graph = TinkerFactory.createModern()
==>tinkergraph[vertices:6 edges:6]
gremlin> :remote connect tinkerpop.gephi
==>Connection to Gephi - http://localhost:8080/workspace1 with stepDelay:1000, startRGBColor:[0.0, 1.0, 0.5], colorToFade:g, colorFadeRate:0.7, startSize:10.0,sizeDecrementRate:0.33
gremlin> :remote config host 192.168.56.1
==>Connection to Gephi - http://192.168.56.1:8080/workspace1 with stepDelay:1000, startRGBColor:[0.0, 1.0, 0.5], colorToFade:g, colorFadeRate:0.7, startSize:10.0,sizeDecrementRate:0.33
gremlin> :remote config port 8081
==>Connection to Gephi - http://192.168.56.1:8081/workspace1 with stepDelay:1000, startRGBColor:[0.0, 1.0, 0.5], colorToFade:g, colorFadeRate:0.7, startSize:10.0,sizeDecrementRate:0.33


Gephi 0.9.2 side, the streaming plugin parameters are:
Port 8081, no SSL, no basic authent.

The embedded jetty seems to be OK, so no network problem, but the only response I receive is 404.

gremlin> :> graph
Unsuccessful request to Gephi - [404] Not Found - <html>


?




@JBΔ


Stephen Mallette

unread,
May 29, 2018, 7:05:44 AM5/29/18
to Gremlin-users
Reply all
Reply to author
Forward
0 new messages