Re: [Neo4j] Unexpected error

2011-06-24 Thread Massimo Lusetti
On Thu, Jun 23, 2011 at 9:08 PM, Mattias Persson matt...@neotechnology.com wrote: That should be quite fine. I could try this out locally perhaps. Something like: IndexNode index = db.index().forNodes(myIndex); Transaction tx = db.beginTx(); Node node = db.createNode(); for ( int i = 0; i

Re: [Neo4j] Unexpected error

2011-06-24 Thread Massimo Lusetti
On Fri, Jun 24, 2011 at 10:00 AM, Massimo Lusetti mluse...@gmail.com wrote: On Thu, Jun 23, 2011 at 9:08 PM, Mattias Persson matt...@neotechnology.com wrote: That should be quite fine. I could try this out locally perhaps. Something like: IndexNode index = db.index().forNodes(myIndex);

Re: [Neo4j] TraversalDescription order

2011-06-24 Thread Igor Dovgiy
Hi Jacob, thanks for answer. ) Followed your idea, found plenty of BranchSelector examples at https://github.com/neo4j/graphdb/tree/master/kernel/src/main/java/org/neo4j/kernel (link you've quoted somehow didn't work). I guess modified PostorderBreadthFirstSelector method, with

[Neo4j] Licensing Question for Advanced/Enterprise Edition (AGPL License)

2011-06-24 Thread Sidharth Kshatriya
I have some questions related to AGPL licensing for Neo4j. If I understand correctly: 1) If I am making a SaaS software which uses Neo4j *and* 2) If I am calling Neo4j from my own code or in other words my software is a client to the Neo4j database server *and* 3) If I am NOT modifying Neo4j code

[Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Sidharth Kshatriya
Dear All, I have googled for this on the web and did not arrive at a satisfactory answer. *Question: Is it possible to run Neo4j on Android? * Thanks, Sidharth -- Sidharth Kshatriya www.sidk.info ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] Licensing Question for Advanced/Enterprise Edition (AGPL License)

2011-06-24 Thread Rick Bullotta
The way I interpret it: If you aren't making your source code available, and you can't use the Community edition, you'll need a license. You distribute your software and do not want to open source the code for your product (as per the GPL). Instead, contact Neo Technology for a commercial OEM

Re: [Neo4j] Licensing Question for Advanced/Enterprise Edition (AGPL License)

2011-06-24 Thread Stefan Zapf
Hi Siddharta, I believe your interpretation is correct, but I'm not a neo4j Team member. It is my understanding that distribution means to make copies and send those these copies to end users. Because SaaS setup isn't a distribution or conveyance in GPL parlance, there's a loop hole in the

[Neo4j] afterRollback never called

2011-06-24 Thread Balazs E. Pataki
Hi, I'm using 1.4M03 and I have class implementing TransactionEventHandler. However it never receives an afterRollback() although I call failure() and finish() on the transaction. Otherwise the transaction seems to be rolled back, only my TransactionEventHandler is not informed about it.

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Craig Taverner
I heard that Peter Neubauer made a port of neo4j to android a few years ago, but that nothing has been done since and no version since then would work. So my understanding is that it does not work on android, but that it is possible to make it work (with some work ;-). Peter is away, but I expect

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Rick Bullotta
I remember something like that, too. The main issue is probably the non-traditional file system that Android exposes. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Craig Taverner Sent: Friday, June 24, 2011 8:37 AM To: Neo4j

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Sidharth Kshatriya
Yes, I saw that on the mailing list archives too. I would have though there would be some interest in using this on android -- but there seems to be no news about it since... On Fri, Jun 24, 2011 at 6:13 PM, Rick Bullotta rick.bullo...@thingworx.comwrote: I remember something like that, too.

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Rick Bullotta
I think the limited capabilities of the Android device(s) (RAM, primarily) limit the usefulness of Neo4J versus alternatives since the datasets are usually small and simple in mobile apps. If we need any heavy-duty graph work for a mobile app, we'd do it on the server. -Original

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Sidharth Kshatriya
The present round of android tablets have 512MB - 1 GB Ram...which is likely to increase in the future... Essentially I want to use a graph database to represent a complicated math document to be shown a mobile / tablet. Each equation is nothing but a tree so graph databases lend themselves well

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Craig Taverner
Personally what I would like to see would be a sub-graph approach, with the android device storing a sub-graph of the main database, and updating that asynchronously with the server. Seems like something that can be done in a domain specific way, but much harder to do generically. I wanted this

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Rick Bullotta
I'd probably just use a serialized JSON or XML object in that case, if it is truly a tree (and not a graph). -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Sidharth Kshatriya Sent: Friday, June 24, 2011 9:18 AM To: Neo4j user

Re: [Neo4j] Unexpected error

2011-06-24 Thread Massimo Lusetti
On Thu, Jun 23, 2011 at 9:08 PM, Mattias Persson matt...@neotechnology.com wrote: That should be quite fine. I could try this out locally perhaps. Something like: IndexNode index = db.index().forNodes(myIndex); Transaction tx = db.beginTx(); Node node = db.createNode(); for ( int i = 0; i

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Axel Morgner
In structr [1], we use kryonet [2] to push/pull subtrees including binary files between instances (source code: [3]). We also thought about an Android client which holds a subset of the structr graph. Neo4j running on Android (and iOS as well) would be great. [1] http://structr.org/ [2]

Re: [Neo4j] Webadmin browser dependencies?

2011-06-24 Thread Jacob Hansson
Is that the whole data browser, or is it just the visualization? In IE8, everything appears to work except two things, history support (clicking back doesn't change the url-hash), and the visualization. I'm gonna get a hold of a Windows 7-copy as well so that I can test this in IE9. /Jake On

Re: [Neo4j] Webadmin browser dependencies?

2011-06-24 Thread Rick Bullotta
In case you were wondering why some enterprises are sticking with IE (not that I agree with it): http://www.zdnet.com/blog/microsoft/will-mozillas-enterprise-hostile-support-policy-boost-ies-share/9815 -Original Message- From: user-boun...@lists.neo4j.org

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Sidharth Kshatriya
Hi Axel, Thanks for your extremely useful reply! A quick search indicates that kryonet works on android... BTW do you know of any* javascript *libraries that might push subtrees around? Thanks, Sidharth On Fri, Jun 24, 2011 at 10:11 PM, Axel Morgner a...@morgner.de wrote: In structr [1], we

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Peter Neubauer
Guys, The patch for Android took all of an hour last time we did it a couple of weeks ago. Mostly it is about refactoring JTA into some other namespace and file io api. Things work fine but need a better io layer for Android to be really fast on the platform just like Rick points out. Let me know

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Sidharth Kshatriya
I would indeed be grateful if you shared the patch with all of us. Maybe even fork neo4j on github and change the code Why is a better IO layer required btw... can you please explain? On Sat, Jun 25, 2011 at 2:51 AM, Peter Neubauer neubauer.pe...@gmail.comwrote: Guys, The patch for

Re: [Neo4j] Unexpected error

2011-06-24 Thread Michael Hunger
Massimo, when profiling this it quickly becomes apparent that the issue is within the lucene document. (org.apache.lucene.document.Document) it holds an arraylist of all its fields which amount to all the memory. It also contains several methods that walk over that list (filtering it) and or

Re: [Neo4j] Neo4j -- Can it be embedded in Android?

2011-06-24 Thread Jim Webber
Hi Sidharth, Why is a better IO layer required btw... can you please explain? This is a bit of speculation on my part, but it likely won't be too far from the truth. Neo4j has quite an optimised store layout on disk and that strategy pervades the IO parts of the stack for performance