Re: [Neo] Groovy and Neo4J - A working example

2008-12-12 Thread Guillaume Laforge
You can also do some fun things like: def myNodeName = firstName assert person.${myNodeName} == firstName :-) On Fri, Dec 12, 2008 at 11:41 AM, Mattias Persson matt...@neotechnology.com wrote: Awesome, that takes care of that then, thanks! 2008/12/12 Guillaume Laforge glafo...@gmail.com:

Re: [Neo] Groovy and Neo4J - A working example

2008-12-12 Thread Mattias Persson
Nice, That would actually be my next question :) Cool things indeed. 2008/12/12 Guillaume Laforge glafo...@gmail.com: You can also do some fun things like: def myNodeName = firstName assert person.${myNodeName} == firstName :-) On Fri, Dec 12, 2008 at 11:41 AM, Mattias Persson

Re: [Neo] Groovy and Neo4J - A working example

2008-12-12 Thread Guillaume Laforge
In other niceties, using the with{} closure: person.with { firstName = 'Guillaume' lastName = 'Laforge' } That can be handy too, for avoiding some repetition. On Fri, Dec 12, 2008 at 11:57 AM, Mattias Persson matt...@neotechnology.com wrote: Nice, That would actually be my next

Re: [Neo] Groovy and Neo4J - A working example

2008-12-12 Thread Guillaume Laforge
In Groovy, you can quote method names and properties. So when you have weirdo characters, you can do that instead: myNode.super - funky + node / name = something. On Fri, Dec 12, 2008 at 11:36 AM, Mattias Persson matt...@neotechnology.com wrote: Hmm, this thread is probably dead? But, I

Re: [Neo] Groovy and Neo4J - A working example

2008-12-12 Thread Mattias Persson
Hmm, this thread is probably dead? But, I just thought about the: myNode.name = Mattias myNode.someProperty = Something else Keep in mind that property keys have no restrictions as to length or content which means a property key can contain spaces and '=' characters and what not. f.ex.

Re: [Neo] node types revisited

2008-12-12 Thread Peter Haensgen
Hi, The mapping to nodes and relationships is easy, if you have a node type: - User -- Node {type = User} - UserGroup -- Node {type = UserGroup} - members -- Relationship {type = members} - admins -- Relationship {type = admins} I'm not sure I follow you here. Does relationships

Re: [Neo] NEO Performance

2008-12-12 Thread Johan Svensson
Hi Jürgen, I will try to answer some of your questions. On Thu, Dec 11, 2008 at 10:17 PM, Jürgen Umbrich juergen.umbr...@deri.org wrote: first off all, I am very fascinated about neo and the neo4j library. I work as part of my PhD in the domain of web crawling and thus, I thought about using

Re: [Neo] NEO Performance

2008-12-12 Thread Jürgen Umbrich
Hi First let me just point out that Neo is transactional meaning that the system can crash at any point in time and the system will be brought back to the correct consistent state (snapshot from last commit before crash). That will slow things down a bit. very nice feature :-). I tried to