Re: [Neo] [neo4j.py] A Few Questions

2009-11-14 Thread Tobias Ivarsson
Hi, Welcome to the mailing list. On Thu, Nov 12, 2009 at 9:28 PM, Andrew Nelder anel...@seekersol.ca wrote: Hi, I would like to try playing around with and expanding upon the neo4j.py wrapper; however, I've run into a few issues. (1) I can't seem to find a way to return helpful

[Neo] python binding data import problem

2009-11-14 Thread Yin Chen
Hi: I was playing with the Neo4j and its python binding. I want to import the user relationship data to Neo4j. Say id is the unique id for the user, I found no easy way to prevent the same id from generating different Nodes. The code below may works, but the data may be too big for

Re: [Neo] python binding data import problem

2009-11-14 Thread Tobias Ivarsson
I would suggest using the indexing capabilities to solve this: name_index = neo.index(name, create=True) def get_node(id): node = name_index[id] if node is None: node = neo.node(name=id) name_index[id] = node return node Cheers, Tobias On Sat, Nov 14, 2009 at 6:51