Re: [Neo4j] Importing hierarchical csv data file to neo4j.py

2010-09-07 Thread Andres Taylor
Hi Francois, Comments below. On Tue, Sep 7, 2010 at 2:10 PM, Francois Kassis francois_kas...@hotmail.com wrote: Hi all, 1) How could I import data from a hierarchical csv data file into neo4j.py using python. It depends a little on what your data looks like. Care to share a few

Re: [Neo4j] java heep size in neo4j when importing huge data

2010-09-09 Thread Andres Taylor
Hi Francois, When you do things inside of a transaction, it stays in memory until you commit your transaction. If you commit smaller chunks, you won't run into this problem. So instead of doing: li_index = 0 *with graphdb.transaction: for data in data_list:* data[0] = unicode(data[0],

Re: [Neo4j] java heep size in neo4j when importing huge data

2010-09-09 Thread Andres Taylor
: IndexProvider question (Honnur Vorvoi) 5. java heep size in neo4j when importing huge data (Francois Kassis) 6. Re: java heep size in neo4j when importing huge data (Andres Taylor) -- Message: 1

Re: [Neo4j] Lucene queries via neo4j.py

2010-09-23 Thread Andres Taylor
Hi Chris, If you go to this page: http://components.neo4j.org/neo4j.py/ and scroll down to the part titled Indexes, you'll find some documentation. Let me know if you need more information. Andrés On Thu, Sep 23, 2010 at 12:18 PM, Chris Diehl di...@alumni.cmu.edu wrote: Hi All, I saw the

[Neo4j] Aggregation for neo4j

2010-09-28 Thread Andres Taylor
Hi there! I thought that aggregation would be nice to have in neo4j, so that not everyone has to do it manually... So I coded up what that could look like. If this is something that interests you, please, take a look at svn.neo4j.org/laboratory/components/aggregation/trunk I'm specially

Re: [Neo4j] An attempt at documenting the internals and architecture of Neo

2010-10-07 Thread Andres Taylor
Hi Chris, Absolutely awesome stuff you have written. As a new hire in Neo Technologies, I'm reading your blog posts with great interest. I like how you take code and make a story out of it - it's much easier to understand the code after reading your posts on it. Thank you! I have two wishes that

Re: [Neo4j] PathFinder.findSinglePath returns null

2010-10-08 Thread Andres Taylor
with the RelationshipType added. Does this code work for you? Cheers, Andrés On Fri, Oct 8, 2010 at 9:46 PM, Andres Taylor andres.tay...@neotechnology.com wrote: Hi there, I've looked over your code, and it doesn't seem like you are doing anything wrong, AFAICS. It would be easier to help you if I could run

Re: [Neo4j] Lucene result sorting

2010-10-19 Thread Andres Taylor
Hi Balazs, We've been working on a new lucene-index module just these last days. The new index module allows sorting, through the QueryContext-class. You can look in svn https://svn.neo4j.org/components/lucene-index/trunk/, if you are so inclined, or wait for the next milestone release

Re: [Neo4j] database file size after removal of many nodes

2010-10-22 Thread Andres Taylor
Hi Axel, Looking forward to the launch of your app. Always nice to hear! In regards to your database size problem, unfortunately, I can't offer a clean and easy solution. The store files grow as more data is added, but doesn't shrink when you remove data. There are technical reasons for this,

[Neo4j] Getting indexed values - Was: Determining the indices associated with a graph.

2010-10-26 Thread Andres Taylor
Hi Elena, On Tue, Oct 26, 2010 at 10:54 AM, Elena Pechko elenapec...@gmail.comwrote: Hi, I have a related question: is it possible to determine a list of indexed values? Just to make sure I understand you, is this one way of expressing your need? Given a node, I want to find what

[Neo4j] Indirection

2010-10-30 Thread Andres Taylor
Guys, I'm trying to grokk the code. In a couple of places, there are indirections that I don't understand. Like EmbeddedGraphDatabase, which is, as far as I can see, mostly a thin wrapper around EmbeddedGraphDatabaseImpl. Why is this? Andrés ___ Neo4j

[Neo4j] A random tale of load testing

2010-11-02 Thread Andres Taylor
Hey guys, If anyone follows the commits, you might have seen some activityhttps://trac.neo4j.org/log/qa/load-testunder qa//load-test. I thought I'd share what's been going on, and what I found. We want to keep the speed advantage Neo4j has, and to do that, we have to measure, measure and

Re: [Neo4j] An attempt at documenting the internals and architecture of Neo

