Re: [Neo4j] Which version of neo4j does spring data graph project use ?

2011-06-14 Thread Michael Hunger
Sorry, mixed up the threads on the iphone :( Will post an SDG update right ahead. Michael Am 15.06.2011 um 05:42 schrieb Vipul Gupta: > Michael, > > I don't see anything released on maven repo yet? > Please update. > > -VIpul > > On Fri, Jun 10, 2011 at 3:40 PM, Michael Hunger > wrote: >> Wa

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

2011-06-14 Thread Michael Hunger
Tatham, you domain model sounds good. So you should do both things. First try to use connected graphs for the agencies and try to traverse from the agency node. If you need to do index lookups you should always use queries that add the agency key (which is in the session) to the lucene query (u

Re: [Neo4j] Extent of Indexing

2011-06-14 Thread Peter Neubauer
Aman, I think to start with, you probably want to set up indexing on only the interesting aspects of your CMS and documents, not everything. Normally, that leads to a much slimmer storage, and better speed in mutating operations. Given 50K users, the question is how much index-relevant content the

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

2011-06-14 Thread Peter Neubauer
Nicolas, I think you could just make another branch, or rename the master branch to something else. Then, you could set up a new master and let it track the original master? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http:/

Re: [Neo4j] Cannot find a path

2011-06-14 Thread Peter Neubauer
Josh, the docs are now at http://docs.neo4j.org/chunked/snapshot/rest-api-graph-algos.html Let me know if you want to see more, I am planning to put in an example of Dijkstra, too. Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn 

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

2011-06-14 Thread Tatham Oddie
... and the context of the original question was to ensure that agency keys are unique when creating them. -- Tatham -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Tatham Oddie Sent: Wednesday, 15 June 2011 3:35 PM To: Neo4j us

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

2011-06-14 Thread Tatham Oddie
We're building a client and case management system for social work agencies. It will be a multitenant system, hosting multiple agencies. Agencies have a name "Acme Agency Australia" and a key "acme" that is used in places like URLs (http://thesystem.org/acme). Users are scoped to agencies. User

Re: [Neo4j] Which version of neo4j does spring data graph project use ?

2011-06-14 Thread Michael Hunger
#1 is what thomas and I are working on first w/ jruby for the heroku deployment if all works well next week with genersl scripting language support don't know if we ever go the java jar upload approch (b/c of redeployment/classloader leak issues) couchbase java view servers for instance allow tha

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

2011-06-14 Thread Michael Hunger
just describe your domain and your use-cases for usage and the graph model you developed and we can discuss it. Michael Sent from my iBrick4 Am 15.06.2011 um 02:43 schrieb Tatham Oddie : > Hi Michael, > > (Warning: graph db n00b disclaimer still applies) > > Category nodes are an interestin

Re: [Neo4j] Which version of neo4j does spring data graph project use ?

2011-06-14 Thread Vipul Gupta
Michael, I don't see anything released on maven repo yet? Please update. -VIpul On Fri, Jun 10, 2011 at 3:40 PM, Michael Hunger wrote: > Wait for our spring data graph 1.1.0.M1 release on Monday :) > > it will be updated to Neo4j 1.4.M04 > > Cheers > > Michael > > Am 10.06.2011 um 11:55 schrieb

[Neo4j] Invitation to connect on LinkedIn

2011-06-14 Thread Erdenezul Batmunkh via LinkedIn
LinkedIn Erdenezul Batmunkh requested to add you as a connection on LinkedIn: -- Craig, I'd like to add you to my professional network on LinkedIn. - Erdenezul Accept invitation from Erdenezul Batmunkh http://www.linkedin.com/e/5gy

Re: [Neo4j] Cannot find a path

2011-06-14 Thread Josh Adell
Thank you, Peter, that was exactly it. Yeah, I didn't realize that the max depth defaulted to 1. For now, I guess the library I'm writing will have to support "max depth" and "max_depth" since I won't always know what version it will be running against. Thanks again, Josh Adel Message: 4 > Date

Re: [Neo4j] Archiving in time / being able to quickly refer to a historical state

2011-06-14 Thread Patrik Sundberg
On 14 Jun 2011, at 22:51, Michael Hunger wrote: > Patrick, > > David Montag created a versioned graph approach on github: > https://github.com/dmontag/neo4j-versioning > > Perhaps you can take some inspiration from that. I'll take a look, thanks. > Otherwise: > Books and Elements are nodes, ef

Re: [Neo4j] Archiving in time / being able to quickly refer to a historical state

2011-06-14 Thread Patrik Sundberg
Yes, the archive is a roll up of effects. And it's mostly for efficiency, so that one does not have to go through all the millions of effects to get the state of a given point in time but can start from a known state and just add 10s of thousands of effects between archive times. On 14 Jun 2011, a

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

2011-06-14 Thread Romiko Derbynew
Thank you for the response. Indeed for now we doing this, and perhaps will take the advice to have category nodes. var gremlinQuery = @"g.V.outE[[label:'HOSTS']].inV[['Key':'ACME']]"; Again, much appreciated for the tips. Romiko -Original Message- From: user-boun...@lists.neo4j.org [mai

Re: [Neo4j] Bug in Lucene Timeline Index (all versions, I think)

2011-06-14 Thread Peter Neubauer
Rick, could create a test case and fix it exactly as you suggested, https://github.com/neo4j/community/commit/807d5f7df51b91150fe4349108c3f34af871b6b4 Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn   http://www.linkedin.com/in/ne

Re: [Neo4j] Auto Indexing for Neo4j

2011-06-14 Thread Michael Hunger
A problem with a "probably dumb" index in a graph that I created for an experiment was the performance of getAllRelationships on that machine (it was a very large graph with all nodes being indexed). It was a mapping from long values to nodes, my simplistic approach just chopped the long values

Re: [Neo4j] Bug in Lucene Timeline Index (all versions, I think)

2011-06-14 Thread Peter Neubauer
Rick, created a ticket for it, will try to write a testcase for it tomorrow and track it. We are testing Lighthouse for tickets, see http://neo4jdb.lighthouseapp.com/projects/77609-neo4j-community/tickets/8-make-querying-before-1970-in-lucene-timeline-possible Cheers, /peter neubauer GTalk:     

Re: [Neo4j] Archiving in time / being able to quickly refer to a historical state

2011-06-14 Thread Michael Hunger
Patrick, David Montag created a versioned graph approach on github: https://github.com/dmontag/neo4j-versioning Perhaps you can take some inspiration from that. Otherwise: Books and Elements are nodes, effects would be relationships which have a timestamp (probably indexed). The relationship

Re: [Neo4j] Auto Indexing for Neo4j

2011-06-14 Thread Peter Neubauer
Craig, the autoindexing is one step in this direction. The other is to enable the Spatial and other in-graph indexes like the graph-collections (timeline etc) at all to be treated like normal index providers. When that is done (will talk to Mattias who is coming back from vacation tomorrow on that)

Re: [Neo4j] Auto Indexing for Neo4j

2011-06-14 Thread Peter Neubauer
Yes, configuration and indexing via REST is the next step for this. 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] BatchInserter improvement with 1.4M04 but still got relationship building bottleneck [was Re: Speeding up initial import of graph...]

2011-06-14 Thread Michael Hunger
Paul, for profiling you can get trial versions of the common profilers like YourKit or JProfiler, or even cheaper use JRockit with the integrated MissionControl from Oracle. for memory analysis the eclipse memory analyzer (MAT) is very useful. I think disk latency plays a big role here if the n

Re: [Neo4j] Archiving in time / being able to quickly refer to a historical state

2011-06-14 Thread McKinley
Can you describe what you mean by archiving the state of the book each day? It seems that you have a transactional system with your effects and an archive at a point in time just seems like the range of effects by date. Is an archive a roll-up of the effects for efficiency or backup? Cheers, McKi

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

2011-06-14 Thread Nicolas Jouanin
Hi Peter (and others), May be you can help me with github... I'dl like to work on this superbundle using the last version of neo4j-community. The problem is that i've already forked this repo for my previous work and now I can't fork it anymore. Also, i've made my modifications on the master br

Re: [Neo4j] Archiving in time / being able to quickly refer to a historical state

2011-06-14 Thread Patrik Sundberg
I should probably put in some estimates of the sort of orders of magnitude of data involved: Books are in the 100s Effects are in the 10,000s / day Elements are in the 100s / Book On Tue, Jun 14, 2011 at 8:07 PM, Patrik Sundberg wrote: > Hi, > > Design question: > I have a Book. A book has Elemen

[Neo4j] Archiving in time / being able to quickly refer to a historical state

2011-06-14 Thread Patrik Sundberg
Hi, Design question: I have a Book. A book has Elements. To change what Elements are in a Book there are Effects. An Effect adds or deletes an element from a Book (and has other info). Everyday I archive the state of a Book so that I can easily get the state of the Book (it's Elements) at a histor

[Neo4j] Bug in Lucene Timeline Index (all versions, I think)

2011-06-14 Thread Rick Bullotta
If no lower bound is provided on a LuceneTimeline query, a default value of 0L is used. This will not allow querying of values prior to January 1st, 1970. Perhaps it should be -Long.MAX_VALUE instead? ___ Neo4j mailing list User@lists.neo4j.org https

Re: [Neo4j] Auto Indexing for Neo4j

2011-06-14 Thread Aseem Kishore
Awesome to hear, and great work! Will we be able to configure+use this from the REST API? Cheers, Aseem On Tue, Jun 14, 2011 at 8:30 AM, Chris Gioran < chris.gio...@neotechnology.com> wrote: > Good news everyone, > > A request that's often come up on the mailing list is a mechanism for > automat

[Neo4j] Extent of Indexing

2011-06-14 Thread Aman
I've been working on a project (a CMS) that would require a lot of indexing as it would manage user generated content (mostly strings). Could I get some suggestions on what is the extent of indexing that can be useful in a typical CMS which could have a fair use by about 5 people? And how does

Re: [Neo4j] Cannot execute Cypher

2011-06-14 Thread Andres Taylor
Hi again Pierre, By looking at the code, I'm going to guess that you might have some other Scala things loaded in your server, and they are pulling in a different version of the Scala-libs. Could that be the case? Andrés On Tue, Jun 14, 2011 at 6:19 PM, Pierre De Wilde wrote: > Hi Andrés, > > F

Re: [Neo4j] Cannot execute Cypher

2011-06-14 Thread Andres Taylor
No, this is executed through the console. No problem there. On Tue, Jun 14, 2011 at 6:27 PM, noppanit wrote: > I think it might be you're mixing org.neo4j.cypher.javacompat and > org.neo4j.cypher together? > > -- > View this message in context: > http://neo4j-user-list.438527.n3.nabble.com/Neo4j

Re: [Neo4j] Cannot execute Cypher

2011-06-14 Thread noppanit
I think it might be you're mixing org.neo4j.cypher.javacompat and org.neo4j.cypher together? -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Neo4j-Cannot-execute-Cypher-tp3063669p3063697.html Sent from the Neo4J User List mailing list archive at Nabble.com. _

[Neo4j] Cannot execute Cypher

2011-06-14 Thread Pierre De Wilde
Hi Andrés, >From data/log: java.lang.IncompatibleClassChangeError: Class scala.collection.mutable.HashMap$$anon$1 does not implement the requested interface scala.collection.generic.Addable at org.neo4j.cypher.SymbolTable.identifiers(SymbolTable.scala:130) at org.neo4j.cypher.SymbolTable.checkCon

Re: [Neo4j] Auto Indexing for Neo4j

2011-06-14 Thread Craig Taverner
This is great news. Now I'm really curious about the next step, and that is allowing indexes other than lucene. For example, the RTree index in neo4j-spatial was never possible to wrap behind the normal index API, because that was designed only for properties of nodes (and relationships), but the

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

2011-06-14 Thread Michael Hunger
you can use category nodes to connect nodes of a certain type to. then you can count the nodes using a traversal you dont have to go via an index to do things like that Sent from my iBrick4 Am 14.06.2011 um 17:10 schrieb Marko Rodriguez : > Hi, > >> Is it possible that when we create the Au

[Neo4j] Auto Indexing for Neo4j

2011-06-14 Thread Chris Gioran
Good news everyone, A request that's often come up on the mailing list is a mechanism for automatically indexing properties of nodes and relationships. As of today's SNAPSHOT, auto-indexing is part of Neo4j which means nodes and relationships can now be indexed based on convention, requiring far

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

2011-06-14 Thread Marko Rodriguez
Hi, > Is it possible that when we create the Automatic Index, that we can filter it > on specific nodes? No. > Referring to the diagram below, we have a Node with a property _Type= > Agency. I would like to create an index (aidx-agency-key) based on Key but > only for the Nodes with _Type=Ag

Re: [Neo4j] Problems binding to a specific ip

2011-06-14 Thread Jim Webber
Hi Johan, We do have some security features in our backlog, but they are a low priority at the moment. If there's a push for such features here on the list, it'd be helpful so that we can understand the relative priorities for people in the community. Jim __

Re: [Neo4j] Problems binding to a specific ip

2011-06-14 Thread Johan Lundberg
Hello, Are there any plans to address the access control problem? I think that even when you can use iptables or similar to achieve the same end result, it would be nice to be able to set a bind address in the neo4j configuration. Also https would be a nice feature :) Br Johan On 2011-06-09 16.

Re: [Neo4j] Cannot find a path

2011-06-14 Thread Peter Neubauer
Josh, you need to spcify the "max depth" parameter for the algo, which defaults to 1 and thus is not gaining any results. I am pushing documentation on this, and I am changing this to "max_depth", but for the time being, it is something like "{\"to\": \"http://localhost:7474/db/data/node/"+data.g

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

2011-06-14 Thread noppanit
I guess it's my IntelliJ then. I could test in on mvn test, but it couldn't find some method in IntelliJ. Thanks :) And I took out the graph matching dependency already. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Re-Neo4j-Is-Neo4j-s-New-Cypher-Query-Language-R

Re: [Neo4j] Cannot execute Cypher

2011-06-14 Thread Andres Taylor
Hi Pierre, On Tue, Jun 14, 2011 at 1:48 PM, Pierre De Wilde wrote: > > >start n=(1) return n > > > > Nothing is returned... Could you look in the logs for any clues? They are in /data/log Andrés ___ Neo4j mailing list User@lists.neo4j.org https://list

Re: [Neo4j] WebAdmin executing bad requests

2011-06-14 Thread Jim Webber
Hey Tatham, Existentially the app is right :-( I'll get the docs cleaned up until such point that the config code can cope better with that. Jim PS - this problem still exists in 1.4 M04 On 14 Jun 2011, at 14:54, Tatham Oddie wrote: > Thanks Jim. > > I used full paths as that's what is docu

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

2011-06-14 Thread Andres Taylor
Hi there, You are using an old version of graph-matching. You should not have to depend on graph-matching. Just depend on cypher, and it will pull the correct version of graph-matching. If you want to depend on graph-matching explicitly, make sure you depend on either 1.4.M04, or 1.4-SNAPSHOT.

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

2011-06-14 Thread noppanit
Hi After I run the example from http://docs.neo4j.org/chunked/snapshot/cypher-query-lang.html I got this error. java.lang.NoSuchMethodError: org.neo4j.graphmatching.AbstractPatternObject.getLabel()Ljava/lang/String; Am I missing something here? Thanks :) I also have this included in my pom.xml I'

Re: [Neo4j] WebAdmin executing bad requests

2011-06-14 Thread Tatham Oddie
Thanks Jim. I used full paths as that's what is documented here: http://docs.neo4j.org/chunked/1.4.M03/server-configuration.html It states: Set the URI path for the REST data API through which the database is accessed. For non-local access, consider to put in the external hos

Re: [Neo4j] WebAdmin executing bad requests

2011-06-14 Thread Jim Webber
Hi Tatham, I can reproduce this behaviour using your config on Windows. And it turns out that using your config on Mac stops webadmin from starting in the browser at all! But if you use the config below (note the paths rather than full URIs for your webadmin and data endpoints) it'll work out

Re: [Neo4j] Indexing Strings vs Indexing Integers

2011-06-14 Thread Peter Hunsberger
Better for what? Speed & efficency, use integers. However, there are some use cases where an integer is not big enough... On Jun 14, 2011 7:47 AM, "Aman" wrote: Which one is better? and how? Indexing Strings or Indexing Integers? Please explain in a way that a newbie to indexing (like me) might

Re: [Neo4j] Cannot find a path

2011-06-14 Thread Peter Neubauer
Josh, working on it ... 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 performance graph database

Re: [Neo4j] Cannot find a path

2011-06-14 Thread Josh Adell
Hello all, sorry for the re-post, but I am still stuck. Does anyone have an idea about what I may be doing wrong, or is there any more information I can provide to help diagnose? Thanks! -- Josh Adell > -- > > Message: 6 > Date: Sun, 12 Jun 2011 14:17:17 -0400 > From

Re: [Neo4j] Indexing Strings vs Indexing Integers

2011-06-14 Thread Rick Bullotta
indexing integers almost certainly. Faster comparisons, less storage and disk IO, smaller memory footprint. - Reply message - From: "Aman" Date: Tue, Jun 14, 2011 7:47 am Subject: [Neo4j] Indexing Strings vs Indexing Integers To: "user@lists.neo4j.org" Which one is better? and how?

Re: [Neo4j] Cannot execute Cypher

2011-06-14 Thread Pierre De Wilde
Safari 5.0.5, Chrome 12.0.742.91, Firefox 4.0.1, Opera 11.11, ... Neo4j 1.4.M04, from webadmin console: Using Gremlin: gremlin>g.v(1).name ==> marko Using Cypher: >start n=(1) return n > Nothing is returned... Pierre 2011/6/12 Peter Neubauer > Mmh, > that is strange. Btw, the cypher conso

[Neo4j] Indexing Strings vs Indexing Integers

2011-06-14 Thread Aman
Which one is better? and how? Indexing Strings or Indexing Integers? Please explain in a way that a newbie to indexing (like me) might understand. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] Unexpected error

2011-06-14 Thread Johan Svensson
Hi, Looks like there was an OOME during commit but commit partially succeeded (removing the xid branch id association for the xa resource) causing the subsequent rollback call to fail. To guarantee consistency the kernel will block all mutating operations after this and a restart + recovery has to

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

2011-06-14 Thread Michael Hunger
Paul, I tried to use your implementation, it added quite a high performance penalty, when profiling it, it consumed 3/4 of the time for the relationship creation. The other time was spent in acquiring persistence windows for the node-store. I also profiled the version using the simple map. We f

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

2011-06-14 Thread Nicolas Jouanin
I'll work on this then and i'll let you know in the coming days. 2011/6/14 Peter Neubauer > Nicolas, > yes, after looking into the details involved, I think an "official" > superbundle with the core Neo4j components bundled and exported woudl > be the best way forward. Also, it would expose less

Re: [Neo4j] Does direction matter?

2011-06-14 Thread Anders Nawroth
Hi! Thanks for the suggestion! I'll try to add such a general section to the manual ASAP. /anders 2011-06-10 20:37, Aseem Kishore skrev: > Thanks McKinley! > > For what it's worth, we use Neo4j only via the REST API, so I tend not to > look at the Javadocs. It would be great to move some of thi

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

2011-06-14 Thread Peter Neubauer
Nicolas, yes, after looking into the details involved, I think an "official" superbundle with the core Neo4j components bundled and exported woudl be the best way forward. Also, it would expose less granular bundles into an OSGi environment. Other IndexProviders etc could be then inserted as fragm