Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-16 Thread Jeroen van Dijk
If your versions are not consistent then this may be the reason why you're traversals in Gremlin REPL are working, but not in Gremlin Plugin (for example). This was indeed the case for me, I compared the Gremlin version 1.3 locally to 1.1 in the webconsole. Thanks for pointing this out.

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-08 Thread Jeroen van Dijk
HI Michael, Thanks for this solution. The webconsole now gives me the right results also for recommendation query. There is however still something weird when I use this recommendation query in the gremlin console: gremlin node = g.v(14260); m = [:].withDefault{0.0}; a_total =

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-08 Thread Michael Hunger
There are some weird things going on. Probably have to do with javax.script.ScriptEngine.eval() We should investigate this thoroughly. Perhaps Peter and Marko can spend some cycles on it. Michael 1) behaviour native gremlin vs 2) Neo4j web console vs. 3) REST-calls Am 08.11.2011 um 12:02

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-08 Thread Peter Neubauer
Yup, I have at least Tathams issue to start with. Will report back and see if it solves this one too. Feel free to add this example to the issue on the Gremlin plugin. On Nov 8, 2011 12:32 PM, Michael Hunger michael.hun...@neotechnology.com wrote: There are some weird things going on. Probably

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-08 Thread Peter Neubauer
Hi all (and Romiko), it might be that this issue, as Romikos, is confusion about the use of the {}. In Gremlin 1.3, you have to explicitly use filter{} in order to do this, see https://github.com/neo4j/gremlin-plugin/issues/3 for an example. I have locally comitted a documentation example for

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-08 Thread Marko Rodriguez
Hey, To expand on Peter's point. I suspect people are mixing versions of Gremlin. Gremlin is generally (not usually) backwards compatible from version to version. If you are using Gremlin REPL, GremlinPlugin, and Gremlin from Neo4j WebAdmin, its good to make sure you have the same version of

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-08 Thread Romiko Derbynew
...@lists.neo4j.org] On Behalf Of Marko Rodriguez Sent: Wednesday, 9 November 2011 3:06 AM To: Peter Neubauer Cc: Neo4j user discussions; Michael Hunger Subject: Re: [Neo4j] Wrong Gremlin results through REST interface Hey, To expand on Peter's point. I suspect people are mixing versions of Gremlin

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-07 Thread Michael Hunger
Jeroen, that would indeed help a lot. I'll find it. Michael Am 07.11.2011 um 12:34 schrieb Jeroen van Dijk: Hi Michael, I would like to provide a better example, but my Groovy is quite poor so it I'll take me some time. However I think the problem isn't in the JSON conversion. Because

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-07 Thread Jeroen van Dijk
Ok i think I found an example that is independent of my data (adapted from http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html) Locally: gremlin m = [:];g.v(33).bothE().label.groupCount(m) -1;m ==follows=11 ==owns=48 gremlin m = [:];g.v(33).bothE().label.groupCount(m) { it }{ it += 0.1 }

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-07 Thread Michael Hunger
Jeroen, could you try to use the alternative syntax: ... groupCount(m) { it : it += 0.1 } ... It seems to be a problem with evaluation of the string in the javax.ScriptEngine for Groovy Here is the output from my web-console: • gremlin m = [:];g.v(33).bothE().label.groupCount(m) { it