2010-11-04 Thread Andres Taylor
Again, Chris, thank you for the (obvious) hard work you have put into this. You have created a valuable resource. Andrés On Thu, Nov 4, 2010 at 7:54 PM, Chris Gioran chris.gio...@gmail.com wrote: Hi people, the last part of my series: Neo4j Internals: Transactions (Part 3) as a complete

Re: [Neo4j] Question about setConfiguration()

2010-11-09 Thread Andres Taylor
It most often is. But he is so nice that we keep him around anyway... :) Andrés On Tue, Nov 9, 2010 at 11:09 PM, Marko Rodriguez okramma...@gmail.comwrote: Hi, However, I seem to be running into a bug where IndexHits.size() 0, but I'm not getting back what I indexed :( ... I will try

Re: [Neo4j] Hello list

2010-11-17 Thread Andres Taylor
Hola Jose y Max! Que lindo que podemos hablar un poquito en español! :) Jose, queres saber que algoritmos usamos para guardar la information en el disco duro, o que algoritmos usamos en GraphAlgo? --- Hi Jose and Max, How nice to be able to talk a bit in spanish! :) Jose, do you want to know

Re: [Neo4j] Cats and Dogs, living together

2010-12-02 Thread Andres Taylor
Kalin (and list), My lab project for a few weeks now has been an alternative shell to Neo4j. Coming from a DBA background, I felt that we are lacking tools to do DBA-work - import/export data, tune indexes, browse the data in an easy way, and make backups. So that's been the focus for my shell.

Re: [Neo4j] How to delete a node when it's already deleted ?

2010-12-07 Thread Andres Taylor
On Tue, Dec 7, 2010 at 1:54 PM, Mattias Persson matt...@neotechnology.comwrote: The (new) integrated index API cleans up deleted nodes/relationships that are left behind automatically and lazily (at least the lucene impl does) so no worries for the index part at least. Unless you are

Re: [Neo4j] hello people

2010-12-13 Thread Andres Taylor
On Mon, Dec 13, 2010 at 8:45 AM, Jim Webber j...@neotechnology.com wrote: Hi Jose, [warning: I wrote this code in my email client, it may not even compile, but it should give you the right idea] Rather than use inheritance to build your domain model, composition is preferred. So: class

Re: [Neo4j] Color suggestions for the Self-Relationship bike shed

2011-05-16 Thread Andres Taylor
+1 on the +1 for option 1 On Mon, May 16, 2011 at 2:49 PM, Pablo Pareja ppar...@era7.com wrote: Hi, definitely +1 for option 1 Pablo ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Is Neo4j's New Cypher Query Language Related to Gremlin?

2011-06-14 Thread Andres Taylor
Hi there, You are using an old version of graph-matching. You should not have to depend on graph-matching. Just depend on cypher, and it will pull the correct version of graph-matching. If you want to depend on graph-matching explicitly, make sure you depend on either 1.4.M04, or 1.4-SNAPSHOT.

Re: [Neo4j] Cannot execute Cypher

2011-06-14 Thread Andres Taylor
Hi Pierre, On Tue, Jun 14, 2011 at 1:48 PM, Pierre De Wilde pierredewi...@gmail.comwrote: start n=(1) return n Nothing is returned... Could you look in the logs for any clues? They are in neo4j install dir/data/log Andrés ___ Neo4j mailing list

Re: [Neo4j] Cannot execute Cypher

2011-06-14 Thread Andres Taylor
No, this is executed through the console. No problem there. On Tue, Jun 14, 2011 at 6:27 PM, noppanit noppani...@gmail.com wrote: I think it might be you're mixing org.neo4j.cypher.javacompat and org.neo4j.cypher together? -- View this message in context:

Re: [Neo4j] How to combine both traversing and index queries?

2011-06-15 Thread Andres Taylor
On Wed, Jun 15, 2011 at 1:51 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: McKinley, we are just in the process of adding index hits as starting points to Cypher, which will then do exactly what you are asking. No ETA yet, but that is high on the list and will show up in the

Re: [Neo4j] Cannot execute Cypher

2011-06-15 Thread Andres Taylor
Could you check what the value of this is? scala.util.Properties.versionString Thanks, Andrés On Wed, Jun 15, 2011 at 11:41 AM, Pierre De Wilde pierredewi...@gmail.comwrote: HiAndrés, I also suspect that it's a scala version issue, but unfortunately only scala-library-2.8.1.jar is

Re: [Neo4j] I'm really stuck in PatternMatching

2011-06-16 Thread Andres Taylor
Hi there, Your images are difficult to read on gmail. A gif might help. :) I'm not quite certain on what is not working. In Cypher, your question would look something like this: START rules=(0) MATCH (subReference )-[:APPLIES]-(rules)-[:RULE]-(rule)-[r,:LESS_THAN]-(answer) WHERE r.Threshhold 0

Re: [Neo4j] Cannot execute Cypher

2011-06-16 Thread Andres Taylor
If it's any consolation, I've bumped the version of Scala to 2.9.0 already, so the next milestone should work with GraphStream. Regards, Andrés On Thu, Jun 16, 2011 at 5:55 PM, Pierre De Wilde pierredewi...@gmail.comwrote: Hi Andrés, scala.util.Properties.versionString() returns 2.9.0.final

Re: [Neo4j] I'm really stuck in PatternMatching

2011-06-16 Thread Andres Taylor
On Thu, Jun 16, 2011 at 6:22 PM, noppanit noppani...@gmail.com wrote: Hi, I found the error already, but I'm not sure if it's related to the API. If I use AND in the WHERE clause. It causes the error, but If I use and it runs ok. :) Good catch. Fixed in trunk now. Andrés

Re: [Neo4j] Generating suggestions in a Neo4j db

2011-06-18 Thread Andres Taylor
Are you referring to what the implementation looks like? This is the source. I haven't grokked it yet, so I can't give you a TL;DR;, sorry. https://github.com/neo4j/community/tree/master/graph-matching Cypher allows you to do graph-matching (internally, it uses the above module), but adds a few

Re: [Neo4j] Find 2nd degree friends in order of mutual friend

2011-06-22 Thread Andres Taylor
As part of the next milestone, which should come out tomorrow, we'll package a Cypher-plugin, that allows you to do Gremlin queries over the wire: http://docs.neo4j.org/chunked/1.4-SNAPSHOT/gremlin-plugin.html If you are using a snapshot version, it should already be there. Andrés On Wed, Jun

Re: [Neo4j] Find 2nd degree friends in order of mutual friend

2011-06-22 Thread Andres Taylor
On Wed, Jun 22, 2011 at 4:04 PM, Andres Taylor andres.tay...@neotechnology.com wrote: As part of the next milestone, which should come out tomorrow, we'll package a* Cypher-plugin*, that allows you to do Gremlin queries over the wire: http://docs.neo4j.org/chunked/1.4-SNAPSHOT/gremlin

Re: [Neo4j] Deep search with Cypher Query Language

2011-06-28 Thread Andres Taylor
Lots of questions in one mail. My answers are inline. On Mon, Jun 27, 2011 at 10:55 PM, Adrian Stabiszewski mynewslet...@nitegate.de wrote: Hi! I'm currently evaluating Neo4J for a project, but I'm not sure if it is the right solution. Maybe you could help me by looking at my scenario. I

[Neo4j] Announcing the latest milestone (1.4.M05)

2011-06-28 Thread Andres Taylor
Hello graphistas, Today we’re releasing the fifth and final milestone in our 1.4 “Kiruna Stol” family. We’ve expanded our feature set to include Auto Indexing and paged traversers for the REST API, the Cypher query language has seen some major improvements and as always, we’ve squeezed more

Re: [Neo4j] Deep search with Cypher Query Language

2011-06-28 Thread Andres Taylor
On Tue, Jun 28, 2011 at 1:27 PM, Adrian Stabiszewski mynewslet...@nitegate.de wrote: Thanks for your answers. The correct quotation marks are working. Couldn't find this in the docs. It's under the return statement. I'll make it clearer. Thanks for the pointer. It is not possible now.

Re: [Neo4j] Deep search with Cypher Query Language

2011-06-29 Thread Andres Taylor
If the property op_type contains a Number, you can't compare it against a string. Could that be the problem? Andrés On Wed, Jun 29, 2011 at 8:38 AM, Adrian Stabiszewski mynewslet...@nitegate.de wrote: Just tested my queries with M05. Now I get the result in 6.6sec instead of 10sec with M04.

Re: [Neo4j] Deep search with Cypher Query Language

2011-06-29 Thread Andres Taylor
On Wed, Jun 29, 2011 at 11:32 AM, Adrian Stabiszewski mynewslet...@nitegate.de wrote: If the property op_type contains a Number, you can't compare it against a string. Could that be the problem? Yes, op_type is a number property. I'm wondering how to specify this in the query. This is

Re: [Neo4j] Neo4j 1.4M05 Cypher exception

2011-07-01 Thread Andres Taylor
Hi there, Haven't tried it, but I would guess that you have to use the same version of things. Use 1.4.M05 of neo4j-shell, or 1.4-SNAPSHOT of neo4j, and you should be good to go. Andrés On Fri, Jul 1, 2011 at 5:57 PM, noppanit noppani...@gmail.com wrote: And this is my pom.xml

