Re: [Neo] Size and speed

2008-10-19 Thread Philip Jägenstedt
On Sun, Oct 19, 2008 at 1:52 PM, Johan Svensson <[EMAIL PROTECTED]> wrote: > Hi Philip, > > On Sat, Oct 18, 2008 at 1:25 AM, Philip Jägenstedt <[EMAIL PROTECTED]> wrote: >> Hi all, >> >> I've been continuing my experiments with Neo+MusicBrainz and

[Neo] Size and speed

2008-10-17 Thread Philip Jägenstedt
Hi all, I've been continuing my experiments with Neo+MusicBrainz and am working on dumping the whole postgres database into Neo. That's quite a lot of data, requiring something like 5 GB in postgres tables. My guess is that a full dump to Neo would be quite a lot bigger than that, perhaps several

Re: [Neo] Pagerank patent?

2008-06-10 Thread Philip Jägenstedt
http://eupat.ffii.org/log/intro/ gives a nice introduction While software patents are illegal in Europe (http://www.epo.org/patents/law/legal-texts/html/epc/2000/e/ar52.html) the EPO keeps granting them. I have no clue as to what happens when companies actually sue for (software) patent infringeme

Re: [Neo] Re: Transactions in IndexService?

2008-05-11 Thread Philip Jägenstedt
our code and maybe find bugs related to it! > > > 2008/5/11 Philip Jägenstedt <[EMAIL PROTECTED]>: > > No, that part of the code isn't the problem. It's there because I left > > it when moving the transaction outside the loop to reproduce the > > err

Re: [Neo] Re: Transactions in IndexService?

2008-05-11 Thread Philip Jägenstedt
relevant parts taken out: > > for ( UUID id : artistIds ) { > ... > > try { >artist.updateWikipediaBlurb(); >} catch (WikipediaException e) { >// FIXME: log this error! >tx.failure(); >continue; >

Re: [Neo] Re: Transactions in IndexService?

2008-05-11 Thread Philip Jägenstedt
xception(e); } } } tx.success(); } finally { tx.finish(); } Philip On 5/11/08, Mattias Persson <[EMAIL PROTECTED]> wrote: > 2008/5/11 Philip Jägenstedt <[EMAIL PROTECTED]>: > > > On 5/11/08, Mattias Persson <[EMAIL PROTECTED]> wrote: > >>

Re: [Neo] Re: Transactions in IndexService?

2008-05-11 Thread Philip Jägenstedt
On 5/11/08, Mattias Persson <[EMAIL PROTECTED]> wrote: > Allright, I'm pretty sure that it's all about the usage of > tx.failure() (which is very seldom needed btw). In the first code > snippet you call tx.failure() inside the for-loop and continues. No, I throw an Exception. updateWikipediaBlur

Re: [Neo] Re: Transactions in IndexService?

2008-05-11 Thread Philip Jägenstedt
On 5/11/08, Mattias Persson <[EMAIL PROTECTED]> wrote: > Hmm allright, great that it's working though. Also it would be nice to > know which structural changes you made to your code to make it work. What this code does is to take a bunch of ids and for each of them (a) replicate the musicbrainz e

Re: [Neo] Re: Transactions in IndexService?

2008-05-11 Thread Philip Jägenstedt
handling > may be buggy, however your supplied example seems correct... we'll > have to test that more. > > 2008/5/10 Philip Jägenstedt <[EMAIL PROTECTED]>: > > > On 5/10/08, Johan Svensson <[EMAIL PROTECTED]> wrote: > > > >> If tx

Re: [Neo] Re: Transactions in IndexService?

2008-05-10 Thread Philip Jägenstedt
On 5/10/08, Johan Svensson <[EMAIL PROTECTED]> wrote: > If tx.finish() is never called the transaction will never be committed > or rolled back (holding locks/memory). I only have a single transaction wrapping everything I do for the entire request. Not nice maybe, I'm trying to work out some be

[Neo] Re: Transactions in IndexService?

2008-05-10 Thread Philip Jägenstedt
Perhaps my question could also be phrased as: What happens if tx.finish() is never called? I don't know what tomcat does when it times out, but I expect it might kill the running servlet quite "brutally". Philip On 5/10/08, Philip Jägenstedt <[EMAIL PROTECTED]> wrote

