Re: [Neo4j] Neo4jPHP batch insert benchmarks

2011-09-09 Thread Jacob Hansson
On Fri, Aug 26, 2011 at 2:46 PM, jadell wrote: > Jim, > > Fair enough. For now, I'll just know not to try and make batches that big > :-) My own use case is for the transaction safety rather than trying to > create thousands of entities at once, so it doesn't effect me that much. I > just wante

Re: [Neo4j] performance guide

2011-09-09 Thread Andreas Kollegger
Hi Linan, These are good questions. I am currently following a similar approach to characterizing the performance of basic graph operations, and then also simple graph algorithms on various "shapes" of graphs. My initial investigation is on small graphs on my laptop, but this weekend I'm testin

[Neo4j] performance guide

2011-09-09 Thread Linan Wang
hi, I once read a blog about how long it take for computation operations such as read from L1 cache, RAM access, send packet from usa to eu, etc. having a rough idea of the relative cost of major computation operations, we have better control. for example, in my project i also use property to store

[Neo4j] NODE_PATH Uniqueness in Neo4j traversals

2011-09-09 Thread Peter Neubauer
Hi folks, just commited some example code to show the use of Uniqueness.NODE_PATH in the Neo4j traversal framework in order to return paths that share nodes. http://docs.neo4j.org/chunked/snapshot/examples-uniqueness-of-paths-in-traversals.html Enjoy! Cheers, /peter neubauer GTalk:      neubau

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Peter Neubauer
Linan, yes, deep down Pipes are composing the pipeline out of iterators to the base API operations node.getRelationships() and relationship.getNodes() . The Neo4j traversal API is using callbacks instead. What you want to use depends on your taste :) Cheers, /peter neubauer GTalk:      neubauer.

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Linan Wang
Actually i'm fine with nesting multiple traversers to solve the problem if deep inside gremlin, evaluator and fluentPipeline are just nice constructs over the same solution. is it correct? thanks On Fri, Sep 9, 2011 at 7:03 PM, Linan Wang wrote: > Thanks! I really appreciate. i'll have a deeper l

Re: [Neo4j] Gremlin pipes broken in 1.5

2011-09-09 Thread Peter Neubauer
Xavier, this can well be a packaging problem. Could you try with 1.5.M01? The dependency problem is fixed, but we are fighting for the build pipeline to deliver a new snapshot of the final artifact. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704

Re: [Neo4j] Gremlin pipes broken in 1.5