Re: [Neo4j] Cypher error in neo4j-spatial

2011-07-02 Thread Andres Taylor
We decided that we needed a meta-data character that wasn't :. Instead, you now write: r~TYPE Andrés On Sun, Jul 3, 2011 at 12:44 AM, Peter Neubauer neubauer.pe...@gmail.comwrote: Just pinged Andres on this. The r:TYPE is the culprit. Sent from my phone. On Jul 3, 2011 12:06 AM, Craig

Re: [Neo4j] checked exception using Cypher with Java

2011-07-04 Thread Andres Taylor
Obrigado Adriano! You are, of course, correct. My JVM inexperience shows... I think I've made the changeshttps://github.com/neo4j/community/commit/e4622cbbcad8210babb01d861a5ef9df823c054byou suggested. Thanks for your help! Andrés On Mon, Jul 4, 2011 at 4:35 PM, Adriano Henrique de Almeida

Re: [Neo4j] cypher where on query

2011-07-14 Thread Andres Taylor
Yes, and yes. Here's an example: START a=(0) MATCH a-[r]-b WHERE r.length 10 RETURN r,b Is that what you are looking for? Andrés On Thu, Jul 14, 2011 at 2:34 AM, anand an...@semanticvoid.com wrote: Hey, Is there a way in cypher to run a where clause on some properties of a relationship?

Re: [Neo4j] Finding paths between two nodes

2011-08-15 Thread Andres Taylor
On Sun, Aug 14, 2011 at 11:44 AM, Faster2B faste...@gmail.com wrote: I had already read this, but i can not find how to specify an intermediate node. I am interested in finding a route between two cities crossing another city that I will choose. I don't think there's a direct way to do

Re: [Neo4j] Cypher: node IDs

2011-08-24 Thread Andres Taylor
Hi Aseem, For various reasons, we've (so far) decided against allowing the id to be something you can output. Could you tell me a bit more about why you would like to return just the id? It's not hard to do, but it would make future parts of Cypher harder to do. If there are valid use cases

Re: [Neo4j] Cypher: multiple match clauses, but OR, not AND

2011-08-24 Thread Andres Taylor
On Wed, Aug 24, 2011 at 5:44 PM, Aseem Kishore aseem.kish...@gmail.comwrote: Here's my use case: I want to show my friends' comments and likes. For comments, I can do e.g. (friend) -[:WROTE]- (comment), and for likes, I can do e.g. (friend) -[:LIKES]- (object), but is there a way I can

Re: [Neo4j] Cypher: multiple match clauses, but OR, not AND

2011-08-24 Thread Andres Taylor
Forgot to mention it: We've changed ~TYPE to .TYPE. It's in out snapshot version. Just a heads up. Andrés On Wed, Aug 24, 2011 at 6:02 PM, Andres Taylor andres.tay...@neotechnology.com wrote: On Wed, Aug 24, 2011 at 5:44 PM, Aseem Kishore aseem.kish...@gmail.comwrote: Here's my use case

Re: [Neo4j] Cypher: how would you query first- and second-degree friends?

2011-08-25 Thread Andres Taylor
Good and valid requests, Aseem. Consider them heard. We'll see how soon we can get it to you. Andrés On Thu, Aug 25, 2011 at 12:57 PM, Aseem Kishore aseem.kish...@gmail.comwrote: Man, I am loving Cypher. Thanks so much guys for introducing it. I'm a bit stuck on one query, though, and I

Re: [Neo4j] Cypher: node IDs

2011-09-14 Thread Andres Taylor
We finally decided that it should be added. http://docs.neo4j.org/chunked/snapshot/query-function.html#functions-id It's in snapshot, and will be part of our next stable release. Andrés On Thu, Aug 25, 2011 at 2:39 AM, Aseem Kishore aseem.kish...@gmail.comwrote: Hey guys, Is there any way

Re: [Neo4j] Cypher: how would you query first- and second-degree friends?

2011-09-14 Thread Andres Taylor
And now it's in code. http://docs.neo4j.org/chunked/snapshot/query-match.html#match-optional-relationship Hope that helps, Andrés On Thu, Aug 25, 2011 at 10:34 PM, Andres Taylor andres.tay...@neotechnology.com wrote: Good and valid requests, Aseem. Consider them heard. We'll see how soon

Re: [Neo4j] questions related to neo4jphp

