Re: [Neo4j] Cypher DSL and QueryDSL

2011-11-04 Thread Peter Neubauer
I like, very cool Rickard! Is this in a doc-able state so we could add a test for the manual in the Cypher section? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter     

Re: [Neo4j] Cypher DSL and QueryDSL

2011-11-04 Thread Rickard Öberg
On 11/4/11 15:18 , Peter Neubauer wrote: I like, very cool Rickard! Is this in a doc-able state so we could add a test for the manual in the Cypher section? Well, the whole thing is very much subject to change, but it could still be doc'ed to some extent. /Rickard -- Rickard Öberg

Re: [Neo4j] Cypher syntax feedback wanted

2011-11-04 Thread Andres Taylor
On Fri, Nov 4, 2011 at 7:11 AM, KanTube mich...@mkanner.com wrote: i am just a little confused on this. are you going to still keep the syntax with a : for relationship ie. START n=node(3) MATCH (n)-[:BLOCKS]-(x) RETURN x and then if you wanted to have a more complex match you would do

Re: [Neo4j] Exception when converting older graph

2011-11-04 Thread Mattias Persson
1.5 will (unlike 1.5.M02) be able to detect this. 2011/11/4 Romiko Derbynew romiko.derby...@readify.net Hi Guys, Is it possible to fix this in future release or not, this means in the event of a unclean shutdown, a regression is needed or is it possible to had detection if the old db was

Re: [Neo4j] Cypher DSL and result mapping

2011-11-04 Thread Daniel Yokomizo
On Nov 4, 2011 3:11 AM, Rickard Öberg rickard.ob...@neotechnology.com wrote: Hi, I've briefly started to look at how to map Cypher query results into DTO's. I'm using the QueryDSL helper classes to do it, but instead of putting the projection methods into the query object (as QueryDSL does

Re: [Neo4j] Cypher DSL and result mapping

2011-11-04 Thread Rickard Öberg
On 11/4/11 17:29 , Daniel Yokomizo wrote: What are the projection methods that you would like to see? What are common usecases? Supporting @java.beans.ConstructorProperties is nice because we can use immutable objects as dtos. Right, that is a good point, and that will definitely be

Re: [Neo4j] Cypher DSL and result mapping

2011-11-04 Thread Tobias Ivarsson
I started a prototype for something similar a while back: https://github.com/thobe/neo4j-community-experiments/tree/cypher-annotations It has a different approach to constructing queries, it uses annotations with query strings in them, but uses compile time annotation processing to process those

Re: [Neo4j] Cypher DSL and result mapping

2011-11-04 Thread Tobias Ivarsson
On Fri, Nov 4, 2011 at 10:45 AM, Rickard Öberg rickard.ob...@neotechnology.com wrote: On 11/4/11 17:29 , Daniel Yokomizo wrote: What are the projection methods that you would like to see? What are common usecases? Supporting @java.beans.ConstructorProperties is nice because we can use

Re: [Neo4j] Python embedding: problems with shutdown and threads

2011-11-04 Thread Jacob Hansson
I've just pushed an update to handle the attachThreadToJVM stuff automatically, I ran your test, Michael, on the DB after that, and it seems to shut down properly. You may want to double check though. You can build this now, by checking out https://github.com/neo4j/python-embedded/ and following

[Neo4j] Paper: G2 : A Graph Processing System for Diagnosing Distributed Systems

2011-11-04 Thread Laurent Laborde
interesting article. Could it be stored in neo4j ? :) http://highscalability.com/blog/2011/11/3/paper-g2-a-graph-processing-system-for-diagnosing-distribute.html (i hadn't time to read the paper yet, just the article) -- Laurent ker2x Laborde Sysadmin DBA at http://www.over-blog.com/

[Neo4j] Cypher question

