Re: [Neo4j] Cypher with Array

2012-01-22 Thread Andres Taylor
On Mon, Jan 23, 2012 at 4:40 AM, John Howard johnyho...@gmail.com wrote: Hello, I am trying to get distict property values on a list of nodes. The property value is an array in graph. Example: node1.color = [red] node2.color=[red] node3.color=[green] node4.color=[yellow]

Re: [Neo4j] Cypher with Array

2012-01-22 Thread Andres Taylor
On Mon, Jan 23, 2012 at 7:06 AM, John Howard johnyho...@gmail.com wrote: That's strange. Did you load the property values as an array or just as string values? Your output values show red where as mine [red]. Yeah, sorry. Didn't catch the array value part. You have found a bug!

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

2011-12-18 Thread Andres Taylor
On Fri, Nov 25, 2011 at 8:12 PM, Stephen glur...@gmail.com wrote: Just two things, the examples use `identifier`, but then the documentation use `symbol`, and of course that the docs say it works on array properties ;) I finally came around and fixed so array properties can be used, and the

Re: [Neo4j] Graph algorithms

2011-12-08 Thread Andres Taylor
On Tue, Dec 6, 2011 at 11:23 AM, ajinkyar kaleajin...@gmail.com wrote: Although this is a graph based db, why is the range of graph algorithms in GraphAlgoFactory so narrow currently ? Is there a focus on this aspect in future releases ? Is there anything in particular you are missing?

Re: [Neo4j] Cypher 3 Trees

2011-12-08 Thread Andres Taylor
On Thu, Dec 8, 2011 at 9:56 AM, Rickard Öberg rickard.ob...@neotechnology.com wrote: Here's a problem I had recently: I have an organizational structure defined as a tree. On each level there might be cases assigned for completion. Given a OU I want to find all OU's that has the given OU as

Re: [Neo4j] I need help with this cypher query

2011-12-08 Thread Andres Taylor
On Thu, Dec 8, 2011 at 12:49 AM, Michael Hunger michael.hun...@neotechnology.com wrote: start shop=node(123), me=node(321) match shop-[:sell]-item-[:like]-user,item-[r1?:like]-me where r1 is null return item the missing part was the optional relationship for r1, which allows it to be

Re: [Neo4j] Cypher 3 Trees

2011-12-08 Thread Andres Taylor
On Thu, Dec 8, 2011 at 10:32 AM, Rickard Öberg rickard.ob...@neotechnology.com wrote: Ok, so with: start ou=node(1234) match (ou)-[:CHILD_OU*0..100]-(child_ou)-[:OWNER]-(case) where case.status = CLOSED return avg(case.completionTime) that would give me what I want? I think so.

Re: [Neo4j] Cypher - variable length relationships that *aren't* of a type

2011-12-08 Thread Andres Taylor
On Fri, Dec 9, 2011 at 12:12 AM, Matt Luongo m...@scholr.ly wrote: Hey everybody, I'm trying to write a query that returns a small subgraph around a type system's sub-reference node, excluding relationships used to define the in-graph type hierarchy. Eg, given a graph

[Neo4j] Cypher 3 Trees

2011-12-07 Thread Andres Taylor
A subset of the graphs are trees, and they have a few problems that are specific for them. I'm right now planning what needs to be added to Cypher to make it play nice with your tree structures. I'd love to know if you have hierarchical data, and what queries you do and would like to do. Doesn't

Re: [Neo4j] Cypher 3 Trees

2011-12-07 Thread Andres Taylor
On Wed, Dec 7, 2011 at 4:47 PM, D. Frej dieter_f...@gmx.net wrote: +1 as this also goes into the direction of nested sets I don't get it. Maybe I have my nomenclature all wrong, but thishttp://en.wikipedia.org/wiki/Nested_set_modelis what I think of when I hear nested sets. What am I missing?

Re: [Neo4j] Cypher 3 Trees

2011-12-07 Thread Andres Taylor
On Wed, Dec 7, 2011 at 4:14 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Mmh, I would like to see that I can specify the stem of the tree as a path and then get leaf nodes out from that Yeah, the cook book exposed this weakness clearly... , something like START root =

Re: [Neo4j] Cypher 3 Trees

2011-12-07 Thread Andres Taylor
On Wed, Dec 7, 2011 at 4:25 PM, Michael Hunger michael.hun...@neotechnology.com wrote: I would love to see consideration of branch ordering. What do you mean? An example would be helpful. Predicate support for trees like we now have for paths. Didn't think in these terms. I like it. Do

Re: [Neo4j] Question about cypher prepared queries

2011-12-06 Thread Andres Taylor
On Tue, Dec 6, 2011 at 2:27 PM, jschweigl johann.schwe...@gmail.com wrote: I have a class with one String field to hold a query string and one for a compiled query which is created in the constructor. So, each instance has the query string (for documentation purposes) and the compiled query.

Re: [Neo4j] Cypher syntax for conditional path segments?

2011-12-03 Thread Andres Taylor
On Sat, Dec 3, 2011 at 4:39 PM, jschweigl johann.schwe...@gmail.com wrote: Still couldn't find a solution. Do I have to go back to the API to follow a defined path of relations until the next one is not available or the desired end node type is reached? I didn't understand your question

Re: [Neo4j] Cypher syntax for conditional path segments?

2011-12-03 Thread Andres Taylor
On Sat, Dec 3, 2011 at 5:17 PM, jschweigl johann.schwe...@gmail.com wrote: I was afraid that this happened, because in the mail I got from the list containing my own post the query was missing as well. It was enclosed in raw text tags. Seems to be a bug in the forum software. Here is the

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

Re: [Neo4j] RETURN DISTINCT with ORDER BY

2011-11-30 Thread Andres Taylor
On Wed, Nov 30, 2011 at 6:27 AM, dnagir dna...@gmail.com wrote: But the query with both DISTINCT and ORDER BY doesn't return anything: There was a bug concerning distinct and order by in the same query that has been solved now. It was fixed in the stable 1.5 release. My suggestion is that you

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 11:32 AM, dnagir dna...@gmail.com wrote: I would probably like to write something among these lines (it's not valid query of course): START s=node(10) MATCH p = s-[:whatever]-t RETURN t, LENGTH(p) as len HAVING len = MAX( LENGTH(p) ) Well, this query would also

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] 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] [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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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: 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] 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 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: 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: 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 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 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

[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 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

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

  1   2   >