2011-09-19 Thread Andres Taylor
On Mon, Sep 19, 2011 at 3:45 PM, F. De Haes fi...@nibewege.org wrote: - Relation types give problems in Cypher when they contain a blank space. Correct? Not really. You can write like this: START a = (0) MATCH a-[:`Type with space`]-b RETURN b Does that help? Andrés

Re: [Neo4j] questions related to neo4jphp

2011-09-19 Thread Andres Taylor
...@nibewege.org wrote: Hi Andrés, $queryText = START n=(1) match a-[:'Staat in']-n return a; 0 results $queryText = START n=(1) match n--a return a; 104 results A bug in neo4jphp? Greetings, Filip 2011/9/19 Andres Taylor andres.tay...@neotechnology.com On Mon, Sep 19, 2011 at 3

Re: [Neo4j] how to get the User who has been B Followed who has Followed Back.

2011-09-21 Thread Andres Taylor
Hi there, Answers inline. On Wed, Sep 21, 2011 at 4:49 AM, iamyuanlong yuanlong1...@gmail.com wrote: hi Peter, This can get the result.But if I want to contain B's Friends too.Should I use this? http://neo4j-community-discussions.438527.n3.nabble.com/file/n3354221/follow%26friend.jpg

Re: [Neo4j] How to use RelationshipIndex'es in a Cypher Query?

2011-09-22 Thread Andres Taylor
HI there, Answers inline, On Wed, Sep 21, 2011 at 8:16 PM, st.pa st...@web.de wrote: Hi, I've got a Cypher query with some 10k possible source nodes and some 10k intended target nodes out of some 1M possible target nodes which looks something like the following: START source =

Re: [Neo4j] How to use RelationshipIndex'es in a Cypher Query?

2011-09-23 Thread Andres Taylor
On Thu, Sep 22, 2011 at 5:23 PM, st.pa st...@web.de wrote: but what about regexes in the START clause where lookup of some nodeIndex with *-wildcard already takes place. this is obviously not pure regex, and I did not find documentation on what other wildcards are allowed or how to search for

Re: [Neo4j] How to use RelationshipIndex'es in a Cypher Query?

2011-09-24 Thread Andres Taylor
no directed relationship of the given type from sources to targets, or START source = ..., target = ..., MATCH (source)-!-(target) RETURN source,target to get those pairs with no relationships at all? ciao, st.p. 23.09.2011 12:30, Andres Taylor wrote: On Thu, Sep 22, 2011 at 5

Re: [Neo4j] neo4jphp and some cypher question

2011-09-26 Thread Andres Taylor
On Sun, Sep 25, 2011 at 11:13 PM, Adriano Henrique de Almeida adrianoalmei...@gmail.com wrote: Hi Filip, if you need only those nodes who have the Geemente property, you can specify it on the where clause. Example: where a.Geemente and a.Geemente = 'Antwerpen' Another alternative,

Re: [Neo4j] cypher variable relationships

2011-09-27 Thread Andres Taylor
On Tue, Sep 27, 2011 at 11:29 AM, F. De Haes fi...@nibewege.org wrote: Hi all, I tried this cypher query both in the console of the stable and in the milestone release, but it produces the same error: start a=(123) match b-[:`Runs on`^1..3]-a return distinct b I'm sure that variable

Re: [Neo4j] indexquery 12times faster than cypher

2011-10-02 Thread Andres Taylor
On Fri, Sep 30, 2011 at 10:37 AM, Andres Taylor andres.tay...@neotechnology.com wrote: Hey! This is something that has been planned since the very first iteration of Cypher, but no-one seemed to need it, so I have pushed it in front of me. Now we seem to have an user that wants it, so I'll add

Re: [Neo4j] count(distinct) with Cypher?

2011-10-10 Thread Andres Taylor
On Mon, Oct 10, 2011 at 9:10 PM, Tero Paananen tpp+ne...@iki.fi wrote: Does Cypher support count(distinct) type of queries? Tero, No, it doesn't yet. It's planned for, but won't make it into 1.5. Andrés ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] count(distinct) with Cypher?

2011-10-11 Thread Andres Taylor
On Mon, Oct 10, 2011 at 9:42 PM, Andres Taylor andres.tay...@neotechnology.com wrote: On Mon, Oct 10, 2011 at 9:10 PM, Tero Paananen tpp+ne...@iki.fi wrote: Does Cypher support count(distinct) type of queries? Tero, No, it doesn't yet. It's planned for, but won't make it into 1.5. I

Re: [Neo4j] way to combine search and traversal

2011-10-11 Thread Andres Taylor
On Tue, Oct 11, 2011 at 10:00 PM, dieter_f...@gmx.net wrote: Hi, in my database I have different types of data (e.g. addresses, projects, activities, milestones, documents) that are connected via relationships. Now, I want to give the user of my application the possibilites to find parts of

