Re: [Neo4j] Unexpected error

2011-06-16 Thread Massimo Lusetti
On Tue, Jun 14, 2011 at 12:56 PM, Johan Svensson jo...@neotechnology.com wrote: 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

Re: [Neo4j] Plugin for REST server not appearing

2011-06-16 Thread Milena Araujo
The source for the plugin: http://pastebin.com/hWs7NSqd And the log message: http://pastebin.com/JrSpxgpp It only says that failed to mount the plugin, but do not say why. Thanks. Milena. On Wed, Jun 15, 2011 at 7:08 PM, Michael Hunger michael.hun...@neotechnology.com wrote: I agree with

[Neo4j] Transaction API docs

2011-06-16 Thread Massimo Lusetti
From http://components.neo4j.org/neo4j/1.4.M04/apidocs/org/neo4j/graphdb/Transaction.html I read: ... Read operations inside of a transaction will also read uncommitted data from the same transaction. So does my understanding that if I create a Node or a Relationship and then add it to an

Re: [Neo4j] traversing backwards to reference node

2011-06-16 Thread Mattias Persson
2011/6/12 Marko Rodriguez okramma...@gmail.com Hi, In Gremlin (http://gremlin.tinkerpop.com), you can do: startSet = [ ... ] // fill an array/set with leaves. startSet.in.sideEffect{it.myProperty = 'blah'}.loop(2){true} In this code, it assumes no cycles in the graph and

Re: [Neo4j] Plugin for REST server not appearing

2011-06-16 Thread Peter Neubauer
Milena, I can see here that the plugin is not loaded. Fixing more verbose logging around Plugin loading to see more details in the logs. Stay tuned ... Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer Phone       +46 704 106975 LinkedIn  

[Neo4j] Build Steps Community

2011-06-16 Thread webwu...@googlemail.com
Hi! I have succesfully build the neo4j-community as described on https://github.com/neo4j/community with mvn clean install. But I could not find any bin/neo4j as in the milestone-download. How do I start the server now? What am I missing? Regards, Tobias Bradtke

Re: [Neo4j] Plugin for REST server not appearing

2011-06-16 Thread Peter Neubauer
Milena, better logging and docs is now added around Plugins, https://github.com/neo4j/community/commit/325f49a5d458bd124ffdb6516c9c7d6d06903617 The problem is, your @PluginTarget is Node, your @Source is GraphDatabaseService. They need to be the same, so you should change to @Description( A

Re: [Neo4j] Build Steps Community

2011-06-16 Thread Peter Neubauer
Tobias, the final artifacts are produced in https://github.com/neo4j/packaging/tree/master/standalone/, using the local artifacts you just produced in the community build. Could you try building that and report back? Cheers, /peter neubauer GTalk:      neubauer.peter Skype       peter.neubauer

Re: [Neo4j] Build Steps Community

2011-06-16 Thread Anders Nawroth
Or if you just want to try out your local changes, go to community/server and do: mvn exec:java See: http://mojo.codehaus.org/exec-maven-plugin/ /anders 2011-06-16 12:09, Peter Neubauer skrev: Tobias, the final artifacts are produced in

Re: [Neo4j] Traversals versus Indexing

2011-06-16 Thread Mattias Persson
I don't know your use case at all, but one of the benefits you get with traversing compared to index lookups is that one hop from a node to another is instantaneous ( 1 million hops / second on a fully cached graph), whereas index lookups are several order of magnitudes slower than that. But

Re: [Neo4j] Plugin for REST server not appearing

2011-06-16 Thread Milena Araujo
Peter, Now it works perfectly ! Thanks :] Milena. On Thu, Jun 16, 2011 at 12:05 PM, Peter Neubauer peter.neuba...@neotechnology.com wrote: Milena, better logging and docs is now added around Plugins, https://github.com/neo4j/community/commit/325f49a5d458bd124ffdb6516c9c7d6d06903617 The

Re: [Neo4j] Build Steps Community

