Re: [Neo4j] py2neo - GEOFF enhancements

2011-12-02 Thread Nigel Small
Having played around with some ASCII art (quite good fun actually!) it is starting to feel more natural to re-order the index entries, so that the key:value part is both consistent with existing syntax and adjacent to the index reference. I have ended up with: # ADD ENTRY: # ensure node bert has

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread zolv
Michael Hunger wrote No, the alternative there is to provide a server-side extension that encapsulates your business logic as an endpoint running inside of a tx. Yes, this is 3rd solution. But this is the worst one because I have to create custom layer which will work ONLY with my app.

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread zolv
Michael Hunger wrote Am I missing something? I hope I do, because in this situation, Neo4j isn't actually interesting DB server/solution...but I want it to be. I would like to know some more detailed reasons for that, so far we haven't received this kind of response. Do You know ANY

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Dmytrii Nagirniak
Good point. Yes, that certainly is an alternative. But unfortunately in practice I hardly can imagine .NET, Nodejs, MRI Ruby (non Java basically) guys to start duplicating the logic for the plugin. Not even taking into account additional complexity, including unit testing. Similar thing ships

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Michael Hunger
That's why we've enable the - ruby-extensions for the server. - and want to provide the same functionality for other dynamic languages it is not about duplicating functionality but about moving persistence related code closer to the db. Michael Am 02.12.2011 um 09:43 schrieb Dmytrii Nagirniak:

[Neo4j] Neo4j Öresund meetup next Tuesday

2011-12-02 Thread Peter Neubauer
Everyone, the next Neo4j Öresund meetup is coming up next Tuesday. I think we might be able to show off some nice Heroku-Sinatra-GoogleCalc integration, too, along with some NOSQL war stories and beer, so be there or be [] ! http://www.meetup.com/Neo4j-Oresund/events/42155032/ Cheers, /peter

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Dmytrii Nagirniak
That's why we've enable the - ruby-extensions for the server. Haven't seen anything about it. Could you please give some more info on that (links maybe)? it is not about duplicating functionality but about moving persistence related code closer to the db. It is a long topic on itself:

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread zolv
Anyway, You are talking now about things that doesn't exist and I have to implement them on my own. I can't imagine RDBMS server that doesn't give me JDBC driver in the box. Unfortunately Neo4j is like this. There is no native transaction-full support so Neo4j can work as standalone server with

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Peter Neubauer
Radoslaw, if you need transactions, embedded and multiple machines, you can always use HA to let the DB replicate between your servers. More to the point, we have shun away from a low level API binary protocol because of serialization overhead reasons when you do for instance traversals

Re: [Neo4j] Neo4j Öresund meetup next Tuesday

2011-12-02 Thread Nigel Small
Be there or be an empty array? I may start saying that just to confuse people :-) On 2 Dec 2011 09:30, Peter Neubauer peter.neuba...@neotechnology.com wrote: Everyone, the next Neo4j Öresund meetup is coming up next Tuesday. I think we might be able to show off some nice

Re: [Neo4j] Neo4j Öresund meetup next Tuesday

2011-12-02 Thread Peter Neubauer
My ASCII art skills suck. I mean square :) Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer brew install neo4j neo4j start heroku addons:add

Re: [Neo4j] Named matched with depth gives error

2011-12-02 Thread Peter Neubauer
Great. Let us know if that is working for you. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer brew install neo4j neo4j start heroku addons:add

Re: [Neo4j] WADL specification is the complete reference for all HTTP interactions with Neo4j?

2011-12-02 Thread Peter Neubauer
Johnny, at which URI si the WADL hosted? Would like to look at the code, or you could dig into the code yourself if you don't want to wait. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer

Re: [Neo4j] OSMImporter: Is there a way to do incremental imports?

2011-12-02 Thread Peter Neubauer
Not sure, Craig, do you have the code somewhere? /peter On Tue, Nov 22, 2011 at 4:17 PM, grimace macegh...@gmail.com wrote: thanks for the response(s)!  The hardware I'm testing on is not the best and only 4G of ram so I'm limited, but this seems the best opportunity for me to learn

