neo4j-spatial.rb
neo4j-spatial.rb copied to clipboard
Updating?
Can you venture a guess at what it would take (both in terms of time, and what needs to be targetted)to udpate this to work with current versions of jruby and neo4j + neo4j-spatial ? trying to judge if I am able to invest in this via either development or other means. Thanks!
not sure but The neo4j java api has not changed that much. I think the ruby layer is very thin. I would really like this working together with neo4j.rb
@andreasronge can you go into detail about what you mean by: "I would really like this working together with neo4j.rb" just curious. I am working with neo4j.rb now, and evaluating long term whether to use PostGIS for good, or invest in neo4j-spatial. So, if you think there is a way to bring it into neo4j.rb I'd be interested to know what you have in mind.
Well, it uses an old version of neo4j.rb. It should still be a separate gem. I think this gem should be split up in two gems, e.g. neo4j-spatial and neo4j-spatial-jars (like the neo4j-community gem). There is also no tests. I think this gem should have some simple test for the java api plus tests for the ruby part (mocking the java api, similar to neo4j-core's rspecs). I think the first step is to build/download the jar files and write some simple tests for it. Next, update the neo4j.rb dependency and write unit tests and a few integration tests. I would also like to add YARD documentation.
I think it would probably just take a few days, as the changes in Neo4j Spatial are not superbig.
On Fri, Jul 20, 2012 at 9:47 PM, samrose [email protected] wrote:
Can you venture a guess at what it would take (both in terms of time, and what needs to be targetted)to udpate this to work with current versions of jruby and neo4j + neo4j-spatial ? trying to judge if I am able to invest in this via either development or other means. Thanks!
Reply to this email directly or view it on GitHub: https://github.com/craigtaverner/neo4j-spatial.rb/issues/2
@peterneubauer @andreasronge @craigtaverner Any news on this front?
I would like to collaborate on getting neo4j-spatial (jruby) updated and working with latest and greatest.
We just got latest neo4j (java), neo4j (jruby) and latest neo4j-spatial (java) all working, and then neo4j-spatial (jruby) slew us.
So, for right now, we are rolling back, but we're not sure what to roll back to. Any pointers on what versions & snapshots of the following we need to rollback to which are supported by neo4j-spatial 0.0.8? Just looking for simplest path at the moment.
neo4j (java)
neo4j-spatial (java)
neo4j (jruby)
FYI - Here is the top of the stack trace:
Java::OrgNeo4jKernelLifecycle::LifecycleException (Failed to transition org.neo4j.kernel.InternalAbstractGraphDatabase$DefaultKernelExtensionLoader@46b744eb from NONE to STOPPED):
org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:388)
org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:82)
org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:116)
org.neo4j.kernel.InternalAbstractGraphDatabase.run(InternalAbstractGraphDatabase.java:230)
org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:79)
org.neo4j.kernel.EmbeddedGraphDatabase.<init>(EmbeddedGraphDatabase.java:70)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
... snip snip
DISCLAIMER: I am a total neo4j noob. It suits our needs the best for FB graph + location queries. I'd love to help if I can, and get familiar with it.
Sorry, but I don't have time right now, but I would really love to get this working. Maybe Craig or Peter could help. I can answer any questions, e.g. via GTalk etc.
I'm keen to get this working, but might need a little advice and help from Andreas. Perhaps I just give it a go and ask questions, and hopefully we get it figured out :-)
At least I think we could get neo4j-spatial.rb working on current neo4j.rb, but as Andreas mentioned before, there is a lot more to do on neo4j-spatial.rb to make it a usable gem in a rails environment. Perhaps pboling can help with that?
We've got it working (as far as our limited test usage has validated, which isn't much) with this:
ruby '1.9.3', :engine => 'jruby', :engine_version => '1.7.2'
gem 'rails', '~> 3.2.11'
gem 'neo4j', '= 2.2.3'
gem 'neo4j-spatial', '~> 0.0.8'
gem 'neo4j-admin', '~> 0.2.0'
We are on the latest brew install of neo4j and the neo4j-spatial-0.10-SNAPSHOT
Haven't done any spatial queries yet though. Storing data works.
neo4j-admin does not work with latest neo4j because of clash of JAR dependencies. I recommend use the Neo4j HA console instead (see neo4j.rb wiki pages).
Why do you do brew install of neo4j ? The standalone neo4j server is not used.
Because @pboling == neo4j noob
Also brew install neo4j
is damn easy.
But most importantly, because Heroku said so, and I am their slave (for the moment while I stand up and quickly iterate a new site), and given the options between brew install
and download the tarball
ima brew everytime.
Btw, I think this gem should not have a gem dependency to the neo4j gem. Instead it should only depend on the neo4j-core gem (a simple wrapper around the Java API).
Sounds sensible. I should give that a try. The current dependency is because neo4j-spatial.rb dates back to the older neo4j.rb before your refactoring.
Have there been any updates on this? Could be useful in my current project.
I'm still interested in working on this, but simply have not had time. I'm hoping to fix that within the next few months. What is your schedule like? When would you like to use neo4j-spatial.rb, and for which version of neo4j? I know Andreas port of Neo4j.rb to Neo4j2.0 is ongoing. Do you want Neo4j 2.0 support?
There's no huge rush. I'm currently using Neo4j 1.9.5 with neo4j.rb -v 2.2.3 due to a number of gem mismatches. Ideally I would like to upgrade to Neo4j 2.0, but as a bit of a newbie I can't see that happening for a long while. I'm starting to build my app from scratch, so really just wanted to see if things were still moving on. Thanks Craig!