2011-06-16 Thread webwu...@googlemail.com
Thanks a lot! Both approaches worked for me. On Thu, Jun 16, 2011 at 12:13 PM, Anders Nawroth and...@neotechnology.com wrote: Or if you just want to try out your local changes, go to community/server and do: mvn exec:java 2011-06-16 12:09, Peter Neubauer skrev: Tobias, the final artifacts

Re: [Neo4j] Spring Data Graph 1.1.0.M1 milestone released

2011-06-16 Thread Michael Hunger
You could just use the direct repository factory for that. directGraphRepositoryFactory.createGraphRepository(clazz).findAll() normally you would have a interface PersonRepository extends GraphRepositoryPerson {} and get this injected. @Autowired PersonRepository personRepository;

Re: [Neo4j] traversing backwards to reference node

2011-06-16 Thread Marko Rodriguez
Hi, I think what he's asking for is just to collect properties along the way. Yea. You are right he said adding a name property to a list. In Gremlin, if you are still interested: x = [ ] // return list startSet = [ ... ] // fill an array/set with leaves

Re: [Neo4j] Extent of Indexing

2011-06-16 Thread Mattias Persson
You say that you will store mostly strings and that you only have one relationship type. Feels to me that you're trying to treat neo4j as nothing more than a bucket for tossing in your data and using lucene to search and retrieve everything. What's the real use case you're having? If you

Re: [Neo4j] Traversing nodes using Indexed relationship's attribute

2011-06-16 Thread Mattias Persson
You could possibly introduce a concept of purchase, which also would be nodes. Like this: (user1)--purchased--(p1)--from_shop--(shop1) | product | v

Re: [Neo4j] In-graph Timeline index and Neo4j 1.4

2011-06-16 Thread Mattias Persson
I'm glad to hear that it worked :) 2011/6/15 Rick Bullotta rick.bullo...@thingworx.com Done! - Reply message - From: Mattias Persson matt...@neotechnology.com Date: Wed, Jun 15, 2011 7:14 am Subject: [Neo4j] In-graph Timeline index and Neo4j 1.4 To: Neo4j user discussions

Re: [Neo4j] Spring Data Graph 1.1.0.M1 milestone released

2011-06-16 Thread Vipul Gupta
please give the maven repository information from where it can be downloaded. On Thu, Jun 16, 2011 at 6:50 PM, Michael Hunger michael.hun...@neotechnology.com wrote: You could just use the direct repository factory for that. directGraphRepositoryFactory.createGraphRepository(clazz).findAll()

Re: [Neo4j] REST API LuceneTimeline

2011-06-16 Thread Mattias Persson
Yes, you're probably right in that instead POSTing with a payload of key, value and entity would provide the functionality needed here. It's a ticket at least and hopefully it will be fixed soon. 2011/6/15 Rick Bullotta rick.bullo...@thingworx.com Depends I would think on how you are

[Neo4j] I'm really stuck in PatternMatching

2011-06-16 Thread noppanit
Basically, I'm trying to implement rules engine in neo4j and I think that pattern matching would be the right way to find the rule. But I really don't know how to do that in Cypher or even in PatternMatching. This is my graph (customers)---[:applies]--(rules)

Re: [Neo4j] In-graph Timeline index and Neo4j 1.4

2011-06-16 Thread Rick Bullotta
It was surprisingly easy. Still learning/finding the limitations of Lucene, but the ability to pass a native Lucene query to the Neo index query function is awesome. Thanks for putting it in there. ;-) -Original Message- From: user-boun...@lists.neo4j.org

Re: [Neo4j] Spring Data Graph 1.1.0.M1 milestone released

2011-06-16 Thread Michael Hunger
repository idspring-maven-milestone/id nameSpring Maven Milestone Repository/name urlhttp://maven.springframework.org/milestone/url /repository dependency groupIdorg.springframework.data/groupId artifactIdspring-data-neo4j/artifactId version1.1.0.M1/version

[Neo4j] TinkerPop Stack Release w/ Graph Pattern Matching in Gremlin

2011-06-16 Thread Marko Rodriguez
Hi Neo4j people, For those that use TinkerPop (http://tinkerpop.com), there was a stack release yesterday. The biggest changes were in: 1. Blueprints' Neo4jGraph (transaction/thread handing) 2. Gremlin (graph pattern matching and named steps) 3. Rexster (rexster-kibbles

Re: [Neo4j] I'm really stuck in PatternMatching

2011-06-16 Thread Andres Taylor
Hi there, Your images are difficult to read on gmail. A gif might help. :) I'm not quite certain on what is not working. In Cypher, your question would look something like this: START rules=(0) MATCH (subReference )-[:APPLIES]-(rules)-[:RULE]-(rule)-[r,:LESS_THAN]-(answer) WHERE r.Threshhold 0

Re: [Neo4j] I'm really stuck in PatternMatching

2011-06-16 Thread noppanit
Thanks for the reply, sorry the DatabaseHelper is just my class to get an index of a node. :) Will try that soon, Thanks very much. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/I-m-really-stuck-in-PatternMatching-tp3072170p3072365.html Sent from the Neo4J User

Re: [Neo4j] Transaction API docs

2011-06-16 Thread Mattias Persson
Hi Massimo, 2011/6/16 Massimo Lusetti mluse...@gmail.com From http://components.neo4j.org/neo4j/1.4.M04/apidocs/org/neo4j/graphdb/Transaction.html I read: ... Read operations inside of a transaction will also read uncommitted data from the same transaction. So does my understanding that

Re: [Neo4j] Unexpected error

2011-06-16 Thread Mattias Persson
2011/6/16 Massimo Lusetti mluse...@gmail.com On Tue, Jun 14, 2011 at 12:56 PM, Johan Svensson jo...@neotechnology.com wrote: 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

Re: [Neo4j] I'm really stuck in PatternMatching

2011-06-16 Thread noppanit
From the query above I got this error. org.neo4j.cypher.SyntaxError: string matching regex `(?i)\Qreturn\E' expected but ` ' found What does it mean? Thanks :) -- View this message in context:

Re: [Neo4j] Open question on Index Framework

2011-06-16 Thread Rick Bullotta
Thanks! Actually, that might be perfect, since we're more interested in committed content for now. Will give it a try! -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On Behalf Of Mattias Persson Sent: Thursday, June 16, 2011 11:50 AM To:

[Neo4j] Cannot execute Cypher

2011-06-16 Thread Pierre De Wilde
Hi Andrés, scala.util.Properties.versionString() returns 2.9.0.final instead of 2.8.1.final. After investigations, it is GraphStream 1.0 which changes scala version to 2.9.0. So, I remove GraphStream libraries from CLASSPATH and everything works correctly with Cypher from Neo4j webadmin

Re: [Neo4j] I'm really stuck in PatternMatching

2011-06-16 Thread noppanit
Hi!, I've fixed that issue already, it's because I forgot to load my database up. But now I got a new error from ExecutionResult Method threw 'java.lang.UnsupportedOperationException' exception instead when I debug it. -- View this message in context:

Re: [Neo4j] Cannot execute Cypher

2011-06-16 Thread Andres Taylor
If it's any consolation, I've bumped the version of Scala to 2.9.0 already, so the next milestone should work with GraphStream. Regards, Andrés On Thu, Jun 16, 2011 at 5:55 PM, Pierre De Wilde pierredewi...@gmail.comwrote: Hi Andrés, scala.util.Properties.versionString() returns 2.9.0.final

Re: [Neo4j] I'm really stuck in PatternMatching

2011-06-16 Thread noppanit
Hi, I found the error already, but I'm not sure if it's related to the API. If I use AND in the WHERE clause. It causes the error, but If I use and it runs ok. :) -- View this message in context:

Re: [Neo4j] Traversals versus Indexing

2011-06-16 Thread Aseem Kishore
Are lookups by ID also so much slower than traversals? Aseem On Thu, Jun 16, 2011 at 3:45 AM, Mattias Persson matt...@neotechnology.comwrote: I don't know your use case at all, but one of the benefits you get with traversing compared to index lookups is that one hop from a node to another is

