Hi, thanks for the response. To answer your first question, yes, I installed sparql-gremlin on the server and used the console to connect to the server. I am new to jg, gremlin, sparql-gremlin so followed the instructions here to setup the console, server, jg connections (
https://wforget.github.io/2020/12/14/Gremlin-Server-Console-%E9%80%82%E9%85%8D-Atlas-JanusGraph/). I then did this:
https://stackoverflow.com/questions/68905209/does-sparql-gremlin-plugin-support-janusgraph to install sparql-gremlin on gremlin server and also had to futz with the config a bit to load the plugin on server side.
Regarding the stack trace on the failed traversal call, please see (this is from the console side):
gremlin> :remote connect tinkerpop.server conf/remote.yaml session
==>Configured localhost/127.0.0.1:8182-[1e449fa7-9c25-4490-8a2f-0c5198a9db81]
gremlin> :remote console
==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182]-[1e449fa7-9c25-4490-8a2f-0c5198a9db81] - type ':remote console' to return to local mode
gremlin> gr = graph.traversal()
==>graphtraversalsource[standardjanusgraph[hbase:[127.0.0.1:2181]], standard]
gremlin> g = traversal(SparqlTraversalSource).withEmbedded(gr.getGraph())
==>sparqltraversalsource[standardjanusgraph[hbase:[127.0.0.1:2181]], standard]
gremlin> g.sparql("""select * where {?s ?p ?o .}""")
org.apache.tinkerpop.gremlin.process.traversal.Traversal$Admin.isRoot()Z
Type ':help' or ':h' for help.
Display stack trace? [yN]y
java.lang.NoSuchMethodError: org.apache.tinkerpop.gremlin.process.traversal.Traversal$Admin.isRoot()Z
at org.apache.tinkerpop.gremlin.sparql.process.traversal.strategy.SparqlStrategy.apply(SparqlStrategy.java:68)
at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversalStrategies.applyStrategies(DefaultTraversalStrategies.java:88)
at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.applyStrategies(DefaultTraversal.java:124)
at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.hasNext(DefaultTraversal.java:195)
at org.apache.tinkerpop.gremlin.server.op.AbstractOpProcessor.handleIterator(AbstractOpProcessor.java:97)
at org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessor.lambda$evalOpInternal$5(AbstractEvalOpProcessor.java:263)
at org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.lambda$eval$0(GremlinExecutor.java:283)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
gremlin>
Thanks!