[Neo] Fwd: r4160 - in laboratory/components/neo-persistence/trunk/src: main/java/org/neo4j/persistence/impl test/java/org/neo4j/persistence/impl/examples

2010-04-07 Thread Peter Neubauer
Hi there, seems the Neo4j JPA adapter is coming along. Would be great to get some update, blog or docs on the state of things? Cheers, /peter neubauer COO and Sales, Neo Technology GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.co

[Neo] NOSQL poll on DZone

2010-04-07 Thread Peter Neubauer
Hi folks, in case you are interested, there is a poll on the interest for different NOSQL technologies, http://java.dzone.com/polls/poll-nosql-interest . Quite interesting to see actually! Cheers, /peter neubauer COO and Sales, Neo Technology GTalk: neubauer.peter Skype peter.neubau

[Neo] The Graph Traveral Pattern

2010-04-07 Thread Marko Rodriguez
Hi everyone, Peter Neubauer and I recently finished an article entitled 'The Graph Traversal Pattern'. If you are interested in learning more, please follow this link: http://bit.ly/bDZHFD Take care, Marko. http://markorodriguez.com ___ Neo mailing l

Re: [Neo] How to efficiently query in Neo4J?

2010-04-07 Thread Craig Taverner
Hi Alastair, I have been using what you tag the 'composite index' although in mysql. Its > fast, but a pain to manage (as you need to keep the index up to date), so I > would like to stay away from indexes *if possible*. > I would think that you only need to take action when you add or modify a n

Re: [Neo] How to efficiently query in Neo4J?

2010-04-07 Thread Alastair James
Excellent analysis Craig. I have been using what you tag the 'composite index' although in mysql. Its fast, but a pain to manage (as you need to keep the index up to date), so I would like to stay away from indexes *if possible*. >One concern is that it needs to keep a hash of all nodes that matc

Re: [Neo] How to efficiently query in Neo4J?

2010-04-07 Thread Craig Taverner
This is a very interesting discussion because I've been working on a solution I call a 'composite index' that, for some datasets, should return the correct results in one simple traverse, with no temporary memory used, but first my high level view of this: I think there are several types of soluti

Re: [Neo] How to efficiently query in Neo4J?

2010-04-07 Thread Alastair James
H... I am guessing the most efficient way might be to have a two stage return evaluator. E.g. The custom return evaluator class has a hash table of => pairs. Each time 'isReturnableNode' is called, it increments the count for that node id in the hash. If count >= return the node. Thus, if

[Neo] Map reduce style pagination [WAS: Traversers in the REST API]

2010-04-07 Thread Alastair James
Hi there... This is a branch of the thread on "Traversers in the REST API". I just want to run an idea by you all. Tell me to shut up if I am being stupid. Quote from Tobias Ivarsson: >As for sorting: yes, that is a comment on the API as a whole. We have opted >at not providing sorting, since th

Re: [Neo] How to efficiently query in Neo4J?

2010-04-07 Thread Rick Bullotta
Here's a rough description of how we're handling something similar: - Create a "tag query collection" consisting of the node(s) for each tag in your query (TQNodes) - Given the tags to match, determine the "specificity" of each tag (e.g. depth in the tag hierarchy) - For the most specific tag, u

Re: [Neo] How to efficiently query in Neo4J?

2010-04-07 Thread Max De Marzi Jr.
I've had similar issues and they way I've done it (which may not be the right way) is to run the first traversal and store the returned nodes. Then run the second traversal and return only if it is contained in the set of returned nodes in the first traversal. The traverses hit each node only onc

Re: [Neo] Neo4j + REST + .NET anyone?

2010-04-07 Thread Rick Bullotta
Hi, Tobias. It could be a fairly challenging task to do a general purpose .NET client using WCF, largely due to the flexibility of the return types (schema-less and type-less) from the REST API and some challenges that the DataContractJsonSerializer has in these scenarios. I think ultimately ther

[Neo] How to efficiently query in Neo4J?

2010-04-07 Thread Alastair James
Hi there... I am looking at moving a website to a model based on Neo4J, however, I am having trouble seeing how to optimise the 'main query' type for Neo4J. Briefly, the site consists of posts, each tagged with various attributes, e.g. (its a travel site) location, theme, cost etc... Also the tag

[Neo] Neo4j + REST + .NET anyone?

2010-04-07 Thread Tobias Ivarsson
Hi everyone! With the REST API approaching a usable state it would be great to get some clients written for it. Since I'll be presenting Neo4j at a .Net conference next week ( http://mow2010.dk/all-abstracts/tobias-ivarsson.aspx ) it would be great if there was a .Net client available for me to sh

Re: [Neo] Traversers in the REST API

2010-04-07 Thread Alastair James
Cheers guys. All sounds good. One comment: > As for sorting: yes, that is a comment on the API as a whole. We have opted > at not providing sorting, since there are good sorting facilities available > in the JRE already. Since that makes it easy for the user to implement > their > own sorting it

Re: [Neo] Neo4j and Perl

2010-04-07 Thread Tobias Ivarsson
Hi Nuba, I have not used Perl with Neo4j, but proposing a SoC project for this sounds like a great idea. I could even volunteer to mentor the Neo4j aspects of such a project, as well as providing Java/JVM insights. I had a quick look at Inline::Java, and it looks like a good platform to start fro