Re: [Neo4j] cypher feature suggestion

2011-10-25 Thread Andres Taylor
Thanks for the suggestion! I took the liberty of opening an issue about it in github: https://github.com/neo4j/community/issues/74 Andrés On Tue, Oct 25, 2011 at 4:15 PM, F. De Haes fi...@nibewege.org wrote: Hi, A feature that would be nice to add to the Cypher language features AVG, SUM,

Re: [Neo4j] Spring Data Graph 2.0.0 and Cypher queries using Repositories

2011-10-25 Thread Andres Taylor
Hi Tero, This has changed because Cypher now supports parameters. SDN used to hand-craft your query strings for you, but now it uses Cypher parameter instead. And Cypher doesn't support params in these areas. It definitely should. Andrés On Mon, Oct 24, 2011 at 9:41 PM, Tero Paananen

[Neo4j] Cypher column order now respected

2011-10-28 Thread Andres Taylor
A number of people have asked for it, so herehttps://github.com/neo4j/community/commit/95072e34baeca97c16fc65fe021e5a2981c5305bit is. Column ordering in the execution result is the same as appears on the return list. Andrés ___ Neo4j mailing list

Re: [Neo4j] Cypher GEOFF

2011-10-31 Thread Andres Taylor
Very cool! Andrés On Mon, Oct 31, 2011 at 9:24 AM, Nigel Small ni...@nigelsmall.name wrote: Hi all A quick note on the new command line additions to py2neo (which currently aren't completely finialised but shouldn't change too much from here on out). --- usage: cypher.py [-h] [-u

Re: [Neo4j] Cypher GEOFF

2011-11-01 Thread Andres Taylor
I'm not sure cypher is the right name for this. It could be confusing... On Mon, Oct 31, 2011 at 6:03 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Very cool, good work! I would like to have this packaged as a brew formula on OSX, do one cold do brew install cypher and be

Re: [Neo4j] REST traverse deprecation

2011-11-01 Thread Andres Taylor
You, something like Neo4js https://github.com/neo4j/neo4js? We've had that since forever. Or do you mean something different? Andrés On Tue, Nov 1, 2011 at 5:06 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Also, there is another possibility: We are exposing a ECMA script

Re: [Neo4j] Cypher: including start in result

2011-11-02 Thread Andres Taylor
On Wed, Nov 2, 2011 at 12:01 PM, Jacob Hansson jacob.hans...@neotechnology.com wrote: Is there a complex reason why this is the case, and is it going to stay this way? It feels a bit counter-intuitive.. Cypher has no way of expressing uniqueness today. I think it should. I think the current

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Andres Taylor
On Wed, Nov 2, 2011 at 11:56 AM, Jacob Hansson jacob.hans...@neotechnology.com wrote: On Wed, Nov 2, 2011 at 11:11 AM, Michael Hunger michael.hun...@neotechnology.com wrote: * custom traversals with complicated callbacks This is really what my original question to Peter was about -

Re: [Neo4j] Cypher: ommitting relationship if not available

2011-11-03 Thread Andres Taylor
On Wed, Nov 2, 2011 at 11:54 AM, D. Frej dieter_f...@gmx.net wrote: my use case is the following: - a principal in a group has access to all other principals in a group = therefore I need to go one level up to find the other principals in the group - additionally: if there is another group

Re: [Neo4j] Cypher where regular expressions - case insensitive regexs?

2011-11-03 Thread Andres Taylor
Great suggestion. I'll add it to the backlog. https://github.com/neo4j/community/issues/82 Andrés On Thu, Nov 3, 2011 at 9:31 PM, Tero Paananen tpp.paana...@gmail.comwrote: re: http://docs.neo4j.org/chunked/snapshot/query-where.html#where-regular-expressions Is there a way to use case

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] 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 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 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] 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 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 question

2011-11-05 Thread Andres Taylor
Did you try the query I gave you? The problem is not that you are returning p, it's that you ask Cypher to create a path with nulls in it. Just remove the p= in the beginning of the MATCH clause, and you should be good to go. Andrés On Sat, Nov 5, 2011 at 8:45 AM, jschweigl

Re: [Neo4j] Cypher-Pickle?

2011-11-05 Thread Andres Taylor
On Nov 5, 2011 1:51 PM, Jim Webber j...@neotechnology.com wrote: I really don't want Cypher to pander to SQL. Cypher is about graph matching and should be awesome at it PQL isn't any different in this aspect. Mattias' ascii-art is still the way to describe your pattern. Cypher is already very