[Neo] Transactions in IndexService?

2008-05-10 Thread Philip Jägenstedt
Hi again, By accident (as usual) I stumbled across a new problem. I don't really have the transaction handling under control, and am creating a lot of new nodes and indexing them all in one transaction. At one time I got a server timeout or similar, which I though would cause the transaction to fa

Re: [Neo] Does RelationshipType enum need to be unique?

2008-05-08 Thread Philip Jägenstedt
Thanks! On 5/8/08, Mattias Persson <[EMAIL PROTECTED]> wrote: > I fixed that bug... there will be a new SNAPSHOT of neo in an hour or two! > > 2008/5/8 Philip Jägenstedt <[EMAIL PROTECTED]>: > > > I've used this DynamicRelationType in my project, but there

Re: [Neo] Does RelationshipType enum need to be unique?

2008-05-08 Thread Philip Jägenstedt
pe t1 = DynamicRelationshipType.getRelationshipType("MyType"); > rn.createRelationshipTo(n, t1); > > > Works fine for me! > > FYI, > > Peter > > > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > >

[Neo] Best practices for fragile typing?

2008-05-06 Thread Philip Jägenstedt
Hi again, I was going to hear with you all about best practices for dealing with what can be described as "fragile typing": Given the relationship REMIXED going out from an artist, it's possible that the target node is either and album or a single track. How do I solve this? 1. Use two relationsh

Re: [Neo] Re: Neo shell problems...

2008-05-05 Thread Philip Jägenstedt
ilable commands: cd env export gsh help jsh ls man mkrel mv pwd > quit rm rmrel set > > Use man for info about each command. > neo-sh (0)$ > > > I guess 'man ', f.ex. man export woul work even in your case! > > > 2008/5/5 Philip Jägenstedt <[EMAIL PROTECT

Re: [Neo] Re: Neo shell problems...

2008-05-05 Thread Philip Jägenstedt
app. 'man' searches for available commands (classes extending > org.neo4j.util.shell.App) by looking at the classpath (directories and > .jar-files). The class loader hierarchy is a little different for > webapps. I'll add a ticket about this problem, to myself! > &

Re: [Neo] Re: Neo shell problems...

2008-05-05 Thread Philip Jägenstedt
vice > 2) $> java -jar shell.jar > o Are you using only one jvm instance to run the neo service AND the > shell, something like: > 1) $> java -cp neo.jar:jta.jar:shell.jar > org.neo4j.util.shell.StartRemoteClient path/to/neo/ > > Send the commands as precisely as possi

Re: [Neo] Re: Neo shell problems...

2008-05-05 Thread Philip Jägenstedt
#x27;ll try to reproduce it, what version of Ubuntu/Java are you using? > > > 2008/5/5 Philip Jägenstedt <[EMAIL PROTECTED]>: > > Nope, I haven't explicitly included the shell, but doing so I get > > shell-1.0-rc1-SNAPSHOT.jar instead. However, "quit" is stil

Re: [Neo] Re: Neo shell problems...

2008-05-05 Thread Philip Jägenstedt
1.0-rc1-SNAPSHOT > > > > > > as well right? I just tried it, and it worked... using Mac OS X Leopard. > > (make sure you have the -SNAPSHOT) > > > > > > > > 2008/5/5 Philip Jägenstedt <[EMAIL PROTECTED]>: > >

Re: [Neo] Re: Neo shell problems...

2008-05-05 Thread Philip Jägenstedt
-b6/shell-1.0-b6.jar > > > > Yep there's a b0rked dependency on lucene in index-utils, that is on a > todo-list somewhere. > > > 2008/5/5 Philip Jägenstedt <[EMAIL PROTECTED]>: > > No Windows for me, thanks. I'm running Ubuntu and the jars

Re: [Neo] Re: Neo shell problems...

2008-05-05 Thread Philip Jägenstedt
Philip On 5/5/08, Mattias Persson <[EMAIL PROTECTED]> wrote: > Oh, you're using Windows right? I guess that fix came in after shell > 1.0-b6. Should work just fine in neo/shell 1.0-rc1. > > I figure I could patch the b6 version with that fix as well... > > 2008/

