[Neo4j] Traversing all relationship types

2011-05-11 Thread Jean-Pierre Bergamin
Hello neo4j users I'm just diving into neo4j and playing around with graph algorithms and traversers. As a start, I just wanted to traverse the whole graph with all relationship types in the OUTGOING direction. The traverse() method always expects a RelationshipType. Is there a simpler way to

Re: [Neo4j] Traversing all relationship types

2011-05-11 Thread Tobias Ivarsson
There is a tentative new traversal API included in Neo4j that features this functionality: org.neo4j.kernel.Traversal.description().expand( org.neo4j.kernel.Traversal.expanderForAllTypes( Direction.OUTGOING ) ); You can read more about it here:

Re: [Neo4j] Traversing all relationship types

2011-05-11 Thread Jean-Pierre Bergamin
Thank you Tobias. This new traversal framework looks much more powerful and fluent then the traverser I have been playing with so far. The getting started guide should definitively point to it. Best regards, James 2011/5/11 Tobias Ivarsson tobias.ivars...@neotechnology.com There is a

[Neo4j] finding all shortest paths between one node and all other nodes in a large scale databse

2011-05-11 Thread 翁瑞廷
Hi, I'm trying to use Neo4j graph database to store a large social network(more than 5,000,000 nodes) for academic research. I need to compute the separation degree(path length) between any two nodes in the graph then get the average degree of whole database. The solution I'm using use now is

Re: [Neo4j] Traversing all relationship types

2011-05-11 Thread Peter Neubauer
Jean-Pierre, we are in the process of moving the Getting started guides to docs.neo4j,org, along with a number of good examples, amongst others on traversal. You might find http://components.neo4j.org/neo4j-examples/1.4-SNAPSHOT/ interesting, too? Cheers, /peter neubauer GTalk:

[Neo4j] Index Framework - Query Question

2011-05-11 Thread Rick Bullotta
Is there currently any way to have a composite index consisting of fulltext and non-analyzed (simple fields), and to query them in a single query statement? e.g. : title:Reloaded AND year:1999 In this case, I'd be using a Lucene Analyzer on the title, but indexing the primitive types without

Re: [Neo4j] REST API (optimistic or transactional) concurrency?

2011-05-11 Thread Rick Bullotta
I think you have to still do it over HTTP *in addition* to any other transport, if for no other reason than the ubiquity of HTTP-capable client applications/platforms/languages. That said, I'd implement a pessimistic transaction recovery scheme with a configurable time to live. -Original

Re: [Neo4j] Multiple users on a embedded graphdb

2011-05-11 Thread Michael Hunger
No problem at all. As tx are bound to the executing thread. And the singleton graph-db instance is the way to go. Good Luck with your efforts Michael Am 11.05.2011 um 17:04 schrieb John Doran: Thanks Micheal, Good points, I have 3 weeks to finish up(along with a mountain of other things

[Neo4j] Neo4j + Rexster lock problem

2011-05-11 Thread sulabh choudhury
A similar question has been asked previously but I could not find a solution which would work for me, hence re-posting it. I am creating a Neo4j graph and want to expose it over REST using Rexster so that I can apply traversals to it. Now after I have started Rexster, I see that I cannot write to

Re: [Neo4j] Neo4j + Rexster lock problem

2011-05-11 Thread Peter Neubauer
Sulabh, do you have the setup somewhere? This should not be a problem per se, so I think there is some multiple booting of Neo4j going on ... can try to help you off-list with that and get back with the results here. Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer

[Neo4j] Basic Ruby/Neo4j question

2011-05-11 Thread Vaccaro, Kristen M
Hi, I just started using Neo4j and I've got a pretty basic question. I've been running the gem using JRuby but I'm having trouble calling on edges/nodes I've made in previous transactions. So one of the very basic example scripts I've been working with looks like: require rubygems require

[Neo4j] Creating EXE and a java.Lang error

2011-05-11 Thread Abhishek AS
Was creating an exe by exporting JAR and Runnable JARs thro eclipse.. Using Launch4j to do that. and having proper manifest files with the class path too.. But i get the following error when i try to run the created exe file. Caused by: java.Lang.ClassNotFoundException:

Re: [Neo4j] Neo4j + Rexster lock problem

2011-05-11 Thread Marko Rodriguez
Hi Sulabh, You can only have one instance of Neo4j over a particular directory. As such, when you want to have multiple threads talking to a single Neo4j, you will need to pass that reference around to each thread. Thus, when Rexster is running over Neo4j, Rexster has that reference. To have

Re: [Neo4j] Basic Ruby/Neo4j question

2011-05-11 Thread Peter Neubauer
Vaccaro, could this be a simple Ruby scoping issue, since you are defining a within the transaction block? If you move the definition onto a global variable or declare a outside the block, does it work then? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone

Re: [Neo4j] Neo4j + Rexster lock problem

2011-05-11 Thread Peter Neubauer
For such a situation, you should use the Neoj4 HA cluster, which will manage the propagation of data between the different instances for you. I think that is the cleanest and best solution here. Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704

[Neo4j] Neo4j and Gremlin at ChicagoDB

2011-05-11 Thread Peter Neubauer
Hi there, Bobby Norton and Dave Astels are giving a lecture in Chicago on May 16th on Neo4j+Gremlin. If you are around, please feel free to sign up. http://chicagodb.gathers.us/events/dots-lines-and-query-paths Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone

Re: [Neo4j] finding all shortest paths between one node and all other nodes in a large scale databse

2011-05-11 Thread Michael Hunger
Hey JueiTing, I'm not sure if Hadoop is needed here. What is the current performance characteristics for the shortest path you are using? You could take a decent machine and just fire up, e.g. blocks of 10k node pairs to a ThreadPoolExecutor with cores*2 threads. Each of those tasks only has

Re: [Neo4j] Creating EXE and a java.Lang error

2011-05-11 Thread Peter Neubauer
Abhishek, this looks like a packaging classpath problem, not sure how to help. I guess we could have some Skype screen sharing session and try to sort it out? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn

Re: [Neo4j] Getting started with Ruby

2011-05-11 Thread Adriano Henrique de Almeida
I'll put some cons, but the pros are just the opposite for the other. - Well, one con that comes to my mind regarding the use of the embedded API that you're attached to JRuby and maybe you want/have to use plain MRI, Rubinius or something else. - One con that I can think on the REST API is

Re: [Neo4j] Getting started with Ruby

2011-05-11 Thread Max De Marzi Jr.
I think each has their place. This is how I see it: If you're going all in (your graph db is your primary db) then use the Andreas Neo4j.rb gem. If you're not, (your graph db is used as a secondary db or as an index for graph specific tasks) then it may be easier to use my Neography gem. I

Re: [Neo4j] Neo4j EC2 AMI image available

2011-05-11 Thread Daniel Gasienica
This is great news! What is the simplest way to secure a Neo4j instance on AWS? Daniel On Tue, May 10, 2011 at 06:29, Peter Neubauer peter.neuba...@neotechnology.com wrote: Hi all, Jussi Heinonen from OpenCredo has created a Neo4j Server EC2 image to try out things with. Well done, thanks