Re: [Neo4j] Cypher: combining results?

2011-11-06 Thread Andres Taylor
On Nov 6, 2011 10:55 AM, D. Frej dieter_f...@gmx.net wrote: Hi, Cypher allows to define multiple starting points. Example: start n=(1, 2, 3) return n (taken from http://docs.neo4j.org/chunked/stable/query-start.html#start-multiple-nodes-by-id ) Can this only be done in the START clause or

Re: [Neo4j] Cypher: combining results?

2011-11-06 Thread Andres Taylor
On Sun, Nov 6, 2011 at 12:25 PM, Andres Taylor andres.tay...@neotechnology.com wrote: On Nov 6, 2011 10:55 AM, D. Frej dieter_f...@gmx.net wrote: Hi, Cypher allows to define multiple starting points. Example: start n=(1, 2, 3) return n (taken from http://docs.neo4j.org/chunked

Re: [Neo4j] Expected performance question

2011-11-09 Thread Andres Taylor
Hi Hans, First of - we have so far spent very little time so far making Cypher awesome from a performance standpoint. Most of the energy has been put into growing the syntax and expanding the feature set of Cypher. The next version will hopefully involve a lot of performance work, and that will

Re: [Neo4j] Expected performance question

2011-11-09 Thread Andres Taylor
On Wed, Nov 9, 2011 at 9:28 AM, Hans Birkeland han...@funcom.com wrote: Thanks for the quick reply! :) This is the query: start n=node(159178) match n-[*1..4]-x return count(*) Good to know. The reason you are getting duplicates is because you'll get the same node in x multiple time - there

Re: [Neo4j] Cypher: relationship between nodes as condition in WHERE

2011-11-11 Thread Andres Taylor
On Fri, Nov 11, 2011 at 8:28 PM, D. Frej dieter_f...@gmx.net wrote: Hi, how can I put the condition relationship between two nodes in the WHERE clause of a Cypher statement? I have the following Cypher (simplified): START p=... MATCH p-...path...-(d1), p-...differentpath...-(d2) and I

Re: [Neo4j] Cypher: difference in MATCH node syntax?

2011-11-12 Thread Andres Taylor
On Sat, Nov 12, 2011 at 3:23 PM, D. Frej dieter_f...@gmx.net wrote: Hi, what is the difference in specifying nodes in the MATCH clause with or without ()? There's no difference. Purely aesthetic. Andrés ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] Cypher: difference in MATCH node syntax?

2011-11-12 Thread Andres Taylor
On Sat, Nov 12, 2011 at 3:32 PM, D. Frej dieter_f...@gmx.net wrote: I recommend putting this into the documentation. As beginner to cypher, I was puzzled because the some examples contain (), some not. Of course. Don't know why I didn't do that earlier. Is this OK you think?

Re: [Neo4j] Paths with null?

2011-11-14 Thread Andres Taylor
, the whole path is null. Makes sense? Andrés On Sun, Nov 13, 2011 at 1:11 PM, Mattias Persson matt...@neotechnology.comwrote: A Path with null in it doesn't make much sense to me. I'd prefer b) also. Den lördagen den 12:e november 2011 skrev Andres Taylor andres.tay...@neotechnology.com: On Sat

Re: [Neo4j] Confirming existence of relationship between two nodes

2011-11-15 Thread Andres Taylor
On Tue, Nov 15, 2011 at 3:50 AM, gsingh93 gsingh_2...@yahoo.com wrote: What version of Neo4j are you using? This query is valid syntax for 1.4.x and 1.5.M01. I'm using version 1.4.1 If possible, you should upgrade to 1.5. Later you would want to use: start

Re: [Neo4j] Neo4j-Scala Wrapper 0.1.0 released

2011-11-17 Thread Andres Taylor
On Thu, Nov 17, 2011 at 1:21 PM, Christopher Schmidt fakod...@googlemail.com wrote: Cypher has some similarities to SQL as a special query language. And to be honest, I think using it programmatically will cause the same symtoms as SQL with respect to runtime errors, type safety, abstraction

Re: [Neo4j] How do I use parameters in Cypher queries using regular expressions?

2011-11-17 Thread Andres Taylor
On Thu, Nov 17, 2011 at 6:14 PM, Tero Paananen tpp.paana...@gmail.comwrote: @Query(value = start n = node(1) match (n)-[:KNOWS]-(c) where c.a =~ /.*?{foo}.*?/ return c, type = QueryType.Cypher) PageFoo getConnectedNodes(@Param(foo) String foo, Pageable pageable); The regular expression can

