where to find gremlin-java docs
I'm looking to learn how to make gremlin queries from a Java app. I've discovered I can't use raw gremlin inside a java app and need something called Java-gremlin.
What is a good resource for learning java-gremlin?
Solution:Jump to solution
I’m not completely sure what do you mean by not being able to use Gremlin in Java app. Gremlin here different language variants and the Java GLV was the first one originally developed.
A great way to start I think would be to read Practical Gremlin book by @KelvinL because it has a lot of great use cases and their detailed explanations: https://kelvinlawrence.net/book/Gremlin-Graph-Guide.html
If you interested in Gremlin syntax and how it works, I would suggest TinkerPop documentation: https://tinkerpop.apache.org/docs/current/reference/
...
1 Reply
Solution
I’m not completely sure what do you mean by not being able to use Gremlin in Java app. Gremlin here different language variants and the Java GLV was the first one originally developed.
A great way to start I think would be to read Practical Gremlin book by @KelvinL because it has a lot of great use cases and their detailed explanations: https://kelvinlawrence.net/book/Gremlin-Graph-Guide.html
If you interested in Gremlin syntax and how it works, I would suggest TinkerPop documentation: https://tinkerpop.apache.org/docs/current/reference/
TinkerPop community can help you with your gremlin queries here: https://discord.com/invite/tinkerpop
Also, in your Java app if you are using embedded JanusGraph you can call ‘janusGraph.traversal().V().has(…)…’ to make Gremlin queries.
You can use also a newer feature (if you are already in the latest RC version) and evaluate queries from the string like ‘janusGraph.eval(“g.V().has(…)…”);’
If you want to use remote JanusGraph, you can use ‘janusgraph-driver’ in your Java app to establish a remote connection to your JanusGraph server and send queries there.
Hope it will help you to get started.