No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.DefaultGraphTraversal.addEdge() is applicable for argument types: (java.lang.String, org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.DefaultGraphTraversal) values: [knows, [GraphStep([1700],vertex)]]
:> g.V(685).addEdge('knows', g.V(1700))
./bin/gremlin.sh
# in the console now
gremlin> :remote connect tinkerpop.server conf/remote.yaml
==>Connected - localhost/127.0.0.1:8182
gremlin> :> g.addV('name', 'test')==>v[1848]gremlin> :> g.addV('name', 'test2')==>v[1850]
gremlin> :> g.V(1848)==>v[1848]
gremlin> :> g.V(1850)
==>v[1850]gremlin> :> g.V(1848).addEdge('knows', g.V(1850))No signature of method: org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.DefaultGraphTraversal.addEdge() is applicable for argument types: (java.lang.String, org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.DefaultGraphTraversal) values: [knows, [GraphStep([1850],vertex)]]--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/64ade2eb-f9df-4d2c-bdb9-aed4fadf4e4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
g.V($ID1).addEdge($LABEL,g.V($ID2));g.V($ID1).next().addEdge($LABEL,g.V($ID2).next());The documentation says, in a few places, that I should be able to do:
g.V($ID1).addEdge($LABEL,g.V($ID2));
buy why does the interface look like this?
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/d675152c-1cd2-4945-a53b-0a3401a004e8%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/2740e5b1-86c3-4b2c-b363-165aaea526ee%40googlegroups.com.
I don't seem to able to get an edge by ID (:> e.E($id)) is that still a thing? I don't see any info on it
I think the issue I have is that I'm not too certain what types the examples are operating against, if there is a difference between a remote and local graph (:> g.addVertex doesn't work for me), and if the examples are straight groovy code vs gremlin in the console and if that distinction even matters. Either way, I'm getting the hang of it.
I don't seem to able to get an edge by ID (:> e.E($id)) is that still a thing? I don't see any info on it
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/cb5920e3-2015-4029-9455-159f6e89435d%40googlegroups.com.
gremlin> :> g.addV()==>v[3]gremlin> :> g.addV()==>v[4]gremlin> :> g.V(3).next().addEdge('knows', g.V(4).next())==>e[5][3-knows->4]gremlin> :> g.E(5) #no replygremlin> :> g.V(3).next().addEdge('knows', g.V(4).next(), T.id, 999)==>e[999][3-knows->4]gremlin> :> g.E(999)==>e[999][3-knows->4]To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/d8367bc9-e202-4901-b69d-2a96fc514c5c%40googlegroups.com.
Is there a way to persist a TinkerGraph like there was in 2.X?
Also, I am typically a read the code type of dude, but Java isn't a language that I've ever developed anything with. Where should I start looking to get a better understanding of how Gremlin works? I want to know things like which methods are available on which types and what are the varying signatures.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/b0391e32-b7b8-4c25-b7b6-85dfc7553b52%40googlegroups.com.
...
Specifically, you could specify the graph name on open() (in this case, "tinkergraph") and it would bind that server-side global Graph variable to "g".I didn't think we needed that capability with Gremlin Server because Gremlin Server binds all Graph and TraversalSource instances globally given the names that you configure them with. Of course, the downside there is that you can't always use a nice "g" for the context of your script so now you're stuck coupling a client side script to some naming configuration that you have in Gremlin Server.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/a7aac77d-b2d4-4319-8141-b901123347c4%40googlegroups.com.
gremlin> g.addV('name', 'test')
==>v[40968432]
gremlin> g.addV('name', 'test2')
==>v[163848240]
gremlin> g.V(40968432).next().addEdge('knows',g.V(163848240).next())
==>e[odyxq-oe3g0-b4lx-2pju40][40968432-knows->163848240]
gremlin> g.E()
23:14:57 WARN org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Query requires iterating over all vertices [()]. For better performance, use indexes
==>e[odyxq-oe3g0-b4lx-2pju40][40968432-knows->163848240]
gremlin> g.E(odyxq-oe3g0-b4lx-2pju40)
groovysh_parse: 2: unexpected token: pju40 @ line 2, column 23.
g.E(odyxq-oe3g0-b4lx-2pju40)
^
1 error
Type ':help' or ':h' for help.
Display stack trace? [yN]
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/0071ab8f-08cc-4bc1-988e-07457c413081%40googlegroups.com.
gremlin> g.E().hasLabel('knows')
11:54:26 WARN org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Query requires iterating over all vertices [(~label = knows)]. For better performance, use indexes
==>e[215ssj-215x5k-dbmd-oe07s][122888216-knows->40964248]
gremlin> g.E(215ssj-215x5k-dbmd-oe07s).drop()
groovysh_parse: 2: unexpected token: ssj @ line 2, column 8.
g.E(215ssj-215x5k-dbmd-oe07s).drop()
^
1 error
Type ':help' or ':h' for help.
Display stack trace? [yN]
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/CAA-H438378mQ_V9SdU158mqnuYSaSAhz5bOBPC045nJW9SH%3DWw%40mail.gmail.com.