Re: [Neo4j] Neo4j-Scala Wrapper 0.1.0 released

2011-11-17 Thread Andres Taylor
On Thu, Nov 17, 2011 at 9:55 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Actually, it might be an idea to look at this kind of DSL for Cypher, much along the (Scala) lines of Rickards Java-DSL,

Re: [Neo4j] How do I use parameters in Cypher queries using regular expressions?

2011-11-17 Thread Andres Taylor
I've tried to reproduce this directly in Cypher, and through SDN, but I haven't been able to. I will spend some more time on this tomorrow. If it's possible for you to create a minimal test that reproduces the problem, it would very helpful. Andrés On Thu, Nov 17, 2011 at 8:45 PM, Tero Paananen

Re: [Neo4j] best way to get all directly related nodes?

2011-11-18 Thread Andres Taylor
On Fri, Nov 18, 2011 at 10:56 AM, D. Frej dieter_f...@gmx.net wrote: Hi everybody, what is the most performant way to get all directly related nodes? I know that there are following possibilites: - node.getRelationships() - node.traverse(StopEvaluator.DEPTH_ONE) - Cypher In the first two

Re: [Neo4j] Relationship not found error while traversing/querying (REST API)

2011-11-20 Thread Andres Taylor
On Mon, Nov 21, 2011 at 3:22 AM, Aseem Kishore aseem.kish...@gmail.comwrote: Hey guys, If we put our app under a bit of load, creating and removing nodes and relationships concurrently, sometimes we get back a 500 Internal Server Error from the REST API when we do a traverse or Cypher query.

Re: [Neo4j] Fwd: Lucene Custom Sort in Neo4j

2011-11-22 Thread Andres Taylor
On Tue, Nov 22, 2011 at 10:20 AM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Maybe, but that means that every index needs to have the notion of sorting and ordering? I would be nice if we can introspect and see if the indexes available support ordering. Andrés

Re: [Neo4j] Cypher query question

2011-11-22 Thread Andres Taylor
On Tue, Nov 22, 2011 at 6:21 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Mmh, if you have two different bound variables n and z, shouldn't n automagically be different from z? Got a test case for this where n=z? Yeah, you're right. I wouldn't expect to have the same node in

[Neo4j] Cypher identifier uniqueness

2011-11-22 Thread Andres Taylor
A recent thread prompted me to think about this again. Today, Cypher guarantees that no two points in the matching pattern will contain the same node or relationship. Given the pattern (a)--(b), in no matched subgraph will a and b contain the same node. The only exception to this is for variable

Re: [Neo4j] [Cypher] ANY() and array properties

2011-11-24 Thread Andres Taylor
On Fri, Nov 25, 2011 at 1:40 AM, Stephen glur...@gmail.com wrote: Is ANY() supposed to work with array properties? e.g. I have the following WHERE clause in my query: It is supposed to, but it doesn't yet. Sorry about that... Andrés ___ Neo4j

Re: [Neo4j] [Cypher] ANY() and array properties

2011-11-25 Thread Andres Taylor
On Fri, Nov 25, 2011 at 8:57 AM, Stephen glur...@gmail.com wrote: Ah, thanks, at least it's not user error :) BTW, the Functions documentation (http://docs.neo4j.org/chunked/1.5/query-function.html#functions-any) could use some better wording. I absolutely agree. Do you have any

Re: [Neo4j] Cypher syntax feedback wanted

2011-11-28 Thread Andres Taylor
On Fri, Oct 28, 2011 at 12:57 PM, Andres Taylor andres.tay...@neotechnology.com wrote: Hi all! I'm looking to make Cypher more consistent, and so less surprising. Cypher today has two places where predicates are used, the WHERE clause, and for the ALL/ANY/NONE/SINGLE functions. It looks

Re: [Neo4j] How to return the start nodes of all the paths with Cypher

2011-11-29 Thread Andres Taylor
Hey there, That looks like a straight forward pattern matching problem, right? START c=node(1) MATCH a--b--c, d--c, d--b--c, e--f--c RETURN a,d,e This is assuming that you have the node id of c. If not, read up how you do an index start point. Does that help? Andrés On Wed, Nov 30, 2011 at

Re: [Neo4j] How to return the start nodes of all the paths with Cypher

2011-11-30 Thread Andres Taylor
On Wed, Nov 30, 2011 at 9:13 AM, Michael Hunger michael.hun...@neotechnology.com wrote: what about start c=node(1) match path = c-[*]-n return NODES(path) Ouch... This is probably a rather slow query. It starts from 'c' and goes all the way out to the end of the graph for, for every path

  1   2   >