Re: [Neo] is neo4j the correct tool to store trees?

2010-04-07 Thread Craig Taverner
On Wed, Apr 7, 2010 at 9:52 AM, Tobias Ivarsson < tobias.ivars...@neotechnology.com> wrote: > Whow. that's a mouthful, Python to the rescue ;) > Here is how I'd color this bike shed : > I've not read about the bikeshed in a decade: A cool off timer will prevent you f

Re: [Neo] is neo4j the correct tool to store trees?

2010-04-07 Thread Tobias Ivarsson
All the stars added by gmail? - yeah, that was scary. I had no idea gmail did that. On Wed, Apr 7, 2010 at 12:00 PM, Laurent Laborde wrote: > On Wed, Apr 7, 2010 at 9:52 AM, Tobias Ivarsson > wrote: > > > > *def* get_node_from_path(start, path, include_symlinks=True)*:* > >types = ('*CHILD*'

Re: [Neo] is neo4j the correct tool to store trees?

2010-04-07 Thread Laurent Laborde
On Wed, Apr 7, 2010 at 9:52 AM, Tobias Ivarsson wrote: > > *def* get_node_from_path(start, path, include_symlinks=True)*:* >    types = ('*CHILD*', '*SYMLINK*') *if* include_symlinks *else* ('*CHILD* > ',) >    node = start >    *for* i, name *in* enumerate(path.split('*/*'))*:* >        *for* rel

Re: [Neo] is neo4j the correct tool to store trees?

2010-04-07 Thread TuX RaceR
Thanks Anders for this interesting code ;) Anders Nawroth wrote: > Hi! > > Now I finally got around posting my code: > http://github.com/neo4j-examples/java-tree-traverse > > The code is in here: > http://github.com/neo4j-examples/java-tree-traverse/blob/master/src/main/java/org/neo4j/examples/tre

Re: [Neo] Semantics of VerboseQuad and DenseTriple stores

2010-04-07 Thread Niels Hoogeveen
I am sorry for the inconvenience. I had an error in my test case. The Dense store correctly creates arrays where the Quad store creates multiple relations, which is semantically equivalent. Kind regards, Niels Hoogeveen > Date: Wed, 7 Apr 2010 10:56:55 +0200 > From: matt...@neotechnology.com

Re: [Neo] Traversers in the REST API

2010-04-07 Thread Mattias Persson
2010/4/7 Alastair James > > > > > These two ways of traversing a graph complement each other, it's not > that > > > one is "better" than the other. Would you agree on this? > > > > I think I agree. I would hope to be able to use XPath/Gremlin style > querying > for most things, and a more program

Re: [Neo] Semantics of VerboseQuad and DenseTriple stores

2010-04-07 Thread Mattias Persson
I just added a test for that behaviour and it runs fine, so I'd say your observations aren't correct... if you could supply some code which can trigger an error regarding this it would be superb. 2010/4/7 Mattias Persson > This isn't intended... I remember modifying something regarding this a >

Re: [Neo] Semantics of VerboseQuad and DenseTriple stores

2010-04-07 Thread Mattias Persson
This isn't intended... I remember modifying something regarding this a while ago. Thanks for the notice on this one, I'll look into it! 2010/4/6 Niels Hoogeveen > > I noticed the VerboseQuadStore and the the DenseTripleStore have different > semantics when it comes to handling Subject, Predicate

Re: [Neo] Traversers in the REST API

2010-04-07 Thread Tobias Ivarsson
Our thoughts on how to handle pagination is "not yet", we'll get something that works first, and then add pagination (in a number of places) later on. As for sorting: yes, that is a comment on the API as a whole. We have opted at not providing sorting, since there are good sorting facilities avail

Re: [Neo] is neo4j the correct tool to store trees?

2010-04-07 Thread Tobias Ivarsson
Apparently, gmail (trying to be smart) messed up the formatting of my code, here it is completely without formatting (along with this message to all the googlers who are eavesdropping to all emails that pass through gmail: Don't mess with my source code!) def get_node_from_path(start, path, includ

Re: [Neo] is neo4j the correct tool to store trees?

2010-04-07 Thread Tobias Ivarsson
Whow. that's a mouthful, Python to the rescue ;) Here is how I'd color this bike shed : *def* get_node_from_path(start, path, include_symlinks=True)*:* types = ('*CHILD*', '*SYMLINK*') *if* include_symlinks *else* ('*CHILD* ',) node = start *for* i, name

Re: [Neo] Traversers in the REST API

2010-04-07 Thread Alastair James
> > > These two ways of traversing a graph complement each other, it's not that > > one is "better" than the other. Would you agree on this? > I think I agree. I would hope to be able to use XPath/Gremlin style querying for most things, and a more programatic system for more complex ones. > a JSO

Re: [Neo] RESTful HTML representation

2010-04-07 Thread Alastair James
Hi there! Good work! I suppose the best example I can think of is the couchdb default HTML interface... Looks nice, but most importantly works very well. Some embedded javascript to do things like expandable lists etc... Cheers Al On 6 April 2010 10:28, Mattias Persson wrote: > Hi all, > > W