Re: [Neo4j] Traversals versus Indexing

2011-06-16 Thread Mattias Persson
Are you thinking of GraphDatabaseService#getNodeById / #getRelationshipById ? Or index lookups? 2011/6/16 Aseem Kishore aseem.kish...@gmail.com Are lookups by ID also so much slower than traversals? Aseem On Thu, Jun 16, 2011 at 3:45 AM, Mattias Persson matt...@neotechnology.comwrote: I

Re: [Neo4j] Traversals versus Indexing

2011-06-16 Thread Aseem Kishore
Indeed getNodeById(). Aseem On Thu, Jun 16, 2011 at 10:11 AM, Mattias Persson matt...@neotechnology.com wrote: Are you thinking of GraphDatabaseService#getNodeById / #getRelationshipById ? Or index lookups? 2011/6/16 Aseem Kishore aseem.kish...@gmail.com Are lookups by ID also so much

Re: [Neo4j] I'm really stuck in PatternMatching

2011-06-16 Thread Andres Taylor
On Thu, Jun 16, 2011 at 6:22 PM, noppanit noppani...@gmail.com wrote: Hi, I found the error already, but I'm not sure if it's related to the API. If I use AND in the WHERE clause. It causes the error, but If I use and it runs ok. :) Good catch. Fixed in trunk now. Andrés

Re: [Neo4j] ClosedChannelExceptions in highly concurrent environment

2011-06-16 Thread Jennifer Hickey
Hi Johan, Sorry for the delay. I was finally able to try out that patch (against 1.3) on our test environment, and things are running smoothly. I have not seen the ClosedChannelException (or any others) once in 24 hours. Previously on the same system I saw it frequently, as early as 15

[Neo4j] storing long values overflow

2011-06-16 Thread Niels Hoogeveen
Using neo4j 1.4-SNAPSHOT it seems the storage or retrieval of long values no longer works properly.package com.multispective.snippet;import org.neo4j.kernel.EmbeddedGraphDatabase;import org.neo4j.graphdb.GraphDatabaseService;import org.neo4j.graphdb.Transaction;import

Re: [Neo4j] storing long values overflow

2011-06-16 Thread Niels Hoogeveen
Don't know how to send a properly formatted email. Anyway, when storing a long value -134217728l in a node property, retrieving the value of the property is again -134217728. When storing a long value -134217729l in a node property, retrieving the value of that property overflows and 134217727

Re: [Neo4j] storing long values overflow

2011-06-16 Thread Marko Rodriguez
Hi, Try using: http://paste.pocoo.org/ Great for sending color formatted code snippets. Marko. http://markorodriguez.com On Jun 16, 2011, at 2:48 PM, Niels Hoogeveen wrote: Don't know how to send a properly formatted email. Anyway, when storing a long value -134217728l in a

Re: [Neo4j] storing long values overflow

2011-06-16 Thread Niels Hoogeveen
Thank Marco, Hope this looks better. import org.neo4j.kernel.EmbeddedGraphDatabase;import org.neo4j.graphdb.GraphDatabaseService; import org.neo4j.graphdb.Transaction; import org.neo4j.graphdb.Node; public class Test2 { public static void main(String args[]){

Re: [Neo4j] storing long values overflow

2011-06-16 Thread Niels Hoogeveen
I just tested the long property overflow behaviour against different neo4j 1.4 releases and found out it was introduced between M03 and M04. M03 correctly returns -134217729 when storing a property with value -134217729l.M04 and SNAPSHOT return 134217727 when storing a property with value

[Neo4j] Change in behavior for QueryContext with IndexNode ?

2011-06-16 Thread Kalin Wilson Development
Perhaps this is fixed in the latest milestone release, I haven't had a chance to test it yet. I upgraded from 1.3M03 to 1.4M03 and found that my code that queried node indexes using a QueryContext was throwing a NPE. In my code I constructed a string similar to eclass:org.spp.data.Something AND