Re: [Neo4j] WADL specification is the complete reference for all HTTP interactions with Neo4j?

2011-12-02 Thread Michael Hunger
The WADL is generated by Jersey which uses the metadata that it generates from the annotated REST-Endpoints. So it is always up to date: http://localhost:7474/db/data/application.wadl The Neo4j REST API is designed with discoverability in mind, so that you can start with a GET / and from there

Re: [Neo4j] WADL specification is the complete reference for all HTTP interactions with Neo4j?

2011-12-02 Thread Peter Neubauer
How about extensions and plugins? Are these discovered by Jetty also? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer brew install neo4j neo4j

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Jim Webber
Hello, Do You know ANY (mature) RDBMS which is: provides many connection at the same time, transaction-less and is still popular? I don't know any (even SQLite has transactions). And now, somebody (not meaning You) want to convince me that transactions are not needed. At least there strange

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Jim Webber
It is a long topic on itself: Where the business logic belongs to - the server or the client. But the point is that far the most common use-case is to write the business logic on the client, not on the server. The business logic on the server has already failed multiple times in the

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Rick Bullotta
...though there are perfectly good reasons to include business logic on the server as well (e.g. stored procedures, which Neo4J can support in its own way via server-side extensions). -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Jim Webber
At the risk of re-iterating this: Neo4j in embedded mode supports as many connections as the application where you embed it. Jim On 2 Dec 2011, at 20:38, zolv wrote: Anyway, You are talking now about things that doesn't exist and I have to implement them on my own. I can't imagine RDBMS

Re: [Neo4j] possibility to merge some neo4j databases?

2011-12-02 Thread Michael Hunger
Sure the limitations apply, but as only the target database would be corrupted and none of the ones being used for the import that should be ok. That is actually like a nice lab-day project. I'll add it to the list. Michael Am 29.11.2011 um 15:18 schrieb Craig Taverner: There are two

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Dmytrii Nagirniak
On 02/12/2011, at 10:36 PM, Jim Webber wrote: I don't believe that we are talking about business logic on the server - we're talking about data access logic (queries). Business logic binds to that data over the network - that the data is sourced through a plugin is an implementation

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Rick Bullotta
...or you can re-think the definition of client. As you know, it is very common in an SOA model to have actors functioning as both clients and servers. For example, to the client making a reservation, the server might be the airline's reservation site. That site might have server-side logic

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Dmytrii Nagirniak
I may be missing something, but it can't see exactly how to link up your code with the server. Should the extension be packaged as a gem and published publicly? That Wiki entry is a little bit poorly written IMO. Sorry for saying that :-( On 02/12/2011, at 8:42 PM, Michael Hunger wrote:

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Michael Hunger
What should be improved. You can also print the page as pdf and annotate what should be better / different. Yes packaged as gem and published to the server with a Gemfile. Thanks a lot Michael Am 02.12.2011 um 13:36 schrieb Dmytrii Nagirniak: I may be missing something, but it can't see

Re: [Neo4j] Lab day: Cypher queries in embedded python bindings

2011-12-02 Thread Johan Lundberg
On 2011-11-18 17:12, Jacob Hansson wrote: Hey all, Like we've mentioned before, we have lab-day fridays at Neo4j, and today I hacked some stuff together that landed directly in trunk for the embedded python bindings. As of 1 minute ago, the following operations are now possible with the

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Dmytrii Nagirniak
On 02/12/2011, at 11:28 PM, Rick Bullotta wrote: ...or you can re-think the definition of client. As you know, it is very common in an SOA model to have actors functioning as both clients and servers. For example, to the client making a reservation, the server might be the airline's

[Neo4j] REST Traversal and prune evaluators

2011-12-02 Thread Krzysztof Raczyński
Hello folks, i've been trying to prune based on number of outgoing relationships, but so far i am stumped, since org.neo4j.graphdb.Node interface doesn't expose any way to count outgoing relationships. Traversal is for tree visualisation, and i want to avoid creating too much of a clutter, hence

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread zolv
dnagir wrote On 02/12/2011, at 11:28 PM, Rick Bullotta wrote: Doesn't matter how you play the words, you need transactions somewhere. And with REST it is only available as a database plugin. For most people it is just not worth the effort (especially who's not coming from Java

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Rick Bullotta
FWIW, at present Neo4J has among the most comprehensive ACID support of the major NoSQL databases. The fact that you might have to write a bit of code or script to run on the server shouldn't necessarily be viewed as a negative - the fact that you *can* do this at all is a big plus! Most NoSQL

[Neo4j] SO Question for Pythonistas: ORM for Neo4j ?

2011-12-02 Thread Michael Hunger
Please help answering him, thanks a lot. http://stackoverflow.com/questions/8356626/orm-with-graph-databases-like-neo4j-in-python i wonder wether there is a solution (or a need for) an ORM with Graph-Database (f.e. Neo4j). I'm tracking relationships (A is related to B which is related to A

[Neo4j] There's already an HA cluster managed by this ZooKeeper cluster

2011-12-02 Thread anirudha
Hi, We are trying to setup neo4j in high-availability mode with 3 nodes in the cluster. When we restart any of the neo4j servers, it fails. We get following exception: == neo4j-zookeeper.log == ERROR main-EventThread org.apache.zookeeper.ClientCnxn - Error while calling watcher

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Dmytrii Nagirniak
On 03/12/2011, at 12:50 AM, Rick Bullotta wrote: I also agree with you that it would be nice to have transaction support over a remote API, but that's not a trivial thing to accomplish in a web scenario when there is not any thread affinity or even necessarily server affinity between

[Neo4j] Cypher REST endpoint

2011-12-02 Thread jadell
Quick question: Just saw this commit from Jake: http://github.com/neo4j/community/commit/f011c51fcbd5f12236fc633f57dcec9fb8cade83 Will the old Cypher plugin endpoint be going away, or will it remain for back-compat? Which release will have the new endpoint? This will be helpful info for library

Re: [Neo4j] SO Question for Pythonistas: ORM for Neo4j ?

2011-12-02 Thread Matt Luongo
Put my thoughts in :) -- Matt Luongo Co-Founder, Scholr.ly On Fri, Dec 2, 2011 at 8:56 AM, Michael Hunger michael.hun...@neotechnology.com wrote: Please help answering him, thanks a lot. http://stackoverflow.com/questions/8356626/orm-with-graph-databases-like-neo4j-in-python i wonder

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Jacob Hansson
On Fri, Dec 2, 2011 at 3:45 PM, Dmytrii Nagirniak dna...@gmail.com wrote: On 03/12/2011, at 12:50 AM, Rick Bullotta wrote: I also agree with you that it would be nice to have transaction support over a remote API, but that's not a trivial thing to accomplish in a web scenario when there is

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Jacob Hansson
On Fri, Dec 2, 2011 at 4:53 PM, Jacob Hansson jacob.hans...@neotechnology.com wrote: On Fri, Dec 2, 2011 at 3:45 PM, Dmytrii Nagirniak dna...@gmail.comwrote: On 03/12/2011, at 12:50 AM, Rick Bullotta wrote: I also agree with you that it would be nice to have transaction support over a

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Dmytrii Nagirniak
On 03/12/2011, at 2:53 AM, Jacob Hansson wrote: This is similar to the approach we're looking at, except interaction currently looks like: POST /tx 200: 1 POST /tx/1/node {name:Steven} 201 POST /tx/1/batch [blah blah] 200 PUT /tx/1/state COMMITTED Yeah. Right. We do need the Trn

[Neo4j] Heroku, Neo4j and Google Spreadsheet in 10min. Flat.

2011-12-02 Thread Peter Neubauer
Hi all, todays lab project: http://vimeo.com/33032604 Thought you might enjoy it. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer brew install

Re: [Neo4j] Gremlin Query - Help

2011-12-02 Thread Marko Rodriguez
Hi, Scenario 1: I would like to get all Nodes that do not have a relationship to another node. What is the best way to do this Gremlin? Root = NodeA = NodeB Root = NodeC Output should be NodeC I don't understand the problem. Scenario 2: Root = User - Centre I would like

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Jacob Hansson
On Fri, Dec 2, 2011 at 5:12 PM, Dmytrii Nagirniak dna...@gmail.com wrote: On 03/12/2011, at 2:53 AM, Jacob Hansson wrote: This is similar to the approach we're looking at, except interaction currently looks like: POST /tx 200: 1 POST /tx/1/node {name:Steven} 201 POST

Re: [Neo4j] Heroku, Neo4j and Google Spreadsheet in 10min. Flat.

2011-12-02 Thread Rick Bullotta
Nice! Show me how to access those services and I'll build you a killer UI for it using ThingWorx - in 10 minutes. ;-) -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Peter Neubauer Sent: Friday, December 02, 2011 11:51 AM To:

Re: [Neo4j] Heroku, Neo4j and Google Spreadsheet in 10min. Flat.

2011-12-02 Thread Peter Neubauer
It's all in there! /peter Sent from my phone, please excuse typos and autocorrection. On Dec 2, 2011 6:37 PM, Rick Bullotta rick.bullo...@thingworx.com wrote: Nice! Show me how to access those services and I'll build you a killer UI for it using ThingWorx - in 10 minutes. ;-) -Original

Re: [Neo4j] Cypher REST endpoint

2011-12-02 Thread Jacob Hansson
On Fri, Dec 2, 2011 at 3:55 PM, jadell josh.ad...@gmail.com wrote: Quick question: Just saw this commit from Jake: http://github.com/neo4j/community/commit/f011c51fcbd5f12236fc633f57dcec9fb8cade83 Will the old Cypher plugin endpoint be going away, or will it remain for back-compat? Which

Re: [Neo4j] Cypher REST endpoint

2011-12-02 Thread jadell
No worries :-) I'm on github all day and just happened to see it on my feed. Good to know that the plugin is staying around for a little while. I'll probably make the switch to the new endpoint for the next milestone, so that it can start seeing some use. This will be a good test of libraries

[Neo4j] Relationship indexes

2011-12-02 Thread Frank
I'm having some trouble understanding relationship indexes. I plan to have nodes with many (hundreds, sometimes thousands) of relationships to other nodes. Give node N, I want to be able to quickly locate one of those relationships given a key. I want to consider only the outgoing relationships

Re: [Neo4j] Relationship indexes

2011-12-02 Thread Peter Neubauer
Frank, Either you could put just some of the rels into the index, or maybe have an additional property in the index for the direction? /peter Sent from my phone, please excuse typos and autocorrection. On Dec 2, 2011 8:28 PM, Frank fr...@studyblue.com wrote: I'm having some trouble

Re: [Neo4j] Relationship indexes

2011-12-02 Thread Frank
Thanks for the reply. I *think* that what I need is to do is this: Relationship relationship = relationshipIndex.get(signature, signature, lastNode, null).getSingle(); If I understand the documentation correctly, this should return only the relationships attached to the node lastNode that

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Jim Webber
Doesn't matter how you play the words, you need transactions somewhere. And with REST it is only available as a database plugin. For most people it is just not worth the effort (especially who's not coming from Java background) and they will turn around. If you use the REST API as-is, you

Re: [Neo4j] Standalone server and transactions

2011-12-02 Thread Nigel Small
And with REST it is only available as a database plugin. And so what if it were? Writing a server plugin isn't hard - I knocked one up in an evening. It's just like writing a stored procedure, only with a different language. Not sure why so many seem to be clinging onto their RDBMS-coloured

[Neo4j] Gremlin/Groovy UNIQUE + Closure support

2011-12-02 Thread Romiko Derbynew
Hi Guys, If I do a query with out.as(xyz)...out.unique()..out.tablecap I find that the table projections for the closure do not work and I lose all AS references. So to get closure support I do this Out.unique._().out..table The above sorts out the closure error, but then I lose my

Re: [Neo4j] Gremlin Query - Help

2011-12-02 Thread Romiko Derbynew
Marko, Thank you very much, I really appreciate it, I will start going through your response here. I have also added the copy/split aggregate functionality into our Gremlin Client. I was not aware of the if then else as well, will extend our client to support this. Apologise, will explain