[Neo4j] what is the neo4j-spatial website?

2011-11-02 Thread chen zhao
Hi, I can not find the neo4j-spatial database download page. Only I can download neo4j-enterprise-1.4.2. Who can tell me the website of neo4j-spatial database? zhao ___ Neo4j mailing list User@lists.neo4j.org

Re: [Neo4j] Neo4j performance with 400million nodes

2011-11-02 Thread algecya
Hi anders, appreciate your offer very much! It is good to know that the neo4j community is very active and involved. http://neo4j-community-discussions.438527.n3.nabble.com/file/n3472966/BatchImportData.groovy BatchImportData.groovy Here is the import script. it is a stripped version of the

Re: [Neo4j] what is the neo4j-spatial website?

2011-11-02 Thread chen zhao
Thank you very much 2011/11/2 Peter Neubauer peter.neuba...@neotechnology.com Zhao, Neo4j Spatial is an add-on to the Neo4j ecosystem. We are in the process fo getting the docs in order, until then, the best is to look at https://github.com/neo4j/spatial . Also, I am attaching the current

Re: [Neo4j] what is the neo4j-spatial website?

2011-11-02 Thread chen zhao
Now I have download neo4j-spatial-be288f2,I want to import a shapfile file into the neo4j-spatial database. How can I start the neo4j-spatial db? Is the neo4j-spatial independent or dependent on neo4j-enterprise-1.4.2? I do not know the relationship between the two? Thank you. zhao 2011/11/2

[Neo4j] Node Id generation deadlock

2011-11-02 Thread Cres
(Sorry for re-opening this thread, I hadn't yet subscribed to the mailing list when I opened it the previous time, so I had to re-start it..) Hi, I'm using Neo4J version 1.4.1. I've tried following the design guide ( http://wiki.neo4j.org/content/Design_Guide#Make_use_of_Factories ) writing a

[Neo4j] DSL for Cypher - request for feedback!

2011-11-02 Thread Rickard Öberg
Hi guys, I am in the process of creating a Java DSL for Cypher, and would like your feedback on different variants. You can find the code here: https://github.com/neo4j/cypher-dsl/ The Cypher reference manual has been implemented here:

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Jacob Hansson
On Tue, Nov 1, 2011 at 5:37 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Well, I think that Cypher is not yes taking into account Uniqueness, or is it Andres? Otherwise, most of the normal traversals are covered. To keep things consistent and give people a way of doing fine

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Michael Hunger
I vote not dropped, as there are lots of non-java developers out there which would want to use REST server dynamically. That was the reason why we wrote the ruby-script-extension support. Michael Am 02.11.2011 um 10:08 schrieb Jacob Hansson: On Tue, Nov 1, 2011 at 5:37 PM, Peter Neubauer

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Jacob Hansson
On Wed, Nov 2, 2011 at 10:20 AM, Michael Hunger michael.hun...@neotechnology.com wrote: I vote not dropped, as there are lots of non-java developers out there which would want to use REST server dynamically. I am completely open to the notion that I am wrong here. But I want us to have

[Neo4j] Cypher: including start in result

2011-11-02 Thread D. Frej
Hi, I have a very simply graph: UserGroup 2 -[:IS_MEMBER_OF]- UserGroup 1, User 3 UserGroup 1 -[:IS_MEMBER_OF]- User 1, User 2 I use the following cypher to find all nodes that are below UserGroup 2 (I start at node User 3 and go one level up in the tree which equals UserGroup 2): START

[Neo4j] Cypher: ommitting relationship if not available

2011-11-02 Thread D. Frej
Hi, I have a very simply graph: UserGroup 2 -[:IS_MEMBER_OF]- UserGroup 1, User 3 UserGroup 1 -[:IS_MEMBER_OF]- User 1, User 2 I want to find all nodes that are on the same level or on a level below the starting point. Using START principals=node:nodes(NAME='User 3') MATCH

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Michael Hunger
custom use-cases like the ones implemented by our customers with plugins / extensions and in the case of the ruby script extensions a way I'd like to promote to talk to the server that is 1) create you own RESTful endpoints that are focused on a protocol speaking your domain and not nodes +

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

2011-11-02 Thread D. Frej
I though that this is what I used with MATCH (principals)-[?:IS_MEMBER_OF]- When I turn it into MATCH (principals)-[?]-()-[:IS_MEMBER_OF*0..]-(n) RETURN n Nothing at all is returned Am 02.11.2011 11:05, schrieb Jacob Hansson: On Wed, Nov 2, 2011 at 11:01 AM, D. Frejdieter_f...@gmx.net

Re: [Neo4j] Cypher: including start in result

2011-11-02 Thread Michael Hunger
Hi, in the pattern matching employed by cypher nodes already bound to an identifier won't be bound to another identifier. That is the reason why all nodes that already belong to principals don't appear in n. In your case it might be easiest to just return n,principals Cheers Michael Am

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

2011-11-02 Thread Michael Hunger
If I understand you correctly, then your start nodes (aka UserGroup 2) would be dangling as there is no relationship IS_MEMBER_OF starting from this group. so your start nodes are connected by an optional relationship, so everything also hanging on this optional relationship is also optional.

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

2011-11-02 Thread D. Frej
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 as principal in a group (UserGroup 1 is in UserGroup 2) , then the

Re: [Neo4j] Newbie issues with indexing

2011-11-02 Thread Mattias Persson
Hi Bill, Why BarName in one and FooName in the other? I'm assuming you have NodeType/Name for both ok? So... a query like this would look like: nodeIndex.query( NodeType:Bar AND Name:\Bar 1\ ); 2011/11/1 Bill Baker bill...@billbak.com Hello, I have an index and add my nodes to it as I

Re: [Neo4j] Cypher: including start in result

2011-11-02 Thread Jacob Hansson
On Wed, Nov 2, 2011 at 11:18 AM, Michael Hunger michael.hun...@neotechnology.com wrote: Hi, in the pattern matching employed by cypher nodes already bound to an identifier won't be bound to another identifier. I was thinking this was a bug when I saw Didis mail here, but wasn't sure so I

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Jacob Hansson
On Wed, Nov 2, 2011 at 11:11 AM, Michael Hunger michael.hun...@neotechnology.com wrote: custom use-cases like the ones implemented by our customers with plugins / extensions and in the case of the ruby script extensions a way I'd like to promote to talk to the server that is 1) create you

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] Node Id generation deadlock

