Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-07 Thread Kevin Versfeld
hi again I suspect I'm missing something small, but when I run the following in the webadmin console, I don't get any output? m = [:]; g.v(162).in('R_PartOf').loop(1){m.put(it.object, it.loops); true}.cap.next().sort{a, b -> a.value <=> b.value}.keySet >> [] (m is empty too...) Thanks for the

Re: [Neo4j] Property loading in Neo4J 1.4

2011-11-07 Thread Mattias Persson
Properties on nodes/relationships are stored as a non-indexed linked list on disk so if you're accessing one property on a node/relationship neo4j has to load that chain (i.e. all properties, not necessarily their values though) for that node/relationship if it hasn't already done that (i.e. if its

[Neo4j] Wrong Gremlin results through REST interface

2011-11-07 Thread Jeroen van Dijk
Hi all, I'm using Gremlin to perform a recommendation query. Locally in the gremlin shell I get amazingly useful results. However when I use the webadmin gremlin console I get different results, both locally and in the Heroku addon environment. I get the same wrong results when I use the rest inte

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-07 Thread Michael Hunger
Jeroen, can you narrow it down to a simpler operation, like just a division? Perhaps in the conversion from the division result (be it Float, Double, BigDecimal) to JSON something goes awry. In the GremlinPlugin the code for that is: } else if (result instanceof Double || result instanceof Flo

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-07 Thread 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 that would mean the results I get would be the same, but with a different score right? The thing is that I get different

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. Becau

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 +=

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

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-07 Thread Kevin Versfeld
hi again I've played around a bit more, and this is the query that currently works best for me... would anyone mind "reviewing" it for me please? Feels a little like I'm getting the right answer, but the wrong way gremlin> m = [:]; gremlin> g.v(162).in('R_PartOf').loop(1){m.put(it.object, it.lo

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-07 Thread Marko Rodriguez
Hey, >From my cell phone. Add >> -1 after the traversals so it iterated and fills map. Gremlin REPL automagically iterates it. Hope that is clear, Marko. On Nov 7, 2011 1:31 AM, "Kevin Versfeld" wrote: hi again I suspect I'm missing something small, but when I run the following in the webadmi

[Neo4j] version conflicts

2011-11-07 Thread grimace
Hi, I'm just getting started with Neo4j, spatial, gremlin and Neoclipse. I can successfully run (via eclipse) an import of 'map.osm' file using OSMImporter by linking to libraries that come with the spatial distribution. When I try to use gremlin or neoclipse to attach to the data I get a db ver

Re: [Neo4j] version conflicts

2011-11-07 Thread grimace
i managed to get this working by taking the neo4j- jars from my gremlin installation and use those in the dependency folder of spatial, but I'm still not sure in what way I can fix the dependencies. It seems like the spatial distribution is has a newer kernel, though they both seem to be 1.5 -- V

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-07 Thread Marko Rodriguez
Hey, > I've played around a bit more, and this is the query that currently works > best for me... would anyone mind "reviewing" it for me please? Feels a > little like I'm getting the right answer, but the wrong way > gremlin> m = [:]; > gremlin> g.v(162).in('R_PartOf').loop(1){m.put(it.object

[Neo4j] Neoclipse not showing all nodes

2011-11-07 Thread Finalfreak
Hello everyone, I'm still pretty new to Neo4J en Neoclipse, but I'm a bit confused about the visualisation of Neoclipse. The situation: I created about 500 nodes. Once all nodes were created, I sorted them using the Index on date. I looped over the sorted nodes and created a straight-line r

[Neo4j] Batch Throughput

2011-11-07 Thread Nigel Small
Hello Neoforgers... Does anyone have any stats for the rate at which batch jobs are executed? I am working with a py2neo/GEOFF user to look at memory usage and performance for some very large jobs (working towards millions of entities) and am currently running a test which attempts to create aroun

Re: [Neo4j] Batch Throughput

2011-11-07 Thread Nigel Small
Ooops!! Hadn't set configuration params for 1.5! Much faster now :-) * * *Nigel Small* Phone: +44 7814 638 246 Blog: http://nigelsmall.name/ GTalk: ni...@nigelsmall.name MSN: nasm...@live.co.uk Skype: technige Twitter: @technige LinkedIn: http://uk.linkedin.com/in/

Re: [Neo4j] SDG 2.0.0.M1 cross-store does not work properly

2011-11-07 Thread Marcin Zasepa
Hi Michael thanks a lot for your hints, below test which expose the problem. It seems as follows: after deserialization entity state is null. Maybe this is acceptable behavior - meaning entities are not supposed to be serializable, or it is an issue which should be fixed? I added this test case to

Re: [Neo4j] HelloWorldTest.java:21: package org.neo4j.visualization.asciidoc does not exist

2011-11-07 Thread mike.hampton
Ditto -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/HelloWorldTest-java-21-package-org-neo4j-visualization-asciidoc-does-not-exist-tp3462047p3488556.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. __

[Neo4j] Simple Java Example

2011-11-07 Thread Mike Hampton
Is there a simple example of using neo4j in java? One that along the lines of HelloWorld? I looked at http://docs.neo4j.org/chunked/snapshot/server-java-rest-client-example.html, but it apparently requires some code for jetty, and I looked at http://docs.neo4j.org/chunked/milestone/server-jav

Re: [Neo4j] Simple Java Example

2011-11-07 Thread Jim Webber
Hi Mike, Neo4j's default APIs are all Java. Have a look at the Neo4j tutorial here: https://github.com/jimwebber/neo4j-tutorial It will take you from the core API right the way through indexing, traversers, Cypher, and into the REST API should you want to go that far up the stack. And it's alr

[Neo4j] Neo4j Events This Week

2011-11-07 Thread Allison Sparrow
Hey there, Here are this week's events coming up. Remember, check back to http://plancast.com/neo4j for updates! * London Tutorial | Ian Robinson and Jim Webber's Neo4j Tutorial * Thursday, 3 November 2011 This intensive Neo4J tutorial provides a mixture of theory and hands-on practical session

Re: [Neo4j] Wrong Gremlin results through REST interface

2011-11-07 Thread Romiko Derbynew
Is it possible this might be related to the problem I reported with subject Gremlig Plugin - Paramerterised Queries + Enumeration - Neo4j 1.5M02 It seems with 1.5M02 that Gremlin via REST is not working as expected. I am going to test the Gremlin Query in the console as well, and update my thread

Re: [Neo4j] Gremlig Plugin - Paramerterised Queries + Enumeration - Neo4j 1.5M02

2011-11-07 Thread Romiko Derbynew
Hi Guys, I can confirm that the gremlin query works in the Console but not in the REST API. Console Working: gremlin> g.v(0).outE[[label:'HOSTS']].inV{ it['UniqueId'] == 11761 }.drop(0).take(100)._() ==> v[756] I will log a bug issue on this: https://github.com/neo4j/gremlin-plugin/issues/3 Th

[Neo4j] How to install neo4j spatial neo4j-enterprise

2011-11-07 Thread chen zhao
Hi, My OS is ubuntu 11.04.I have downloaded 'neo4j-enterprise-1.5.M02' and 'neo4j-spatial-be288f2'.When I executed the command 'mvn clean install',it did not work,then I executed 'mvn install -Dmaven.test.skip=true',it worked very well,then I unziped 'neo4j-spatial-0.7-SNAPSHOT-server-plugin.zi

Re: [Neo4j] Gremlig Plugin - Paramerterised Queries + Enumeration - Neo4j 1.5M02

2011-11-07 Thread Marko Rodriguez
Hey, > I can confirm that the gremlin query works in the Console but not in the REST > API. > Console Working: > gremlin> g.v(0).outE[[label:'HOSTS']].inV{ it['UniqueId'] == 11761 > }.drop(0).take(100)._() > ==> v[756] > > I will log a bug issue on this: > https://github.com/neo4j/gremlin-plug

[Neo4j] Get an invitation to http://addons.heroku.com/neo4j

2011-11-07 Thread yobi
I am new to Neo4j and would really wanna try it out. Where can I get an invitation to http://addons.heroku.com/neo4j ? Thanks. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Get-an-invitation-to-http-addons-heroku-com-neo4j-tp3489005p3489005.html Sent f

Re: [Neo4j] Gremlig Plugin - Paramerterised Queries + Enumeration - Neo4j 1.5M02

2011-11-07 Thread Peter Neubauer
Thanks guys, will look into it asap. On Nov 8, 2011 3:03 AM, "Marko Rodriguez" wrote: > Hey, > > > I can confirm that the gremlin query works in the Console but not in the > REST API. > > Console Working: > > gremlin> g.v(0).outE[[label:'HOSTS']].inV{ it['UniqueId'] == 11761 > }.drop(0).take(100)

Re: [Neo4j] HelloWorldTest.java:21: package org.neo4j.visualization.asciidoc does not exist

2011-11-07 Thread Peter Neubauer
Mike, This class is part of neo4j-GraphViz. How are you setting up your classpath? On Nov 8, 2011 12:02 AM, "mike.hampton" wrote: > Ditto > > -- > View this message in context: > http://neo4j-community-discussions.438527.n3.nabble.com/HelloWorldTest-java-21-package-org-neo4j-visualization-asciido

Re: [Neo4j] version conflicts

2011-11-07 Thread Peter Neubauer
Are you running Gremlin standalone? Both Gremlin and Neoclipse might not be updated yet. Release of 1.5 is imminent, so I hope these issues are gone by this week if you can wait some days? On Nov 7, 2011 8:48 PM, "grimace" wrote: > Hi, > I'm just getting started with Neo4j, spatial, gremlin and

Re: [Neo4j] How to install neo4j spatial neo4j-enterprise

2011-11-07 Thread Peter Neubauer
Hi there, Could you please try again with a neo4j 1.5 snapshot build and report back? On Nov 8, 2011 3:01 AM, "chen zhao" wrote: > Hi, > > My OS is ubuntu 11.04.I have downloaded 'neo4j-enterprise-1.5.M02' and > 'neo4j-spatial-be288f2'.When I executed the command 'mvn clean install',it > did not

Re: [Neo4j] Batch Throughput

2011-11-07 Thread Peter Neubauer
Nice! On Nov 7, 2011 10:44 PM, "Nigel Small" wrote: > Ooops!! Hadn't set configuration params for 1.5! Much faster now :-) > * > * > *Nigel Small* > Phone: +44 7814 638 246 > Blog: http://nigelsmall.name/ > GTalk: ni...@nigelsmall.name > MSN: nasm...@live.co.uk > Skype: technige > Twitter: @techn

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-07 Thread Kevin Versfeld
Great! Thanks Marko, this has been very helpful. I did realise my mistake on the sort: when I tried it the way you suggested originally, I also had a few other things wrong, and obviously did not apply a methodical approach to solving it. One last question: I need to just return the nodes, at the

Re: [Neo4j] Gremlin - how to flatten a tree, and sort

2011-11-07 Thread Marko Rodriguez
Hey, > I figured I needed to do a projection of sorts, and the only thing I > could get working was a transform(), as follows: > > m.sort{a,b -> a.value <=> b.value}._().transform(){a -> a.key} m.sort{a,b -> a.value <=> b.value}.keySet() ...will return you the keys of the map in sorted