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 P

[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 memo

Re: [Neo] trouble installing jpype, alternate installation sought

2009-11-14 Thread Tobias Ivarsson
According to Steve Ménard (The developer of JPype) this is typically what happens when you are trying to use a JRE instead of a JDK as the source for the Java/JNI header files when compiling.[1] I hope this is enough for you to work out these problems. Cheers, Tobias [1] http://sourceforge.net/m

[Neo] trouble installing jpype, alternate installation sought

2009-11-14 Thread Gregg Lind
I'm working on installing neo4j.py, using the instructions at http://components.neo4j.org/neo4j.py/. Jpype doesn't seem to build for me. (Centos5.4, x64, Python2.4.3). Is this usual (if you know) and if not, is there any way around this? [final message from python setup.py build src/native/com

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 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 information about a node