2011-11-04 Thread jschweigl
Hi all, Being a newbie to neo4j/Cypher, didn't come to a solution myself, so I try it here: how can I query for a set of nodes which have no incoming relation of a specific type? Something like START callee=node:node_auto_index('type:*Service') MATCH p=(caller)-[:CALLS]-(callee) RETURN p

Re: [Neo4j] Cypher question

2011-11-04 Thread Andres Taylor
Hi Johann, There's a workaround that works, but it's not as nice as I'd like it to be. What you can do is this: START callee=node:node_auto_index('type:*Service') MATCH p=(caller)-[r?:CALLS]-(callee) WHERE r IS NULL RETURN p It solves your problem with optional relationships. HTH, Andrés On

Re: [Neo4j] Cypher question

2011-11-04 Thread jschweigl
Thanks Andres! I already tried the optional relationship thing, but not the WHERE clause. However, there is a problem which I have with or without the WHERE (I'm using neo4j 1.5M02): START callee=node:node_auto_index('type:*Service') MATCH p=(caller)-[r?:CALLS]-(callee) WHERE r IS NULL RETURN p

Re: [Neo4j] Cypher question

2011-11-04 Thread Andres Taylor
It's a known (and solved) problem. You can either update to snapshot, or just reverse your path description: MATCH p=(callee)-[r?:CALLS]-(caller) Sorry about that... Andrés On Fri, Nov 4, 2011 at 1:42 PM, jschweigl johann.schwe...@gmail.com wrote: Thanks Andres! I already tried the

Re: [Neo4j] Cypher question

2011-11-04 Thread jschweigl
Reversing resulted in the same exception, so I'll try and get the latest snapshot. Thanks a lot for your help! -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Cypher-question-tp3479960p3480016.html Sent from the Neo4j Community Discussions mailing list

Re: [Neo4j] Paper: G2 : A Graph Processing System for Diagnosing Distributed Systems

2011-11-04 Thread Jim Webber
Hi Laurent, I believe this could managed by Neo4j since it's similar to systems already in production. Jim ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Cypher question

2011-11-04 Thread jschweigl
Downloaded 1.5-SNAPSHOT (two times: the windows community and enterprise flavor). No change, no matter if the relation points back or forth. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Cypher-question-tp3479960p3480184.html Sent from the Neo4j

Re: [Neo4j] Cypher question

2011-11-04 Thread Andres Taylor
On Fri, Nov 4, 2011 at 2:57 PM, jschweigl johann.schwe...@gmail.com wrote: Downloaded 1.5-SNAPSHOT (two times: the windows community and enterprise flavor). No change, no matter if the relation points back or forth. I just realized what the problem is. (It's my fault) You are putting the

Re: [Neo4j] Python embedding: problems with shutdown and threads

2011-11-04 Thread Michael Rene Armida
You are awesome. I'll check this out soon; I switched my project back to using sqlite, but I definitely want to use neo, so I'll give it a whirl. On Fri, Nov 4, 2011 at 4:12 AM, Jacob Hansson jacob.hans...@neotechnology.com wrote: I've just pushed an update to handle the attachThreadToJVM

[Neo4j] Neo4J REST console

2011-11-04 Thread andrew ton
Hi, I'm using Neo4j REST 1.5 -SNAPSHOT. In the console I always get ==string matching regex `(?i)\Qrel\E' expected but `(' found even I use the basic query in the Cypher Cheetsheet like START a = (1) RETURN a ? Can I use index lookup for a node in the Rest request? For ex: my query is  

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

2011-11-04 Thread baldric
I'm very new to much of this, and have a particularly ingrained relational slant to my career, unfortunately. I'm in the process of doing a proof of concept for a product, using neo4j, and gremlin over REST (we're developing in c#) What I'm trying to do at the moment is load a graph (representing

Re: [Neo4j] Neo4J REST console

2011-11-04 Thread andrew ton
I figured out the problem in the console. I have to write start a = node(1) return a to make it work From: andrew ton andrewt...@yahoo.com To: Neo4j_user user@lists.neo4j.org Sent: Friday, November 4, 2011 9:16 AM Subject: [Neo4j] Neo4J REST console Hi, I'm

Re: [Neo4j] Cypher DSL and result mapping

2011-11-04 Thread Daniel Yokomizo
On Nov 4, 2011 7:45 AM, Rickard Öberg rickard.ob...@neotechnology.com wrote: On 11/4/11 17:29 , Daniel Yokomizo wrote: What are the projection methods that you would like to see? What are common usecases? Supporting @java.beans.ConstructorProperties is nice because we can use immutable

Re: [Neo4j] Neo4J REST console

2011-11-04 Thread Michael Hunger
Yep, the syntax changed between milestones. Docs are here: http://docs.neo4j.org/chunked/snapshot/cypher-query-lang.html Expect more and more radical changes ahead :) Michael Am 04.11.2011 um 17:16 schrieb andrew ton: Hi, I'm using Neo4j REST 1.5 -SNAPSHOT. In the console I always get

[Neo4j] Cypher-Pickle?

2011-11-04 Thread Peter Neubauer
Hi all, moving this discussion to the community, it is very important getting your feedback! Including Andres' original post on top again ... 2011/11/4 Andres Taylor andres.tay...@neotechnology.com Good afternoon, gentlemen. I've been involved in a sales thingie, and had to translate SQL to

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread Peter Hunsberger
One question, and I bet I won't be the only one asking it... If SQL is the target to mimic, why not WHERE instead of PATTERN ? Otherwise, wouldn't xQuery be perhaps an even more logical target? Peter Hunsberger On Fri, Nov 4, 2011 at 12:58 PM, Peter Neubauer

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread Axel Morgner
Hi, like this, people familiar with SQL (which are many) don't have to think, they just read and understand. +1 Axel Am 04.11.2011 18:58, schrieb Peter Neubauer: Hi all, moving this discussion to the community, it is very important getting your feedback! Including Andres' original post on

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

2011-11-04 Thread Marko Rodriguez
Hi, I would do it like this: m = [:] g.v(162).in('R_PartOf').loop(1){m.put(it.object, it.loops); true} -1 m.sort{a, b - a.value = b.value}.keySet as List In short, fill up a Map (m) with key being the vertex and value being the number of hops (or times through the loop). Then sort the map by

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread Tero Paananen
My take on this is to not use a SQL-like query language. The reason is that while it looks like SQL it is not SQL, and the subtle differences would be more confusing than with using a query language that doesn't share SQL-like constructs. -TPP ___

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

2011-11-04 Thread Peter Neubauer
Can you do it on one line? ;) Great stuff. 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 http://www.neo4j.org              - NOSQL for the

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

2011-11-04 Thread Marko Rodriguez
Sure: 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 [] Marko. http://markorodriguez.com On Nov 4, 2011, at 12:17 PM, Peter Neubauer wrote: Can you do it on one line? ;) Great stuff. Cheers, /peter

Re: [Neo4j] Using the WrappingNeoServerBootstrapper with sbt

2011-11-04 Thread Peter Neubauer
Markus, have you tried the SBT classifiers to get to the same result like Ivy? http://code.google.com/p/simple-build-tool/wiki/LibraryManagement#Classifiers Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn  

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread Andres Taylor
On Fri, Nov 4, 2011 at 7:04 PM, Peter Hunsberger peter.hunsber...@gmail.com wrote: One question, and I bet I won't be the only one asking it... If SQL is the target to mimic, why not WHERE instead of PATTERN ? PATTERN is a new construct, not replacing WHERE. WHERE is still in

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread Peter Hunsberger
Seems if you're trying to mimic SQL it would be a shame if the most common construct was the least SQL like. At an abstract semantic level (ie, not digging into the code or real usage) PATTERN and WHERE seem close enough that perhaps you can unify them? In any case, I wouldn't say xPath is just

Re: [Neo4j] Using the WrappingNeoServerBootstrapper with sbt

2011-11-04 Thread Markus Joschko
I tried it initially but couldn't get it to work because as soon as I included the static-web classifier, the server jar was apparently not used. I opened a thread in the sbt group (http://groups.google.com/group/simple-build-tool/browse_thread/thread/15639ba10ddec6cd) but didn't get a response

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread maxdemarzi
I think the reason we're even having this discussion is because the cypher syntax is close, but not quite SQL in the first place. This makes the differences between the two languages stick out in my mind. I haven't had a lot of time on cypher, but as a newbie to the language I see a cypher

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread Mattias Persson
2011/11/4 maxdemarzi maxdema...@gmail.com I think the reason we're even having this discussion is because the cypher syntax is close, but not quite SQL in the first place. This makes the differences between the two languages stick out in my mind. I haven't had a lot of time on cypher, but

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread KanTube
At first glance i like the new syntax. I am a bit confused on Andres comment that PATTERN is a new construct and is not replacing WHERE. But if you are able to reproduce everything with this new syntax I am all for it. and if you are going to make this change - the sooner the better. not to

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread maxdemarzi
Can we make the ascii art more readable? From: lucy-[:ACTS_IN]-movie What are some options: lucy[:ACTS_IN]-movie # lose the second - by attaching the relationship to a node lucy[:ACTS_IN]movie # instead of --- lucy[:ACTS_IN]-movie #instead of -- lucy[:ACTS_IN]=movie #instead of --, using =

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread Tero Paananen
I'd say the strongest part of Cypher is the ascii art pattern where you clearly see what you're querying for, right there and then without having to parse it into a graph into your head. Removing that would reduce my interest in this language significantly. I strongly agree with this. It's

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread Nigel Small
Also agree. Using several illustrative symbols instead of one cryptic one adds a considerable amount of readability as the expense of negligible overhead. Since the - sequence is also used in C as a pointer operator, it's nothing new. * * *Nigel Small* Phone: +44 7814 638 246 Blog:

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread maxdemarzi
Tero Paananen wrote: Additionally I don't find adding a join keyword to a query language that queries a data store that has no joins better in any shape or form. That is one way of looking at it, another way of looking at it is that all the tables are already joined. Not sure how we can

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread Andres Taylor
On Fri, Nov 4, 2011 at 8:58 PM, KanTube mich...@mkanner.com wrote: At first glance i like the new syntax. I am a bit confused on Andres comment that PATTERN is a new construct and is not replacing WHERE. I'll use old-school Cypher to illustrate my the difference here. Cypher's MATCH clause

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread Andres Taylor
On Fri, Nov 4, 2011 at 10:17 PM, maxdemarzi maxdema...@gmail.com wrote: Tero Paananen wrote: Additionally I don't find adding a join keyword to a query language that queries a data store that has no joins better in any shape or form. That is one way of looking at it, another way of

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread maxdemarzi
Andres Taylor wrote: Love the idea. Why didn't I think of that? All of Cypher is made out of bits and pieces that I've stolen from others anyway - I think I want to steal this one too. Ha! Max De Marzi wrote: That is one way of looking at it, another way of looking at it is that

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

2011-11-04 Thread Marcin Zasepa
Hi guys, i just migrated from SDG 1.1 to 2.0.0.M1 and I am facing problem with cross-store functionality. I have some entities which are partially stored in Neo and partially in rdbms. Everything works ok so far entity class has only primitive members or sets of other entities mapped using

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

2011-11-04 Thread baldric
Thanks! I will still need to try this out, but the idea (in your first response) kind of feels more or less like what I knew I needed. I have so many questions now based on the responses so far - it feels like I'm just scratching the surface! Firstly, could you explain the differences between map,

[Neo4j] WebAdmin - Import/Export Style Profile

2011-11-04 Thread KanTube
is there a way to Import/Export a style profile or someway to move a profile between db instances ? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/WebAdmin-Import-Export-Style-Profile-tp3481447p3481447.html Sent from the Neo4j Community Discussions

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

2011-11-04 Thread Marko Rodriguez
Hi, Thanks! I will still need to try this out, but the idea (in your first response) kind of feels more or less like what I knew I needed. I have so many questions now based on the responses so far - it feels like I'm just scratching the surface! Once you get it, you can get nasty with

Re: [Neo4j] REST api get list of all relationship properties (unique)

2011-11-04 Thread Jure Zakotnik
Hi I tried the .toString() and it throws the same error. Which is strange, since in the RepresentationConverter, the string should be returned fine if no other representation is found. Could the error be somewhere else? I also forked the Gremlin plugin, but need to get familiar with it (first

Re: [Neo4j] REST api get list of all relationship properties (unique)

2011-11-04 Thread Peter Neubauer
Jure, you could just write a testcase that does exactly this - send g.getRawGraph() to the plugin and check what is happening (GremlinPluginFunctionalTest) in the debugger. Let's connect next week if you can't sort it out? Cheers, /peter neubauer GTalk:      neubauer.peter Skype      

Re: [Neo4j] WebAdmin - Import/Export Style Profile

2011-11-04 Thread Peter Neubauer
Kan, these are right now saved on the browser (client), but Jake and I have been talking about being able to store the profiles, so you can import them together with a dataset and have a suitable visual view for a demo setup. Could you raiss an issue in https://github.com/neo4j/community/issues

Re: [Neo4j] Using the WrappingNeoServerBootstrapper with sbt

2011-11-04 Thread Peter Neubauer
Yes, I think Ivy is not resolving the transitive deps correctly either, so try duplicating parts of the neo4j manual Ivy setup in your inline Ivy (I think I had to pull in Jetty stuff and others explicitly). Sorry for Ivy not being fully Maven compliant - that sometimes sux! Cheers, /peter

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread Michael Hunger
I also strongly agree. In my discussions with interested people and customers this always stood out when pulling cypher to query their data. They could instantly recognize which parts of their structure are taking part in the query. Michael Am 04.11.2011 um 21:36 schrieb Tero Paananen: I'd

Re: [Neo4j] sdg: @RelatedToVia in @RelationshipEntity

2011-11-04 Thread Michael Hunger
Yes, relateTo can only be used in Node Entities as Neo4j only allows linking Nodes with Relationships. What is your use-case ? Cheers Michael Am 01.11.2011 um 06:29 schrieb Gonfi den Tschal: (using sdg 1.1.0RELEASE) when using @RelatedToVia in a @RelationshipEntity i get a strange

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread jadell
This! A thousand times this! Whenever I'm trying to explain how you find connected information without joins, people's eyes tend to glaze over until I a) draw the graph on the whiteboard, b) write out the Cypher query _directly_inside_the_graph_. That's the no f-ing way! moment for most people to

Re: [Neo4j] Cypher-Pickle?

2011-11-04 Thread jadell
Mattias Persson-2 wrote: 2011/11/4 maxdemarzi lt;maxdemarzi@gt; I'd say the strongest part of Cypher is the ascii art pattern where you clearly see what you're querying for, right there and then without having to parse it into a graph into your head. Removing that would reduce my interest

Re: [Neo4j] java.lang.IllegalArgumentException launching 1.5M02

2011-11-04 Thread Romiko Derbynew
Any custom JVM switches do not work. Sent from my iPhone On 03/11/2011, at 8:56 AM, Tatham Oddie tat...@oddie.com.au wrote: Any tips on where to start? I'm going to go looking for ServerProcessConsole.java but any other pointers are welcome. :)

Re: [Neo4j] 1.5.M02 - JVM BootStrapper Issues

2011-11-04 Thread Romiko Derbynew
Windows Sent from my iPhone On 04/11/2011, at 11:40 AM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Romiko, is this on Windows or Linux? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn