[TinkerPop 3] Connect to Gremlin-Server via Java

677 views
Skip to first unread message

forgetth...@gmail.com

unread,
Jun 19, 2014, 6:02:07 AM6/19/14
to gremli...@googlegroups.com
Hi,

in Java I could connect from local to the server via Rexster which is installed on the server.

The Java snippet I used to connect to Rexster was:
RexsterClient client = RexsterClientFactory.open(serverIP, graphName);
List<Map<String, Object>> results = client.execute("g.v(1).map");
Map<String, Object> map = results.get(0);
System.out.println(map.get("name"));

Now, how can I connect to Gremlin-Server from TinkerPop3 to the server via Java?

Best regards
Viktor

Stephen Mallette

unread,
Jun 19, 2014, 8:17:54 AM6/19/14
to gremli...@googlegroups.com
I didn't document it for M1 since this aspect of TP3 is still up for change, but since you ask, I've written a few paragraphs explaining how it works:





--
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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

dp

unread,
Oct 23, 2014, 7:15:32 PM10/23/14
to gremli...@googlegroups.com
Stephen,

Would it be possible to point to some samples on performing CRUD operations on Vertices and Edges to Gremlin Server from Java Client.

-thanks in advance, dp

Stephen Mallette

unread,
Oct 24, 2014, 9:24:09 AM10/24/14
to gremli...@googlegroups.com
There are no such samples as of yet other than what is in the TP3 documentation referenced.  However, it's all just Gremlin right now with respect to gremlin-driver. To do CRUD operations you are simply issuing Gremlin strings to do it.  There isn't much more to it than that.

Reply all
Reply to author
Forward
0 new messages