Re: [Neo4j] Cannot build neo4j-cypher-plugin

2011-06-13 Thread Super Wang
Here's the result: [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.neo4j:neo4j-cypher:jar:1.4-SNAPSHOT [WARNING] 'parent.relativePath' points at org.neo4j.build:community-build instead of org.neo4j:parent-central,

Re: [Neo4j] Cannot build neo4j-cypher-plugin

2011-06-13 Thread Super Wang
My mistake, it's neo4j-cypher-plugin, not neo4j-cypher. But my neo4j-cypher project reports errors in eclipse IDE, it looks like it requires some scala classes in java classes, and eclipse cannot handle this. org.neo4j.server.webadmin.console.CypherSession org.neo4j.shell.kernel.apps.Start have

Re: [Neo4j] Traversals versus Indexing

2011-06-13 Thread Craig Taverner
Think of your domain model graph as a kind of index. Traversing that should generally be faster than a generic index like lucene. Of course some things do not graph well, and you should use lucene for those. But if you can find something with a graph traversal, that is likely the way to go. Also

Re: [Neo4j] Cannot build neo4j-cypher-plugin

2011-06-13 Thread Peter Neubauer
Super, you need to install http://www.assembla.com/wiki/show/scala-ide or similar if you want to have Scala support in Eclipse. Otherwise, it seems maven is handling things correctly now? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975

Re: [Neo4j] Interesting Neo4J design question...unidirectional relationships

2011-06-13 Thread Johan Svensson
You could modify the structure of how the collection is stored so there are several chains that can be updated in parallel for each collection. Kind of how ConcurrentHashMap works with several locks. -Johan On Fri, Jun 10, 2011 at 12:16 AM, Rick Bullotta rick.bullo...@thingworx.com wrote: We

[Neo4j] getAllRelationships() function

2011-06-13 Thread Aniceto Perez
Hi I've been testing neo4j by creating a graph with +3M nodes and +3M relationships on an Embedded database. I commited tx after 2K nodes and 2k relationships, but finally I got out of permgen space. It was a crash test, so it didn't matter. Every node and relationship had one indexed

Re: [Neo4j] How to embed neo4j to OSGI env without spring?

2011-06-13 Thread Peter Neubauer
Nicolas, thanks for looking into this! If you only move the LuceneDataSource into an exported package, for instance org.neo4j.index.lucene, and export it, would that be sufficient to get the registration done? I don't want to force OSGi upon all Index provider bundles (yet) and keep the impact of

Re: [Neo4j] getAllRelationships() function

2011-06-13 Thread Michael Hunger
If you iterate through all nodes and get all relationships in only ONE direction e.g. OUTGOING you get every relationship only once. So this is just a three liner. Michael Sent from my iBrick4 Am 13.06.2011 um 10:14 schrieb Aniceto Perez ape...@innovasoftps.com: Hi I've been testing

Re: [Neo4j] How to embed neo4j to OSGI env without spring?

2011-06-13 Thread Nicolas Jouanin
Hi Peter, As shown below, exporting the implementation package is enough to make the IndexProvider registered as OSGi service (see first line of dump). Now an exception comes later when registering the index. I guess this come from the fact that you register a service of class IndexProvider

Re: [Neo4j] How do I get the server plugin examples to work?

2011-06-13 Thread Jim Webber
Hi Boris, You need to build these plugins against the server-api package: dependency groupIdorg.neo4j/groupId artifactIdserver-api/artifactId version1.4.M04/version /dependency Once they're built, you just drop the jars in the $NEO4J_HOME/plugins directory. Note that the jar file

[Neo4j] BatchInserter improvement with 1.4M04 but still got relationship building bottleneck [was Re: Speeding up initial import of graph...]

2011-06-13 Thread Paul Bandler
Having noticed a mention in the 1.4M04 release notes that: Also, the BatchInserterIndex now keeps its memory usage in-check with batched commits of indexed data using a configurable batch commit size. I re-ran this test using M04 and sure enough, node creation no longer eats up the heap

[Neo4j] Neo4J-collections... In-graph Timeline index, again

2011-06-13 Thread Niels Hoogeveen
As one of the legacy users of the in-graph Timeline index, I have concern over the future of this component. Right now the in-graph Timeline index is part of the component neo4j-index, which also contains the legacy Lucene index. This component has a dependency on Lucene 3.0.1, while Neo4J 1.4

Re: [Neo4j] BatchInserter improvement with 1.4M04 but still got relationship building bottleneck [was Re: Speeding up initial import of graph...]

2011-06-13 Thread Michael Hunger
Paul, can you share your test and the CompactIndex you wrote? That would be great. Also the memory settings (Xmx) you used for the different runs. Thanks so much Michael Am 13.06.2011 um 14:15 schrieb Paul Bandler: Having noticed a mention in the 1.4M04 release notes that: Also, the

Re: [Neo4j] Neo4J-collections... In-graph Timeline index, again

2011-06-13 Thread Peter Neubauer
Niels, taht sounds like a great suggestion. I just talked to Johan about supporting in-graph indexing structures in the indexing framework. Also, the whole Neo4j-Spatial index is essentially an in-graph indexing structure. So, I would suggest that we put a component with in-graph simple indexing

Re: [Neo4j] BatchInserter improvement with 1.4M04 but still got relationship building bottleneck [was Re: Speeding up initial import of graph...]

2011-06-13 Thread Paul Bandler
can you share your test and the CompactIndex you wrote? That would be great. See below... Also the memory settings (Xmx) you used for the different runs. The heap size is displayed by neo4j is it not with console entries such as:- Physical mem: 1535MB, Heap size: 1016MB So that one

Re: [Neo4j] Neo4J-collections... In-graph Timeline index, again

2011-06-13 Thread Niels Hoogeveen
Hi Peter, Thanks for the positive feed back. I think it would be best to call this component Neo4J-collections, or something to that extent, so data structures more constrained than a property graph can be maintained. The BTree (Timeline index) is one such example, the RTree from the

Re: [Neo4j] Neo4J-collections... In-graph Timeline index, again

2011-06-13 Thread Peter Neubauer
Niels, the old CLA is still valid, great to get this going! 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] Is Neo4j's New Cypher Query Language Related to Gremlin?

2011-06-13 Thread noppanit
Could I use Cypher as a command-line query language like Gremlin? It would be massively helpful if I just want to try some stuff in command-line and not implement a whole method or class for just that. Just a thought. :) Cheers -- View this message in context:

Re: [Neo4j] Is Neo4j's New Cypher Query Language Related to Gremlin?

2011-06-13 Thread Peter Neubauer
Hi there, last Friday I added support for Cypher in the Neo4j Shell, and an example in the docs, see http://docs.neo4j.org/chunked/snapshot/sampleshell-session.html Feel free to download a SNAPSHOT, test it out and report back! Cheers, /peter neubauer GTalk:      neubauer.peter Skype      

Re: [Neo4j] Is Neo4j's New Cypher Query Language Related to Gremlin?

2011-06-13 Thread Anders Nawroth
The next time the build server builds the documentation, the URL will be changed to: http://docs.neo4j.org/chunked/snapshot/shell-sample-session.html /anders On 06/13/2011 04:02 PM, Peter Neubauer wrote: Hi there, last Friday I added support for Cypher in the Neo4j Shell, and an example in

Re: [Neo4j] Is Neo4j's New Cypher Query Language Related to Gremlin?

2011-06-13 Thread noppanit
Hi!, Thanks for the reply. I may sound wired, but where can I get the plugin. I'm using embedded neo4j with spring atm. Cheers, -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Re-Neo4j-Is-Neo4j-s-New-Cypher-Query-Language-Related-to-Gremlin-tp3050976p3059126.html

Re: [Neo4j] Is Neo4j's New Cypher Query Language Related to Gremlin?

2011-06-13 Thread Peter Neubauer
Hi there, using it in Java is just including the neo4j pom, and then doing something along the lines of http://docs.neo4j.org/chunked/snapshot/cypher-query-lang.html, see the Java example. Also, live code is at

Re: [Neo4j] Is Neo4j's New Cypher Query Language Related to Gremlin?

2011-06-13 Thread Anders Nawroth
Hi! Here's the updated shell jar file: http://m2.neo4j.org/snapshots/org/neo4j/neo4j-shell/1.4-SNAPSHOT/neo4j-shell-1.4-SNAPSHOT.jar Or if you're using some dependency manager, make sure to include org.neo4j:neo4j-shell:1.4-SNAPSHOT and the http://m2.neo4j.org/snapshots/ snapshot repository.

Re: [Neo4j] Neo4J-collections... In-graph Timeline index, again

2011-06-13 Thread Peter Neubauer
Tada, initialized at https://github.com/peterneubauer/graph-collections, feel free to fork and start adding tests, I can then add documentation so eventually this can end up in the manual, if we can get it to that state! Cheers, /peter neubauer GTalk:      neubauer.peter Skype      

Re: [Neo4j] Neo4J-collections... In-graph Timeline index, again

2011-06-13 Thread Marko Rodriguez
Cool! On Jun 13, 2011, at 9:22 AM, Peter Neubauer wrote: Tada, initialized at https://github.com/peterneubauer/graph-collections, feel free to fork and start adding tests, I can then add documentation so eventually this can end up in the manual, if we can get it to that state! Cheers,

[Neo4j] Graph Minicamp

2011-06-13 Thread Andreas Kollegger
Good Monday Graphistas, Marko Rodriguez and I will be conducting a Graph Minicamp in Palo Alto next week June 22. It will be a 2+ hour workshop on graph algorithms and modeling with Neo4j and Gremlin. This will be a great introductory workshop if you're just getting started, but also of

Re: [Neo4j] The node which id is zero (0)

2011-06-13 Thread noppanit
Basically, it's just a root node. Every graph needs to have a reference node or root node to start with. So, it's just a starting point to your graph. Did I answer your question? Sent from my BlackBerry® wireless device -Original Message- From: Lmhelp [via Neo4J User List]

[Neo4j] Online Backup to local disk

2011-06-13 Thread Rick Bullotta
How can we use online backup in Neo4J to do a hot backup to another local disk? It seems that the only way to instantiate the OnlineBackup class is something like: OnlineBackup.from(localhost), but that would seem to imply that it will be doing network communications to do the backup, vs just

Re: [Neo4j] Neo4J-collections... In-graph Timeline index, again

2011-06-13 Thread Michael Hunger
AFAIK Andreas Kollegger wanted to take care of migrating the in graph collection representations from neo4j-util to github. This new repo is a great place to get the development going on those topics. Great that you pushed it Niels. Michael Sent from my iBrick4 Am 13.06.2011 um 18:36

[Neo4j] Check if node exists in Neo4J index + possible bug in the remove function

2011-06-13 Thread Rick Bullotta
Hi, all. A couple index framework questions: 1) There does not seem to be a built-in API call to determine whether or not a node exists in a specific IndexNode. After looking into the index structures with Luke (the must-have tool for anyone working with Lucene), it appears that each

Re: [Neo4j] Neo4J-collections... In-graph Timeline index, again

2011-06-13 Thread Peter Neubauer
Niels, Best would be to fork the project on Github into your account, make the changes and send me a pull request. Would that work? Sent from my phone. On Jun 13, 2011 10:09 PM, Niels Hoogeveen pd_aficion...@hotmail.com wrote: Hi Peter, I don't know how we are going to deal with SCM, so I am

Re: [Neo4j] Neo4J-collections... In-graph Timeline index, again

2011-06-13 Thread Peter Neubauer
Guys, I actually created the first version under Neo4j, but this is brand new packaging, so I want to wait fro things to settle down before moving it into the neo4j repo, so we don't have a lot of lab project there. I will create a team and add you to it Niels and Michael, so you can push directly

Re: [Neo4j] Check if node exists in Neo4J index + possible bug in the remove function

2011-06-13 Thread Peter Neubauer
Rick, good finds! Mattias is back from vacation next week, meanwhile, I will keep this open in order to ask him and get back here. Chris, do you have any info on this? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn  

Re: [Neo4j] Cannot change node with neo4j-shell

2011-06-13 Thread Peter Neubauer
All, this is almost working, I just need to make sure the PWD command can cope with parts of the history stack being deleted, will talk to Mattias about it when he gets back from vacation. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975

Re: [Neo4j] Neo4J-collections... In-graph Timeline index, again

2011-06-13 Thread Niels Hoogeveen
Sounds like a good solution. I will reaquaint myself with Git tomorrow (haven't used it in a year) and then add the test case and the bugfix i sent. Niels From: peter.neuba...@neotechnology.com Date: Mon, 13 Jun 2011 22:53:42 +0200 To: user@lists.neo4j.org Subject: Re: [Neo4j]

[Neo4j] Query Number of Nodes with Property Filter

2011-06-13 Thread Romiko Derbynew
Hi, I would like to write a Gremlin Query via the Gremlin Rest plugin to count the number of Nodes with a certain property. Some pseudo code: g.aidx-agency-key('key','agency').count() So, my questions are. How do I create the automatic index initially through the gremlin rest plugin or rest

Re: [Neo4j] Query Number of Nodes with Property Filter

2011-06-13 Thread Marko Rodriguez
Hi, I would like to write a Gremlin Query via the Gremlin Rest plugin to count the number of Nodes with a certain property. Some pseudo code: g.aidx-agency-key('key','agency').count() So, my questions are. How do I create the automatic index initially through the gremlin rest plugin