Re: [Neo] Re: Neo shell problems...

2008-05-05 Thread Philip Jägenstedt
t it's the neo jar file which isn't > the latest. > > You can download it here: > http://m2.neo4j.org/org/neo4j/neo/1.0-b6/neo-1.0-b6.jar > > You could probably download the latest shell as well :) : > http://m2.neo4j.org/org/neo4j/shell/1.0-b6/shell-1

Re: [Neo] Mapping UUID to Neo node

2008-05-05 Thread Philip Jägenstedt
On 5/5/08, Emil Eifrem <[EMAIL PROTECTED]> wrote: > It seems weird to me that an attribute named "id" would be optional, The system relies heavily on MusicBrainz, but it's possible that some artists from a Last.fm top list or similar don't have a known MBID mapping (yet). > How do you get acces

Re: [Neo] Mapping UUID to Neo node

2008-05-04 Thread Philip Jägenstedt
without figuring out something that fits nicely with the niceness of http://wiki.neo4j.org/content/Design_Guide What would Morpheus do? Philip BTW, a long[2] is just what is needed for indexing a UUID. On 4/27/08, Emil Eifrem <[EMAIL PROTECTED]> wrote: > On Sun, Apr 27, 2008 at 9:5

Re: [Neo] Does RelationshipType enum need to be unique?

2008-05-03 Thread Philip Jägenstedt
Thanks for that explanation, I thought it wouldn't be as simple as it "could" be. Philip On 5/4/08, Emil Eifrem <[EMAIL PROTECTED]> wrote: > Hi Philip, > > So from a Java perspective, your two Enums are definitely different > types and there's no interoperability between them whatsoever. But Ne

[Neo] Does RelationshipType enum need to be unique?

2008-05-03 Thread Philip Jägenstedt
This question may reveal some ignorance on my side, but I'm going ahead anyway. Is there anything which makes it a bad idea to have several different enums implementing RelationshipType and using these for different relationships in neo? The reason in my case is that some relationship types are na

Re: [Neo] Maturity of Python bindings?

2008-04-30 Thread Philip Jägenstedt
gt; > > > org.neo4j > > > > neo > > > > 1.0-rc1-SNAPSHOT > > > > > > > > > > > > > > > >

Re: [Neo] Re: Neo shell problems...

2008-04-30 Thread Philip Jägenstedt
; / Mattias > > 2008/4/28 Emil Eifrem <[EMAIL PROTECTED]>: > > > On Sun, Apr 27, 2008 at 11:54 PM, Philip Jägenstedt <[EMAIL PROTECTED]> > > wrote: > > > I don't know why. Again, my nodespace is ∅ so if there are some > > > assumption

Re: SV: [Neo] Crash course in Maven+Neo

2008-04-28 Thread Philip Jägenstedt
t; > The latest version of the is 1.3.1 I think, but unfortunately the company > > hosting the original PDF has been purchased and the old link doesn't work > > any more (http://www.devzuz.com/web/guest/products/resources#BBWM). > > > > //Jonas > > > &

[Neo] Crash course in Maven+Neo

2008-04-28 Thread Philip Jägenstedt
I think it would be a good idea to provide an example pom.xml on the wiki which gets the neo dependecies and shows how to include those with packaging. I'm trying to figure out how to build a project and then run it, a not so easy task in the jungle that is http://maven.apache.org/guides/introduct

Compiling with Java 1.5 pom.xml (Was: [Neo] Maturity of Python bindings?)

2008-04-28 Thread Philip Jägenstedt
On 4/28/08, Emil Eifrem <[EMAIL PROTECTED]> wrote: > You probably want to put it into a file RelTypes.java, which looks like: That was my first attempt, the class-wrapping was an attempt to get maven to compile. It turns out that I needed the following in my pom.xml org.apa

Re: [Neo] Maturity of Python bindings?

2008-04-28 Thread Philip Jägenstedt
It actually does compile with javac, it's just maven that isn't happy about it. Philip On 4/28/08, Philip Jägenstedt <[EMAIL PROTECTED]> wrote: > While I've been keeping the Java door open (and gotten a bit enamoured > with it) I am still interested. Maybe I'll e

Re: [Neo] Maturity of Python bindings?

2008-04-28 Thread Philip Jägenstedt
re is a > > copy of that e-mail. > > > > > > -- Forwarded message -- > > From: Tobias Ivarsson <[EMAIL PROTECTED]> > > Date: Wed, Apr 23, 2008 at 1:35 PM > > Subject: Re: [Neo] Maturity of Python bindings? > > To: Neo use

Re: [Neo] Mapping UUID to Neo node

2008-04-27 Thread Philip Jägenstedt
> wrote: > On Sun, Apr 27, 2008 at 9:59 AM, Philip Jägenstedt <[EMAIL PROTECTED]> wrote: > > > What are my options? http://wiki.neo4j.org/content/Design_Guide#Search > > assumes that I know what Maven is and want to use it. I've found > > http://comp

Re: [Neo] EmbeddedNeo implements NeoService

2008-04-27 Thread Philip Jägenstedt
OK, updated the wiki for you... Philip On 4/28/08, Emil Eifrem <[EMAIL PROTECTED]> wrote: > On Mon, Apr 28, 2008 at 1:47 AM, Philip Jägenstedt <[EMAIL PROTECTED]> wrote: > > I'm back with a more philosophical question. > > > Hey Philip, > > I'm

[Neo] EmbeddedNeo implements NeoService

2008-04-27 Thread Philip Jägenstedt
I'm back with a more philosophical question. http://wiki.neo4j.org/content/One_Minute_Guide_Complete_Code declares NeoService neo = new EmbeddedNeo("var/base"); The super-awsome (really) http://wiki.neo4j.org/content/Design_Guide consistently uses EmbeddedNeo. When writing code, which ought I us

Re: [Neo] Re: Neo shell problems...

2008-04-27 Thread Philip Jägenstedt
java which does > roughly what you have in the NeoTest code). Not sure why this has to > be there, what was the error you got without doing that? > > WDYT? > > > /peter > > > On Sun, Apr 27, 2008 at 9:24 PM, Philip Jägenstedt <[EMAIL PROTECTED]> wrote: >

[Neo] Re: Neo shell problems...

2008-04-27 Thread Philip Jägenstedt
instructions for "Running the shell client without an externally running neo service" are also broken. Philip On 4/27/08, Philip Jägenstedt <[EMAIL PROTECTED]> wrote: > OK, > > Frustration was running hight just now, so before anyone answers: > > I'm not

[Neo] Re: Neo shell problems...

2008-04-27 Thread Philip Jägenstedt
ly (something about a timeout loop and a shutdown signal?) so adding that to the example code would be helpful. Philip On 4/27/08, Philip Jägenstedt <[EMAIL PROTECTED]> wrote: > Greetings. > > Concerning http://wiki.neo4j.org/content/Neo_Shell_Guide > > This document is v

[Neo] Neo shell problems...

2008-04-27 Thread Philip Jägenstedt
Greetings. Concerning http://wiki.neo4j.org/content/Neo_Shell_Guide This document is very difficult to understand for me as someone who has just studied a Java course on university level and written a few smaller things. I just can't get it working. The two lines of code I get are NeoService ne

[Neo] Mapping UUID to Neo node

2008-04-27 Thread Philip Jägenstedt
Hi again! I've hit my head against the Java wall for a while, and then some again with Python. What I'm doing is basically map to put MusicBrainz data (artist MEMBER_OF band, album MASTERED_BY artist, etc) into Neo. I don't need an index for searching, as MusicBrainz already has an XML webservice

[Neo] Community building in the wiki!

2008-04-23 Thread Philip Jägenstedt
Just kidding, it's just me. Since you do have a wiki, I'm leaving comments on some things on the Talk pages, so I hope that there is someone who actually checks these from time to time. Philip ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j

[Neo] Maturity of Python bindings?

2008-04-23 Thread Philip Jägenstedt
expect to bump into problems that take a week to fix (thus missing my deadline)? Philip Jägenstedt ___ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user