2011-09-09 Thread Xavier Shay
On Fri, Sep 9, 2011 at 12:39 PM, Marko Rodriguez wrote: > Hi, > > This error seems to be an issue with depedencies. Are you using an > TinkerPop s in your project. I believe Neo4j 1.5.M01 is > depending on Blueprints 0.9 which does have the getInEdges(String...) method > (similarly for getOutEdges

Re: [Neo4j] Gremlin pipes broken in 1.5

2011-09-09 Thread Peter Neubauer
Yup, Don't upgrade dependencies right now before Gremlin 1.3 is out and can be tested with the Neo4j QA. /peter Sent from my phone. On Sep 9, 2011 9:39 PM, "espeed" wrote: > > Xavier Shay wrote: >> >> I have just upgraded to neo4j 1.5 (brew install neo4j --HEAD) and am >> getting >> the followin

Re: [Neo4j] Gremlin pipes broken in 1.5

2011-09-09 Thread espeed
Xavier Shay wrote: > > I have just upgraded to neo4j 1.5 (brew install neo4j --HEAD) and am > getting > the following exception whenever I try to use a pipe: >> curl -H Accept:application/json -X POST -d >> '{"script":"g.v(1)._().both;"}' > Hi Xavier - Gremlin and Pipes has been undergoing a m

Re: [Neo4j] Gremlin pipes broken in 1.5

2011-09-09 Thread Marko Rodriguez
Hi, This error seems to be an issue with depedencies. Are you using an TinkerPop s in your project. I believe Neo4j 1.5.M01 is depending on Blueprints 0.9 which does have the getInEdges(String...) method (similarly for getOutEdges(). Perhaps you are depending on Blueprints 0.8 somewhere in your

[Neo4j] Gremlin pipes broken in 1.5

2011-09-09 Thread Xavier Shay
Hello, I have just upgraded to neo4j 1.5 (brew install neo4j --HEAD) and am getting the following exception whenever I try to use a pipe: > curl -H Accept:application/json -X POST -d '{"script":"g.v(1)._().both;"}' -H Content-Type:application/json " http://localhost:7474/db/data/ext/GremlinPlugin/

[Neo4j] Neo4j Write Performance

2011-09-09 Thread espeed
Hi Guys - I have been working on loading WordNet (http://wordnet.princeton.edu/) into Neo4j, and have been using it as an opportunity to tune write performance on Linux for a Web application I am developing. My initial idea was to load WordNet RDF (http://semanticweb.cs.vu.nl/lod/wn30/) through

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Linan Wang
Thanks! I really appreciate. i'll have a deeper look at the FluentPipeline and Gremlin options later. Regarding using Evaluator in https://github.com/neo4j/community/blob/master/embedded-examples/src/test/java/org/neo4j/examples/orderedpath/OrderedPathTest.java my question: When the Evaluator.eval

Re: [Neo4j] except CypherParser have any other methods for paging query ?

2011-09-09 Thread Linan Wang
have you tried RelationshipIndex? RelationshipIndex idx = db.index().forRelationship("..."); idx.add(rel, "IS_A_FAN", 1); ... IndexHits hits = idx.get("IS_A_FAN", 1, null, theGuy); ... On Mon, Sep 5, 2011 at 7:16 AM, iamyuanlong wrote: > hi,everybody >   I use CypherParser to query one user's fan

Re: [Neo4j] except CypherParser have any other methods for paging query ?

2011-09-09 Thread Michael Hunger
Could you also describe the graph you're using or provide a generator and your cypher query. We can use that in the future for performance optimizations. Thanks Michael Am 05.09.2011 um 08:16 schrieb iamyuanlong: > hi,everybody > I use CypherParser to query one user's fans. > some code lik

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Peter Neubauer
That's right! Looking all forward to that! Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer http://www.neo4j.org               - Your high perfor

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Marko Rodriguez
Hey, > Hi Linan, > http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-traversal.html#_new_traversal_framework > has an example of an ordered path, does that help? The code for it is > at > https://github.com/neo4j/community/blob/master/embedded-examples/src/test/java/org/neo4j/example

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Peter Neubauer
Hi Linan, http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-traversal.html#_new_traversal_framework has an example of an ordered path, does that help? The code for it is at https://github.com/neo4j/community/blob/master/embedded-examples/src/test/java/org/neo4j/examples/orderedpath/Or

Re: [Neo4j] neo4j-spatial: geotools maven repo problem

2011-09-09 Thread Anders Nawroth
That sounds good to me. /anders 2011-09-09 16:55, Peter Neubauer skrev: > Well, > then for the time being, could we add > https://repo.neo4j.org/content/repositories/osgeo.org/ into the pom > until things work? > > Cheers, > > /peter neubauer > > GTalk: neubauer.peter > Skype peter.neu

Re: [Neo4j] neo4j-spatial: geotools maven repo problem

2011-09-09 Thread Peter Neubauer
Well, then for the time being, could we add https://repo.neo4j.org/content/repositories/osgeo.org/ into the pom until things work? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter     

Re: [Neo4j] neo4j-spatial: geotools maven repo problem

2011-09-09 Thread Anders Nawroth
Seems they are moving to Maven Central for new releases: http://www.geoapi.org/maven.html http://repo.opengeo.org unfortunately lacks 2.7-RC1 which is what neo4j-spatial currently depends on. If anyone is missing the files, we have a mirror set up here: https://repo.neo4j.org/content/repositorie

Re: [Neo4j] chain TraversalDescription?

2011-09-09 Thread Marko Rodriguez
Hi, I would do this using Gremlin as such: g.v(1).out('read').in('wrote').uniqueObject.out('pet').name If you are vertex 1 (g.v(1)), then you will go to the books you read, then to the authors of those books, then because you might have read two Stephen King boo

Re: [Neo4j] except CypherParser have any other methods for paging query ?

2011-09-09 Thread Peter Neubauer
Yuanlong, what is Webbench you are using? Is your graph warm in the caches? You are right that paging in Cypher is not implemented - you are issuing a new query every time. However, what is the timing you are experiencing if you do the query, but only return the first 10 results? Cheers, /peter

[Neo4j] chain TraversalDescription?

2011-09-09 Thread Linan Wang
Hi, say people read books, books are written by authors, authors has dogs, then how to reach the dogs of authors of books i've read? when i'm also a writer, also have dogs, the TraversalDescription seems inefficient since it'll also traverse my own books and dogs first, before my customised StopEv

Re: [Neo4j] neo4j-spatial: geotools maven repo problem

2011-09-09 Thread Anders Nawroth
Hi! According to this: http://geotoolsnews.blogspot.com/2010/09/geotools-maven-repository-reminder.html the new one should be for snapshots, but there's some releases in there as well. Need to taker a deeper look ... /anders 2011-09-09 14:52, Axel Morgner skrev: > Hi, > > today maven could not

Re: [Neo4j] getProperty() on deleted Node in TransactionEventHandler.beforeCommit()

2011-09-09 Thread Peter Neubauer
Thanks for sharing that you found the solution! I will put it onto the todo list for an example :) Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubaue

Re: [Neo4j] BatchInserter vs. BatchInserter.getGraphDbService()

2011-09-09 Thread Peter Neubauer
Marko, in principle, you can without much overhead. Be aware that you will run into problems, since some operations are not implemented (like indexing), and some that could be implemented (like change properties) are not, either. So, try it out, but remember - you have push rights to the repo, so f

Re: [Neo4j] neo4j-scala improvements

2011-09-09 Thread Peter Neubauer
Very cool Christopher! We are testing to pull in some of the bindings for Neo4j into the manual - would it be possible, when things stabilize, to pull in the Scala bindings to the Neo4j repo. build them and start documenting some test cases so we can put them into there, too? Cheers, /peter neub

Re: [Neo4j] neo4j-spatial: geotools maven repo problem

2011-09-09 Thread Peter Neubauer
Mmh true! Could you please monitor this? If it persists, we can change the repo URL. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer http://www.

[Neo4j] neo4j-spatial: geotools maven repo problem

2011-09-09 Thread Axel Morgner
Hi, today maven could not download dependencies for neo4j-spatial. It seemed that the repo osgeo Open Source Geospatial Foundation Repository http://download.osgeo.org/webdav/geotools/ is not accessible. If used

[Neo4j] TransactionFailureException

2011-09-09 Thread skarab77
Hi, I have the following problem: when my program crash in the middle of the transaction, I am not able to start my neo4j embedded store again. I get the following exception. Exception in thread "main" org.neo4j.graphdb.TransactionFailureException: Unable to start TM, no active tx log file fou

Re: [Neo4j] Neoclipse start question

2011-09-09 Thread Anders Nawroth
Hi! Use Search mode: Query with the value: * and I think you'll see all types listed. (index name + key like Michael wrote) /anders 2011-09-09 14:32, Vinicius Carvalho skrev: > Danke Michael, > > That solved the problem. Glad that I can see my graph now. > > Regards > > On Fri, Sep 9, 2011 at 1

Re: [Neo4j] Neoclipse start question

2011-09-09 Thread Vinicius Carvalho
Danke Michael, That solved the problem. Glad that I can see my graph now. Regards On Fri, Sep 9, 2011 at 12:16 PM, Michael Hunger < michael.hun...@neotechnology.com> wrote: > Spring Data Graph stores the type information in the graph. > > The default is to use indexes to store this information,

Re: [Neo4j] regarding supernode

2011-09-09 Thread Niels Hoogeveen
Peter, I'd gladly put out a piece of code demonstrating the use of IndexRelationships, using this "LIVES_IN" example. Though I get the impression the question here relates to the normal relationship index. However when "supernodes" (still don't like that term for densely connected nodes) come

Re: [Neo4j] regarding supernode

2011-09-09 Thread Peter Neubauer
That sounds perfect! Just make a fork on the graph-collections and let us know when it is in! Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer htt

Re: [Neo4j] Neo4j-Base sometimes falls

2011-09-09 Thread sometime
http://www.donskov.net/messages.rar 103 KB yesterday, 23.01 backup is not created and there is an error Error when server writing response java.io.FileNotFoundException: /home/sometime/neo4j-enterprise-1.4.1/data/graph.db/index/lucene/node/WMC_Users/_qiug.cfs (No such file or directory) and now th

Re: [Neo4j] Neo4j Write Test Compile Error

2011-09-09 Thread Peter Neubauer
james, if you find that code useful, maybe we could bring it to GIThub. since SVN is retired ... Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer

Re: [Neo4j] Neo4j-Base sometimes falls

2011-09-09 Thread Michael Hunger
Could you share the content of the mesages.log file in the database directory ? Also do you sometimes kill the neo4j instance abruptly with kill -9 or similar ? That can cause corruptions of some lucene files ? Thanks Michael Am 09.09.2011 um 13:07 schrieb sometime: > again the same error...

Re: [Neo4j] Neoclipse start question

2011-09-09 Thread Michael Hunger
Spring Data Graph stores the type information in the graph. The default is to use indexes to store this information, but it can also be stored as type-nodes with relationships to all instances. The current neoclipse supports index lookups, so please try the following: the index name is: __types

Re: [Neo4j] Neo4j-Base sometimes falls

2011-09-09 Thread sometime
again the same error... any idea? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Base-sometimes-falls-tp3310617p3322576.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. __

[Neo4j] Neoclipse start question

2011-09-09 Thread Vinicius Carvalho
Hi. I'm just starting with neo4j, doing some pocs and investigation. I'm using spring data to persist my data. And so far I was able to both persist and load data from the db (from my unit tests anyway) I've added a few nodes (250) and also created some relations. But, when opening the neoclipse

Re: [Neo4j] regarding supernode

2011-09-09 Thread Linan Wang
how about i put the codes onto github and you guys can comment and modify it. then include the project as a sample? On Fri, Sep 9, 2011 at 8:58 AM, Peter Neubauer wrote: > Linan, > I think your example would be great for doing a JUnit test showing > this. Niels, could you do that, plz? In tha

Re: [Neo4j] Blocking access to the Neo4j web admin interface

2011-09-09 Thread Peter Neubauer
Thanks, on it! Will add a setting in the config files, too. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/neubauer Twitter      http://twitter.com/peterneubauer http://www.neo4j.org               -

Re: [Neo4j] regarding supernode

2011-09-09 Thread Peter Neubauer
Linan, I think your example would be great for doing a JUnit test showing this. Niels, could you do that, plz? In that case, I can add a graph and exaplanations to it. /peter On Thu, Sep 8, 2011 at 11:25 PM, Linan Wang wrote: > On Wed, Sep 7, 2011 at 5:21 PM, Linan Wang wrote: >> hi, >> I d