2011-11-02 Thread Balazs E. Pataki
Hi, I had a similar issue (also with ID generation), and I would be also interested in a solution, or how synchronizations should be done to avoid deadlocks like this in the transaction. Regards, --- balazs On 11/2/11 8:55 AM, Cres wrote: (Sorry for re-opening this thread, I hadn't yet

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: including start in result

2011-11-02 Thread Jacob Hansson
On Wed, Nov 2, 2011 at 12:26 PM, Andres Taylor andres.tay...@neotechnology.com wrote: 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..

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Jacob Hansson
On Wed, Nov 2, 2011 at 12:34 PM, Andres Taylor andres.tay...@neotechnology.com wrote: 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

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Peter Neubauer
Mmh, this thread is just about deprecating the travers() section of the REST API, not take away general scripting form the server. I have not seen one single case where people have exploited the JavaScript exposure in the return/stop evaluators to do anything like you say Michael. Extensions and

Re: [Neo4j] Java segfault using paste and Python bindings

2011-11-02 Thread Michael Rene Armida
I had no idea that neo4j had a REST interface; I am essentially implementing my own REST interface in order to use neo4j embedded in a desktop app. I will have to look into that more to see if there's an easy way to embed the server and still communicate to it via the REST API. Thanks for the

Re: [Neo4j] Java segfault using paste and Python bindings

2011-11-02 Thread Peter Neubauer
Michael, have you looked at http://docs.neo4j.org/chunked/snapshot/rest-api.html for documentation? We probably should promote the manual much more prominently on the site :/ Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn  

Re: [Neo4j] Newbie issues with indexing

2011-11-02 Thread Bill Baker
Thanks Mattias. One node is a Foo node and one is a Bar node. Maybe I am being too fancy; I could just use 'NAME' for any type of node. I'm a little confused about the query string below. Should it perhaps be NodeType:Bar AND Name:Bar 1 ? I'm not getting why the property name is inside

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Jacob Hansson
On Wed, Nov 2, 2011 at 3:44 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Mmh, this thread is just about deprecating the travers() section of the REST API, not take away general scripting form the server. I have not seen one single case where people have exploited the JavaScript

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Peter Neubauer
Yes. This thread is about ONLY the traverse-Endpoint not scripting in general. 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

Re: [Neo4j] Newbie issues with indexing

2011-11-02 Thread Rick Bullotta
...because you have a space character in the name. From: user-boun...@lists.neo4j.org [user-boun...@lists.neo4j.org] On Behalf Of Bill Baker [bill...@billbak.com] Sent: Wednesday, November 02, 2011 11:33 AM To: Neo4j user discussions Subject: Re: [Neo4j]

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Kevin Dieter
Hi, We use the REST traversal API extensively. One of our core use cases is to find all paths between two nodes. We are a .Net shop so we rely on the REST API, and are currently using a .Net neo4j library from about 18 months ago that we have customized to our needs. I have seen other recent

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Michael Hunger
As I said it is still used in the rest-graphdb-client which comes as a drop-in-replacement for the core-api. This functionality would go missing then. Same goes for lot of stuff that for instance neography does with the REST server to offer a quite fluent way of traversing the graph. See

Re: [Neo4j] REST traverse deprecation

2011-11-02 Thread Peter Neubauer
Ok, then let's shelf this until further notice, and revise it when we have done some more extensive work on the server and fast protocol stack. Thanks for all input, good that you speak up! Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975

Re: [Neo4j] Newbie issues with indexing

2011-11-02 Thread Bill Baker
Got it, quote the string so the spaces don't matter, thanks. NodeType:Bar AND Name:\Bar 1\ seems inconsistent. It has five quotes. I will try this: NodeType:Bar AND Name:\Bar 1\ as I _think_ the version above has unmatched quotes. Thanks everyone, I appreciate the help. -Original

[Neo4j] Running arbitrary code in the server

2011-11-02 Thread Jacob Hansson
Breaking this out of the talk about deprecating REST traversals ( http://neo4j.org/forums/#nabble-td3460396). So, I'm trying to understand the arguments pro and con *POSTing arbitrary code to the server*, as well as *writing server plugins for the sake of adding domain logic inside the

Re: [Neo4j] what is the neo4j-spatial website?

2011-11-02 Thread Peter Neubauer
Hi there, the current snapshots of Neo4j Spatial are dependent on Neo4j 1.5-SNAPSHOT. For importing a shapefile, please look at https://github.com/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestSpatial.java#L212 Does that work? Cheers, /peter neubauer GTalk:     

[Neo4j] Tree structure

2011-11-02 Thread Emil Dombagolla
Hi all, i need to display a tree structure , based on the nodes i retrieved from the database through traverse. Nodes are gathered from different levels of the graph. some of the nodes are having parent / child relation in the graph. so if my result containing such a relation i want to display

Re: [Neo4j] Newbie issues with indexing

2011-11-02 Thread Mattias Persson
2011/11/2 Bill Baker bill...@billbak.com Got it, quote the string so the spaces don't matter, thanks. NodeType:Bar AND Name:\Bar 1\ seems inconsistent. It has five quotes. I will try this: NodeType:Bar AND Name:\Bar 1\ as I _think_ the version above has unmatched quotes. It's how the

Re: [Neo4j] Newbie issues with indexing

2011-11-02 Thread Bill Baker
Then I will try it straight-up! -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Mattias Persson Sent: Wednesday, November 02, 2011 9:39 AM To: Neo4j user discussions Subject: Re: [Neo4j] Newbie issues with indexing 2011/11/2 Bill

Re: [Neo4j] Node Id generation deadlock

2011-11-02 Thread David Montag
Hi Ran, Each thread creates 2 nodes in the same transaction. The chain of events leading to this seems to be the following: * Thread 1 creates the first node. By the time it leaves createNode(), it will have a write lock on the ID generator node. * Thread 2 creates the first node. It will try to

Re: [Neo4j] Newbie issues with indexing

2011-11-02 Thread Bill Baker
Got it running, thank you! -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Bill Baker Sent: Wednesday, November 02, 2011 9:41 AM To: Neo4j user discussions Subject: Re: [Neo4j] Newbie issues with indexing Then I will try it

Re: [Neo4j] Tree structure

2011-11-02 Thread Andreas Kollegger
Hi Emil, Are you interested in displaying the tree structure in a web interface? You could either take a widget-approach using something like jstree (http://www.jstree.com/) or a more model visualization using D3 (http://mbostock.github.com/d3/ex/). Cheers, Andreas On Nov 2, 2011, at 9:36

Re: [Neo4j] Tree structure

2011-11-02 Thread Rick Bullotta
I've used d3. You do need a bit of JQuery/Javascript skills to munge the data into a form the d3 libraries expect it, but the results are impressive if you do. From: user-boun...@lists.neo4j.org [user-boun...@lists.neo4j.org] On Behalf Of Andreas

Re: [Neo4j] User Digest, Vol 56, Issue 12

2011-11-02 Thread Michael Rene Armida
I hadn't. I'm still confused about how I would combine that with embedding, though; I don't want to run a standalone neo4j daemon. Because the app I'm embedding into will be running Python, I figure the current setup may not be all that sub-optimal, now that the threading problem is out of the

Re: [Neo4j] Node Id generation deadlock

2011-11-02 Thread Cres
Hi David, Thank you very much for your response. I can see now what caused the deadlock. However, I'm not really sure how I can solve this problem efficiently - as you mentioned, your proposed solution will effectively serialize my transactions. Unfortunately, it'd be very difficult for me to

[Neo4j] zero fromDepth and toDepth

2011-11-02 Thread Alex
Hi everybody when setting fromDepth and toDepth both at zero, like in the following code Traversal.description.breadthFirst .evaluator(Evaluators.fromDepth(0)) .evaluator(Evaluators.toDepth(0)) I'm expecting to get only the start node, but I don't. Am I missing anything? Thanks! Cheers

[Neo4j] Neo4j Installer in Neography

2011-11-02 Thread maxdemarzi
At SpringOne we were talking about a Neo4j installer as a Ruby Gem. This is not that... but it's a start. https://github.com/maxdemarzi/neography/commit/066ed4fb0ce76b9c648e7fa4bae8c3cdfac6af41 -- View this message in context:

[Neo4j] Neo4j Events in November

2011-11-02 Thread Allison Sparrow
*** Hi Everyone, Here is a comprehensive list of events we have coming up in November. Check it out below. Remember, check back to http://plancast.com/neo4j for updates throughout the month. If you have any questions regarding participation, feel free to email

Re: [Neo4j] Neo4j Events in November

2011-11-02 Thread Peter Neubauer
Everyone, for Öredev Open, the first 20 signups are sponsored with the campaign code NEOOPEN11 at http://oredev.org/2011/oredev-open, and registration stops on Friday 17.00 CET. See you there! Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704

Re: [Neo4j] Neo4j Installer in Neography

2011-11-02 Thread Peter Neubauer
This is nice Max! How do I use it? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer http://www.neo4j.org              - NOSQL for the

Re: [Neo4j] Neo4j Installer in Neography

2011-11-02 Thread maxdemarzi
In your Rakefile or “lib/tasks/neography.rake”, add: require 'neography/tasks' It will add the following rake tasks to your project: rake neo4j:install # Install Neo4j to the neo4j directory under your project rake neo4j:start # Start Neo4j

Re: [Neo4j] Neo4j Installer in Neography

2011-11-02 Thread maxdemarzi
Ok I read my instructions and they were just overly complicated, so I added a Railtie. Assuming you are on a Rails project, point the gemfile to use the gem from git git 'neography', :git = 'git://github.com/maxdemarzi/neography.git and the tasks will be automatically included for you in your

[Neo4j] java.lang.IllegalArgumentException launching 1.5M02

2011-11-02 Thread Tatham Oddie
Any tips on where to start? I'm going to go looking for ServerProcessConsole.java but any other pointers are welcome. :) C:\AzureTemp\Resources\2e546563-a35c-42f6-b903-03317cfdf847\directory\Neo4jInst\neo4j-community-1.5.M02\binNeo4j.bat java.lang.IllegalArgumentException at

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

2011-11-02 Thread Tatham Oddie
It was this line in neo4j-wrapper.conf: wrapper.java.additional.3=-Xloggc:data/log/neo4j-gc.log It's commented out by default, but we had it in for some of our perf work. It seems it's no longer compatible with 1.5M02 even though it's still in the default config files (albeit commented out).

[Neo4j] Cypher questions

2011-11-02 Thread andrew ton
Hello, I have some questions regarding Cypher. 1. I have an ontology that defines classes and individuals. I store this ontology into Neo4J REST db. Is there any ways to find all individuals that have some given class?  In SPARQL, it can be done like ...WHERE { ?u a :User.}... to find all

[Neo4j] Debian/Ubuntu packages for Neo4j?

2011-11-02 Thread Nigel Small
Quick question: has anyone done any work on putting together .deb packages for Neo? And if so, has there been any consideration about getting them into Debian or Ubuntu repositories? Nige ___ Neo4j mailing list User@lists.neo4j.org

[Neo4j] 1.5M02 launches then exits immediately

2011-11-02 Thread Tatham Oddie
On Windows 7. It launches, opens the network socket, responds to the first REST request with a 200 OK, then promptly exits. This is an upgrade from 1.5M01 which is/was running fine. Full log: http://dl.dropbox.com/u/5216304/2003.01-neo4j.0.0.log Any ideas? I'm not a Java guy so having a

Re: [Neo4j] User Digest, Vol 56, Issue 16

2011-11-02 Thread Emil Dombagolla
Hi , Thanks Andreas Kollegger and Rick Bullotta, i am using vaadin framework. but the issue is.how to build a tree using nodes. becouse we are selecting nodes form different levels of the graph based on some conditions . then i have to merge child node with if the parent nodes are available in

Re: [Neo4j] Cypher questions

2011-11-02 Thread Michael Hunger
Both your questions would be answered with indexing: for the 1) you would add the user nodes them to a User index and then use start user=node:User(id:*) ... For 2) you would index the relationships-similarly (for the interesting types). e.g. create an index for only the rel-type you're

Re: [Neo4j] Neo4j Installer in Neography

2011-11-02 Thread Peter Neubauer
This is typical Ruby-fluff. Where is my verbose Java! This is too short. 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   

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

2011-11-02 Thread Peter Neubauer
Tatham, could you please open an issue in https://github.com/neo4j/packaging/issues so we can sort it out? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter     

Re: [Neo4j] User Digest, Vol 56, Issue 16

2011-11-02 Thread Peter Neubauer
Emil, I am not totally following your thoughts (would be great with an example in pictures). Have you looked at Cypher tree structure handling, e.g. http://docs.neo4j.org/chunked/snapshot/examples-acl-structures-in-graphs.html#_read_permission_example to find some inspiration? Cheers, /peter

Re: [Neo4j] User Digest, Vol 56, Issue 16

2011-11-02 Thread Michael Hunger
Something you could probably do is to return paths from cypher or traversal and then pick the nodes off the paths that you're interested in - from the path you get the tree-structure aka. the path's to the root of your tree. From the information extracted there you can build your composite

Re: [Neo4j] Debian/Ubuntu packages for Neo4j?

2011-11-02 Thread Peter Neubauer
There is the work Jake has been doing at https://github.com/jakewins/neo4j-server-debian . I would love if you could fork and update? Anders has made first attempts to set up a launchpad repo, not sure what the state there is. Welcome to chime in! Cheers, /peter neubauer GTalk:     

Re: [Neo4j] 1.5M02 launches then exits immediately

2011-11-02 Thread Peter Neubauer
Tatham, can you recreate this with a vanilla 1.5.M02 install and a clean database? In that case, in what folder, and can you send over the full installation? Just open a ticket in https://github.com/neo4j/packaging/issues so we can sort it out. Cheers, /peter neubauer GTalk:      neubauer.peter

Re: [Neo4j] zero fromDepth and toDepth

2011-11-02 Thread Peter Neubauer
Alex, looking at the source, the Evaluators.toDepth() does: public static Evaluator toDepth( final int depth ) { return new Evaluator() { public Evaluation evaluate( Path path ) { return path.length() depth ?

Re: [Neo4j] Cypher questions

2011-11-02 Thread Peter Neubauer
Andrew, we have been trying to keep things very tight and document most of the functionality in the manual. See even some domain examples that have Cypher in them, http://docs.neo4j.org/chunked/snapshot/domain-modeling-gallery.html What else would you like to see? Cheers, /peter neubauer

Re: [Neo4j] zero fromDepth and toDepth

2011-11-02 Thread Michael Hunger
What about atDepth(0) ? Michael Am 03.11.2011 um 03:33 schrieb Peter Neubauer: Alex, looking at the source, the Evaluators.toDepth() does: public static Evaluator toDepth( final int depth ) { return new Evaluator() { public Evaluation evaluate( Path path )

Re: [Neo4j] Cypher questions

2011-11-02 Thread Michael Hunger
the Neo4j-indexing provider (which is also used by Cypher) is lucene, so the default lucene query syntax works in the neo4j core API and Cypher queries. http://lucene.apache.org/java/3_4_0/queryparsersyntax.html Michael Am 03.11.2011 um 03:32 schrieb andrew ton: Hi Michael, Thank you

Re: [Neo4j] zero fromDepth and toDepth

2011-11-02 Thread Alex
Hi Peter it admittedly makes little sense to use fromDepth(0) toDepth(0) because there's obviously no need to run the query at all. Anyway, I'd expect a behavior consistent with, for example fromDepth(1) toDepth(1), which returns only nodes at depth 1 (if I'm not mistaken). So, I'd definitely

Re: [Neo4j] zero fromDepth and toDepth

2011-11-02 Thread Peter Neubauer
Well, fromDepth is public static Evaluator fromDepth( final int depth ) { return new Evaluator() { public Evaluation evaluate( Path path ) { return path.length() depth ? Evaluation.EXCLUDE_AND_CONTINUE : Evaluation.INCLUDE_AND_CONTINUE;

Re: [Neo4j] zero fromDepth and toDepth

2011-11-02 Thread Alex
That sounds a bit bizarre: in my code, fromDepth(n) toDepth(n) seems to be working like atDepth(n) if n0 (that's what should be happening, isn't it?) Alex -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/zero-fromDepth-and-toDepth-tp3474825p3476058.html

Re: [Neo4j] zero fromDepth and toDepth

2011-11-02 Thread Peter Neubauer
Mmmh, let me do a testcase on this ... can you raise an issue? 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              

Re: [Neo4j] zero fromDepth and toDepth

2011-11-02 Thread Alex
Done: http://neo4jdb.lighthouseapp.com/projects/77609-neo4j-community/tickets/17-consisnte-behavior-of-fromdepth-todepth-and-atdepth there's a typo in the title... time to get some sleep :) Alex -- View this message in context:

[Neo4j] Python embedding: problems with shutdown and threads

2011-11-02 Thread Michael Rene Armida
I'm having some weird problems with threading on shutdown. As I previously discovered, using neo4j in a multi-threaded Python app requires complete segregation of neo4j into a single thread. That all works fine for creating a database, however, it appears that shutting one down is a bit of a

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

2011-11-02 Thread Tim McNamara
Here are a few notes of my own from using Neo4j with Python embedded. I know that this isn't the right place . Ubuntu doesn't set $JAVA_HOME. I ended up hard coding the location of my JVM. I seem to encounter unclean shutdowns all the time when running with the iPython REPL. Is there a