Running OLAP queries on Janusgraph outside the Gremlin Console (from Java and G.V())
Hi, I'm able to run OLAP queries against my graph DB from the Gremlin Console, by following the directions provided here: https://docs.janusgraph.org/advanced-topics/hadoop/
However, I would like to also run OLAP queries without using the console, from an embedded Janusgraph Java application as well as from G.V().
In G.V(), I tried this while selecting
but I get the following error:
I'm assuming this is because the needed plugins are not loaded. I tried:
but this does not work outside of the console.
Any suggestions, @gdotv ?
Also, is there any example code I could use to run OLAP queries from a Java application?
Thanks!
However, I would like to also run OLAP queries without using the console, from an embedded Janusgraph Java application as well as from G.V().
In G.V(), I tried this while selecting
Groovy Mode for query submission:but I get the following error:
I'm assuming this is because the needed plugins are not loaded. I tried:
but this does not work outside of the console.
Any suggestions, @gdotv ?
Also, is there any example code I could use to run OLAP queries from a Java application?
Thanks!
Solution
Thanks, @gdotv. It would be great if the JanusGraph folks can follow up on how to expse a GraphTraversalSource.
In the meantime, I've been able to make progress on the question about using Java, by following this old-ish post by @Bo :
https://li-boxuan.medium.com/spark-on-janusgraph-tinkerpop-a-pagerank-example-43950189b159
I've been able to include all missing dependencies and compile/run this example:
In the meantime, I've been able to make progress on the question about using Java, by following this old-ish post by @Bo :
https://li-boxuan.medium.com/spark-on-janusgraph-tinkerpop-a-pagerank-example-43950189b159
I've been able to include all missing dependencies and compile/run this example: