Re: [Neo4j] REST API - always batch?

2011-12-01 Thread Dmytrii Nagirniak
Thanks Peter. I was asking because of the request to support batching in neography: https://github.com/maxdemarzi/neography/issues/16 I sounds like the normal API is obsolete then :) It encourages non-transactional operations. I think the batch-ing should be promoted a little bit more. Check

Re: [Neo4j] REST API - always batch?

2011-12-01 Thread Michael Hunger
I think especially for atomic create operations that will be solved by a GEOFF import plugin in the future. which allows for updates/insertions of subgraphs. https://github.com/nigelsmall/py2neo/wiki/GEOFF Michael Am 01.12.2011 um 09:03 schrieb Dmytrii Nagirniak: Thanks Peter. I was

Re: [Neo4j] Named matched with depth gives error

2011-12-01 Thread Andres Taylor
On Wed, Nov 30, 2011 at 1:57 PM, dnagir dna...@gmail.com wrote: Hi, I am trying this query: *START u=node(5963) MATCH p = (u)-[r:selling*1..99]-() WHERE r.development=7867 RETURN p* But it gives the error: Error: *NoSuchElementException - key not found: r* When I remove the depth

Re: [Neo4j] CQL find by name

2011-12-01 Thread Krzysztof RaczyƄski
In my opinion, the current syntax reminds me of SQL, which is a good thing. All the newbies like me can easily wrap their head around the concepts, without much problem. Since you can't do an actual assignment in Cypher (please correct me if i am wrong), an equal sign clearly means comparison

Re: [Neo4j] Cypher Query Optimizing

2011-12-01 Thread Martin Junghanns
Am 01.12.2011 01:48, schrieb Michael Hunger: Martin, Michael, :) would you be so kind as to test the current neo4j-1.6 snapshot with your query? I used neo4j 1.6 M01 community edition for my tests. We did some changes in cypher and would like to see how that affects your query. Thanks a

Re: [Neo4j] CQL find by name

2011-12-01 Thread Michael Hunger
Actually they map to two different calls of the neo4j core API. The first one is a exact lookup for the value. The second one takes an arbitrary query string and executes it against an index, so it is much more powerful. (But also dependend on the index-provider) Main difference is that the

[Neo4j] spring data neo4j Relationships

2011-12-01 Thread Martin Junghanns
Hey, after reading the docs and looking at the examples, I give up trying to find a solution for myself. The problem is the following: How are @RelationshipEntity classes persistet? I have the same stucture as in the Movies Example: the classes Actor -- Role -- Movie. When adding a new Role

Re: [Neo4j] spring data neo4j Relationships

2011-12-01 Thread Michael Hunger
Martin, are you using the simple mapping (w/o AJ) or the advanced AspectJ mapping? I assume the simple mapping: There are several ways of persisting a RelationshipEntity() * (template or repository).createRelationshipBetween() * (template or repository).save(new Role(movie, actor, rolenName));

Re: [Neo4j] REST API - always batch?

2011-12-01 Thread Jacob Hansson
On Thu, Dec 1, 2011 at 9:03 AM, Dmytrii Nagirniak dna...@gmail.com wrote: Thanks Peter. I was asking because of the request to support batching in neography: https://github.com/maxdemarzi/neography/issues/16 I sounds like the normal API is obsolete then :) It encourages non-transactional

Re: [Neo4j] Will there ever be a native SDK for Node.js?

2011-12-01 Thread Tero Paananen
With REST, you have a separate server. Thus multiple applications can use. Or you can access it directly through normal web browser to fix your data. Or even run background jobs against that server. All that is not possible with native. I wouldn't say that. It's not possible using Neo4J APIs

Re: [Neo4j] Will there ever be a native SDK for Node.js?

2011-12-01 Thread Michael Hunger
Actually that is true with many technologies. to provide a REST-Endpoint Neo4j-Servers you can use: * jruby with sinatra/rails * python * as you said SDN * playframework and scala * clojure (and whatever rest-framework on top) * or even pure netty based high performance servers * or other java

Re: [Neo4j] Will there ever be a native SDK for Node.js?

2011-12-01 Thread Rick Bullotta
Why not take a look at RingoJS? Would be uber easy to integrate native Neo4J APIs. -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of yobi Sent: Wednesday, November 30, 2011 10:59 PM To: user@lists.neo4j.org Subject: [Neo4j] Will

Re: [Neo4j] REST API - always batch?

2011-12-01 Thread jadell
To toss my two cents in, I had been thinking about moving my REST library to use only batches for all CRUID operations. I've been putting it off, and I will probably drop the idea for now based on Jake's response. Jacob Hansson-2 wrote 1. There are limits to how large the results can be from

Re: [Neo4j] REST API - always batch?

2011-12-01 Thread Nigel Small
iCrud sounds more like what Apple fans will be asking for this Christmas. On 1 Dec 2011 14:46, jadell josh.ad...@gmail.com wrote: To toss my two cents in, I had been thinking about moving my REST library to use only batches for all CRUID operations. I've been putting it off, and I will

[Neo4j] Cypher syntax for conditional path segments?

2011-12-01 Thread jschweigl
The query works fine for all *complete* paths. Now I would like to get all incomplete paths as well, meaning all a without any BASED ON, all a-[:BASED_ON]-b without CALLS and so on. Is this possible using cypher? Optional relationships result in null relations, which cypher does not like when

Re: [Neo4j] cypher question - subqueries possible?

2011-12-01 Thread jschweigl
Once I find the time to set up a blog, I'l happily do that. What's still annoying me is that I do not understand the difference between the query pairs 7/8 and 9/10 ... -- View this message in context:

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Frank
Hi Michael, My curl result looks like this: $ curl http://localhost:7474/db/data/ -i HTTP/1.1 200 OK Content-Length: 680 Content-Encoding: UTF-8 Content-Type: application/json Access-Control-Allow-Origin: * Server: Jetty(6.1.25) { relationship_index :

Re: [Neo4j] cypher question - subqueries possible?

2011-12-01 Thread Andres Taylor
On Thu, Dec 1, 2011 at 4:55 PM, jschweigl johann.schwe...@gmail.com wrote: Once I find the time to set up a blog, I'l happily do that. What's still annoying me is that I do not understand the difference between the query pairs 7/8 and 9/10 ... I'll have a go. The difference between 7 and 8

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Frank
I tried switching to version 1.6 (Current Milestone) and now it works. Am I correct in concluding that the restful client services are not compatible with version 1.5? As version 1.5 is listed as the current stable version, I'm a little suprised/concerned by this. Frank On Nov 30, 2011, at

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Michael Hunger
Hi Frank, this is really weird. Your server is missing the exploratory URL for the reference node. The (Spring)RestGraphDatabaseService uses this URL to get the URL for the ReferenceNode. I don't know why your sever is missing that. I just downloaded 1.5 community for unix and started the

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Frank
Interesting. I did create and delete a few nodes manually via the Web interface right when I first installed the server. Maybe there's some bug related to that. In any case, it seems to be working now that I reinstalled the server with 1.6. On Dec 1, 2011, at 12:12 PM, Michael Hunger [via

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Michael Hunger
Did you by chance delete the reference node too? (aka. node 0) I tried it and it seems to be the reason. After deleting the reference node it is no longer shown in the graph representation. I will add an appropriate Exception to java-rest-graphdb Cheers, Michael Am 01.12.2011 um 19:20

Re: [Neo4j] NullPointerException in ExecutingRestRequest

2011-12-01 Thread Frank
I may well have done that, yes. I wasn't aware that node 0 was the same as the reference node. On Dec 1, 2011, at 12:44 PM, Michael Hunger [via Neo4j Community Discussions] wrote: Did you by chance delete the reference node too? (aka. node 0) I tried it and it seems to be the reason.

[Neo4j] SpringData requires rename of transactionManager

2011-12-01 Thread Frank
Hi, I find that I'm unable to integrate SpringDataNeo4j into my existing Spring project unless I rename my transaction manager, which is currently declared this way: bean id=transactionManager class=org.springframework.jdbc.datasource.DataSourceTransactionManager property

Re: [Neo4j] allSimplePaths performance

2011-12-01 Thread Petar Dobrev
Sure, I sent you a link where you can download a snapshot of the dataset in a separate email. Best regards, Petar On Mon, Nov 28, 2011 at 12:16 PM, Mattias Persson matt...@neotechnology.com wrote: I think I'd need your dataset to be able to reproduce and fix it, would that be possible?

Re: [Neo4j] py2neo - GEOFF enhancements

2011-12-01 Thread Michael Hunger
Nigel, is it possible to also do index-lookups in geoff? and use those as nodes or rels or even as hooks for later on? I'm also toying with two other ideas: #1 using indexes as the third primitive besides nodes and rels in geoff just with a different delimeter (e.g. | as you already have) #2

[Neo4j] Standalone server and transactions

2011-12-01 Thread zolv
Hi I have read as much I was able to read about Neo4j with the topic I wrote below. My imaginations of DB server (doesn't matter RDBMS or NoSQL) is that the crucial things for DB server is interesting from development point of view are (musts!): 1. DB server must be able to work as standalone

[Neo4j] Unique constraint and transaction over REST

2011-12-01 Thread dnagir
Hi, I wonder what's the best way to do something similar to unique constraints in RDBMS. For example, user registration requires that the user's email to be unique. Working over in Ruby over REST API, how do you achieve this? I assume I need an auto-index on email property of User nodes. Then

Re: [Neo4j] py2neo - GEOFF enhancements

2011-12-01 Thread Nigel Small
Hi Michael GEOFF was originally conceived as a graph serialisation format and, as such, was intended to represent a snapshot of entities at a particular point in time instead of, as you are discussing, a programmatic set of actions (add, replace, remove, etc). That said, these ideas are still

Re: [Neo4j] py2neo - GEOFF enhancements

2011-12-01 Thread Michael Hunger
Peter and I have been discussing what interchange format we'd like to have for applications feeding data into a graph. And geoff seems to be quite a good choice. Modifying and accessing indexes (much like in-file-hooks) would be a part of that. So what I imagine is a set of connectors to

[Neo4j] Controlling Traversal Depth with Python Neo4j Bindings

2011-12-01 Thread Chris Diehl
Hi Jake, I have a situation where I want to start at a given node in my graph and traverse down a linear chain of nodes a specified # of hops. Is there a way for me to specify the traversal depth using the Python bindings? If not, what would you suggest as the best way to achieve that goal?

Re: [Neo4j] py2neo - GEOFF enhancements

2011-12-01 Thread Nigel Small
OK cool, that gives me some context. I'll put together some ideas over the next few days and we can compare notes :-) *Nigel Small* Phone: +44 7814 638 246 Blog: http://nigelsmall.name/ GTalk: ni...@nigelsmall.name MSN: nasm...@live.co.uk Skype: technige Twitter: @technige

Re: [Neo4j] Standalone server and transactions

2011-12-01 Thread Dmytrii Nagirniak
Being able to access a single database is crucial requirement for me (fix production data on the spot, spin multiple instances of the app for example). The options for that are: 1. REST API 2. Native with Enterprise edition (not sure exactly it actually allows connecting from multiple

Re: [Neo4j] REST API - always batch?

2011-12-01 Thread Dmytrii Nagirniak
1. There are limits to how large the results can be from a batch API call. Just curious, what those limits are and what happens if you hit it? 2. ... We have lots of ideas for how we can improve the current REST API (add full transactional support, massively improve throughput and

Re: [Neo4j] Will there ever be a native SDK for Node.js?

2011-12-01 Thread Dmytrii Nagirniak
On 01/12/2011, at 11:34 PM, Tero Paananen wrote: Spring Data for Neo4J and the rest of the Spring framework (as an example) it's pretty damn easy to provide remote access to a Neo4J data store. Are you saying that your WEB application should become a database server? That is not appropriate

Re: [Neo4j] Will there ever be a native SDK for Node.js?

2011-12-01 Thread Tero Paananen
On 12/1/2011 10:47 PM, Dmytrii Nagirniak wrote: On 01/12/2011, at 11:34 PM, Tero Paananen wrote: Spring Data for Neo4J and the rest of the Spring framework (as an example) it's pretty damn easy to provide remote access to a Neo4J data store. Are you saying that your WEB application

[Neo4j] Design Guides

2011-12-01 Thread Dmytrii Nagirniak
Hi, Are there any database *design* guidelines to follow? What I mean by that is how to structure node and relationships? Should you stick all nodes to the Reference node? Should you group it through a particular node etc? This would be very useful for people coming from RDBMS and other

Re: [Neo4j] Standalone server and transactions

2011-12-01 Thread Jim Webber
Hi, 1. DB server must be able to work as standalone server 2. DB server must provide transactions. Can anybody guide me through these 2 things in Neo4j world? 1. Neo4j works as a standalone (or clustered) server which is accessible through the REST API. 2. Neo4j is ACID transactional with

Re: [Neo4j] Named matched with depth gives error

2011-12-01 Thread Jim Webber
Hi Dima, There's a nightly snapshot that you can grab if you're interested in being on the bleeding edge. It's in the Neo4j repo: http://m2.neo4j.org/ And so the latest Cypher build is here: http://m2.neo4j.org/org/neo4j/neo4j-cypher/1.6-SNAPSHOT/ You can just add a snapshot dependency to

[Neo4j] Log message for unmanaged extension

2011-12-01 Thread Brendan cheng
Hi, I tried to debug my unmanaged extension with private static final Logger log = Logger.getLogger(Register.class); and generate a message like: log.warn(passed check point 1); But I couldn't find any these messages from any log files, neo4j.0.0.log, console.log, message.log...etc How should I

Re: [Neo4j] Named matched with depth gives error

2011-12-01 Thread Michael Hunger
download the 1.6 SNAPSHOT from neo4j.org/downloads mobile mail please excuse brevity and typos Am 02.12.2011 um 01:27 schrieb dnagir dna...@gmail.com: I fixed this yesterdayhttps://github.com/neo4j/community/commit/37c2867871c7d953c2021177d0b72cd8ba825be0. Thanks a lot for that. How

Re: [Neo4j] Named matched with depth gives error

2011-12-01 Thread dnagir
Thank Michael, I didn't realise there's snapshot version available from the download page. I prefer downloading the whole package instead of one particular thing, as Jim suggested. But glad to know there's such an option. Cheers. On 02/12/2011, at 5:20 PM, Michael Hunger [via Neo4j Community

Re: [Neo4j] Standalone server and transactions

2011-12-01 Thread Dmytrii Nagirniak
On 02/12/2011, at 4:48 PM, Jim Webber wrote: 1. Neo4j works as a standalone (or clustered) server which is accessible through the REST API. That's the point. There is not standalone version with native bindings. You either run embedded and lock the whole database to the particular app, or

Re: [Neo4j] Standalone server and transactions

2011-12-01 Thread Michael Hunger
Am 01.12.2011 um 23:03 schrieb zolv: Hi I have read as much I was able to read about Neo4j with the topic I wrote below. My imaginations of DB server (doesn't matter RDBMS or NoSQL) is that the crucial things for DB server is interesting from development point of view are (musts!): 1.

Re: [Neo4j] Standalone server and transactions

2011-12-01 Thread Michael Hunger
No, the alternative there is to provide a server-side extension that encapsulates your business logic as an endpoint running inside of a tx. Cheers Michael Am 02.12.2011 um 08:30 schrieb Dmytrii Nagirniak: On 02/12/2011, at 4:48 PM, Jim Webber wrote: 1. Neo4j works as a standalone (or