Re: [Neo4j] What changes are required in the given query for the newer version

2014-01-02 Thread Sukaant Chaudhary
Hi Mark, Following query worked for me fine in the previous version: START n=node(*), m=node(2) MATCH p=(m)-[r?:FOLLOWED_BY|CREATED_BY|FOLLOW_PENDING*]->(n) WHERE has(n.timeBoardName) AND n.timeBoardName =~ "(?i)suk.*" RETURN r, n -Sukaant Chaudhary On Fri, Jan 3, 2014 at 12:59 PM, Mark Needham

Re: [Neo4j] What changes are required in the given query for the newer version

2014-01-02 Thread Mark Needham
Also could you paste your query using '?' which worked On 3 January 2014 07:28, Mark Needham wrote: > Hey, > > Not sure I understand exactly what you're trying to do. Can you create a > graphgist with a small example data set? http://gist.neo4j.org/ > > That transaction exception sounds weird t

Re: [Neo4j] What changes are required in the given query for the newer version

2014-01-02 Thread Mark Needham
Hey, Not sure I understand exactly what you're trying to do. Can you create a graphgist with a small example data set? http://gist.neo4j.org/ That transaction exception sounds weird though, how do you get that? How are you executing the query? Mark On 3 January 2014 06:33, Sukaant Chaudhary wr

Re: [Neo4j] What changes are required in the given query for the newer version

2014-01-02 Thread Sukaant Chaudhary
Hi Mark, I've changed the query as follows: START m=node(2) MATCH p=(m)-[r:FOLLOWED_BY|CREATED_BY|FOLLOW_PENDING]->(n) WITH m OPTIONAL MATCH (m)-[r]-(n) WHERE has(n.timeBoardName) AND n.timeBoardName =~ "(?i).*" RETURN r, n; Now I'm getting more results, but getting the duplicate results also I'm

Re: [Neo4j] What changes are required in the given query for the newer version

2014-01-02 Thread Sukaant Chaudhary
Hi Mark, I tried the following query but still I'm not getting the nodes without these three relations given, but I want the nodes which is not having that relation as well. START n=node(*), m=node(2) MATCH p=(m)-[r:FOLLOWED_BY|CREATED_BY|FOLLOW_PENDING]->(n) OPTIONAL MATCH (m)-[s]->n WHERE has(n.

Re: [Neo4j] Django and Neo4J - installation issue

2014-01-02 Thread Michael Hunger
What does java -version and /usr/libexec/java_home -v 1.7 report ? Michael Am 10.06.2013 um 00:09 schrieb Nimrod M : > Once I'm running neo4j start > I get the message: > > WARNING! You are using an unsupported version of the Java runtime. Please use > Oracle(R) Java(TM) Runtime Environmen

Re: [Neo4j] node.hasProperty("foo") causes NotInTransactionException? (2.0.0)

2014-01-02 Thread Michael Hunger
Thanks a lot Johannes for chiming in. Adding transactions for reads is mostly about creating the foundations for - repeatable reads, - better resource management - allowing support for more isolation levels - better automatic locking The move from try - finally to try - with and AutoClosable was

Re: [Neo4j] node.hasProperty("foo") causes NotInTransactionException? (2.0.0)

2014-01-02 Thread Johannes Mockenhaupt
On 12/31/2013 04:12 PM, M. David Allen wrote: > Just curious, what's the thinking behind requiring transactions for reads? Since nobody else answered yet I'll take a stab at it :-) As far as I know the reason for requiring transaction for read operations is optimization: fetched resources can be

Re: [Neo4j] Neo.ClientError.Statement.InvalidType

2014-01-02 Thread Javad Karabi
Johannes, yea, i think im just going to go ahead and go with that. thank you! On Thursday, January 2, 2014 4:26:42 PM UTC-6, Johannes Mockenhaupt wrote: > > Well, since Cypher can't test for property type, how about asking for > all nodes with the Superclass label that have the name property and

Re: [Neo4j] Neo.ClientError.Statement.InvalidType

2014-01-02 Thread Johannes Mockenhaupt
Well, since Cypher can't test for property type, how about asking for all nodes with the Superclass label that have the name property and then check and update the returned nodes as necessary in the ruby script? On 01/02/2014 11:22 PM, Javad Karabi wrote: > Johannes, youre absolutely right, and i

Re: [Neo4j] Neo.ClientError.Statement.InvalidType

2014-01-02 Thread Javad Karabi
Johannes, youre absolutely right, and i agree! however, the import script i used did not take into account the fact that i may sometimes get arrays, and now my db has arrays and strings intermixed as the name property type. so, to rectify it, i would like to grab all nodes which have name as an

Re: [Neo4j] Neo.ClientError.Statement.InvalidType

2014-01-02 Thread Johannes Mockenhaupt
I don't think having the same property be a string on some nodes and an array on others is the way to go - you'll end up checking for type all the time. Which is also not possible in Cypher as far as I know. Why not make it an array/collection all the time and query it like this: MATCH (n:Supercla

Re: [Neo4j] Lost in "unable to commit transaction" errors, during move from 1.9.3 -> 2.0.0 (now all reads require transactions)

2014-01-02 Thread Mattias Persson
2014/1/2 M. David Allen > So this was kind of my thinking as well. I'll play with messages and > see if I can get more information to post on the source of the bug. > Cool > > The other thing that's a big pain in the butt about calling success() is > that it breaks a certain coding pattern.

[Neo4j] Lucene index merge operation optimization?

2014-01-02 Thread Tero Paananen
We're having an issue where our Neo4j based application starts crawling really, really badly during a Lucene index merge. This is an issue when we're having unusually high write volume. It seems as if everyone is applying for a new job after New Years... We're going to address this issue on multi

Re: [Neo4j] Neo.ClientError.Statement.InvalidType

2014-01-02 Thread Javad Karabi
Johannes, that seems to be exactly it. some of my nodes have a string, some an array of strings. thank you is it possible, then, to test on a properties type? On Thursday, January 2, 2014 3:53:20 PM UTC-6, Johannes Mockenhaupt wrote: > > I can reproduce this when the property in question is an

Re: [Neo4j] Neo.ClientError.Statement.InvalidType

2014-01-02 Thread Johannes Mockenhaupt
I can reproduce this when the property in question is an array of strings. Thus your 'name' property appears to be an array where you expect it to be a string. On 01/02/2014 09:46 PM, Javad Karabi wrote: > match (n:Superclass) where n.name =~ "(?i).*SWEATERS.*" return n; > > Expected [Ljava.lang.

[Neo4j] MERGE vs CREATE UNIQUE in pseudocode?

2014-01-02 Thread Javad Karabi
can anyone explain what MERGE and CREATE UNIQUE do, in pseudocode? im having trouble understanding exactly the order in which one or the other will decide to create a new relationship, or use a new one. for example, CREATE UNIQUE will try to use as much of the graph as possible, does this mean it

[Neo4j] Neo.ClientError.Statement.InvalidType

2014-01-02 Thread Javad Karabi
match (n:Superclass) where n.name =~ "(?i).*SWEATERS.*" return n; Expected [Ljava.lang.String;@36b3041f to be a java.lang.String, but it was a [Ljava.lang.String; Neo.ClientError.Statement.InvalidType did i do something wrong in the query? -- You received this message because you are sub

Re: [Neo4j] Lost in "unable to commit transaction" errors, during move from 1.9.3 -> 2.0.0 (now all reads require transactions)

2014-01-02 Thread M. David Allen
So this was kind of my thinking as well. I'll play with messages and see if I can get more information to post on the source of the bug. The other thing that's a big pain in the butt about calling success() is that it breaks a certain coding pattern. I used to have code that looked like thi

Re: [Neo4j] Re: Django and Neo4J - installation issue

2014-01-02 Thread Dela Lange
I got the same problem on my Raspberry Pi. First check your java version with java -version is it 1.7 ? If not, then update. If yes, is it openjdk7 or oracle jdk? On my raspberry it din't run with oracle, but with opendjk, so maybe u try this. Am Montag, 10. Juni 2013 00:09:41 UTC+2 schrieb N

[Neo4j] Gephi database import error

2014-01-02 Thread Alan Pereyra
While attempting to import a database from Neo4j to Gephi, I get the following error: Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long at org.gephi.neo4j.plugin.impl.Neo4jDelegateProviderImpl.getNodeAttributeValue(Neo4jDelegateProviderIm

Re: [Neo4j] Neo4j -> Gephi database import error

2014-01-02 Thread Alan Pereyra
I would like know what is the solution for this problem. Thank you!! El jueves, 9 de mayo de 2013 18:48:32 UTC-3, Michael Hunger escribió: > > Gabe, > > Thanks for reporting. > > I try to work with the Gephi team to figure that out, stay tuned. > > Michael > > Am 09.05.2013 um 18:00 schrieb Gabrie

[Neo4j] Avoiding feedback loop in recommendations system?

2014-01-02 Thread Javad Karabi
When using a graph database for a recommendations engine, would not the suggested recommendations continue to reenforce themselves, thus kind of creating a feedback loop? How does one prevent this from happening? -- You received this message because you are subscribed to the Google Groups "Neo

Re: [Neo4j] Lost in "unable to commit transaction" errors, during move from 1.9.3 -> 2.0.0 (now all reads require transactions)

2014-01-02 Thread Mattias Persson
Hi David, unfortunately I think the root cause of the failure to commit is lost in the thrown exception. You can have a look in messages.log for the cause, or just attach you message.log here with a rough timestamp when this happened. When we dig up that root cause we can argue if it's strange and

Re: [Neo4j] 100% cpu on one cpu while performaing cypher queries using py2neo

2014-01-02 Thread Mattias Persson
FYI https://github.com/neo4j/neo4j/pull/1780 should help some there. 2013/12/23 Michael Hunger > I rather think this is the culprit, as there are *145 threads stuck > (BLOCKED)* in the same place > > "qtp911690433-360" prio=10 tid=0x02605800 nid=0x2fbd runnable > [0x7da10e3e1000] >

Re: [Neo4j] Lost in "unable to commit transaction" errors, during move from 1.9.3 -> 2.0.0 (now all reads require transactions)

2014-01-02 Thread Johannes Mockenhaupt
Now that I think about it again, why should a call to tx.success() be needed at all on a r/o tx? Default is to not commit and rollback. Only close() needs to be called to clean up resources. Maybe Neo4j throws because you want it to commit something when there's nothing to commit ;-) Seriously

Re: [Neo4j] embedded API unique node creation using schema index

2014-01-02 Thread Alex Frieden
Yes, but isn't that returning an executionengine when you want to return say a node object? On Thu, Jan 2, 2014 at 9:52 AM, Wes Freeman wrote: > The top example is using 2.0 indexes with constraints: > > http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-unique-nodes.html#tutorials-

Re: [Neo4j] embedded API unique node creation using schema index

2014-01-02 Thread Wes Freeman
The top example is using 2.0 indexes with constraints: http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-unique-nodes.html#tutorials-java-embedded-unique-get-or-create On Thu, Jan 2, 2014 at 9:36 AM, Alex Frieden wrote: > Hi all, > I saw this: > http://docs.neo4j.org/chunked/snapsh

Re: [Neo4j] What changes are required in the given query for the newer version

2014-01-02 Thread Mark Needham
I wrote up an example of translating a query using ? to use OPTIONAL MATCH here - http://www.markhneedham.com/blog/2013/11/23/neo4j-2-0-0-m06-2-0-0-rc1-optional-relationships-with-optional-match/ Can you have a look at that and see whether you're able to follow the same reasoning I did to adjust y

[Neo4j] embedded api create unique using schema index

2014-01-02 Thread Alex Frieden
Hi all, I saw this: http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-unique-nodes.html Is there a way to do this using the schema index instead of the legacy index? I have set up schema indexes (so property per label). I want to use that for unique node creation. Any thoughts?

[Neo4j] embedded API unique node creation using schema index

2014-01-02 Thread Alex Frieden
Hi all, I saw this: http://docs.neo4j.org/chunked/snapshot/tutorials-java-embedded-unique-nodes.html Is there a way to do this using the schema index instead of the legacy index? I have set up schema indexes (so property per label). I want to use that for unique node creation. Any thoughts?

Re: [Neo4j] Lost in "unable to commit transaction" errors, during move from 1.9.3 -> 2.0.0 (now all reads require transactions)

2014-01-02 Thread M. David Allen
Sorry, this was my mistake on the original post -- I'm not calling tx.finish() at all, but rather tx.success() at the end of the try block. The original question stands though - what are the various reasons why a transaction would fail when nothing inside of the transaction is modifying the gra

[Neo4j] What changes are required in the given query for the newer version

2014-01-02 Thread Sukaant Chaudhary
Hi, I want to search for all the nodes which have the given relation and which does not have the given relations, for that what changes I need to do in the following query? It was working fine with previous versions by using "?". START n=node(*), m=node(2) MATCH p=(m)-[r:FOLLOWED_BY|CREATED_BY|FOL

Re: [Neo4j] How to install the latest neo4j(Neo4j 2.0 beta) in ubuntu?

2014-01-02 Thread Michael Hunger
I meant: how did you "actually import" the data. Micheal Am 02.01.2014 um 10:07 schrieb Rio Eduardo : > I just followed your instruction to import the data. > > first, change permission of the db folder I want to use > second, change neo4j-server.properties into this one -> > org.neo4j.server.

Re: [Neo4j] Missing data MATCH vs START

2014-01-02 Thread icenine
Hi Karol, It has to do with health care policy in the UK and is academic in nature. That's about as much as I can say at the moment. ~ icenine On Thursday, January 2, 2014 9:52:42 AM UTC, Karol Brejna wrote: > > Ice, > > It seems you are doing something very interesting. What system are you >

Re: [Neo4j] How to delete the node and relation

2014-01-02 Thread Sukaant Chaudhary
Hi Mark, I tried the following query, it is working fine in my localhost: START a=node(3896) MATCH (a)-[:PUBLISHED_BY]->(c)<-[:PUBLISHED_UNDER]-(b), (a)-[:CREATED_BY]->(b) WITH c OPTIONAL MATCH (c)-[r]-(), (b)-[s]-() DELETE c, r, b, s; but when I'm running it in my server it is giving the followi

Re: [Neo4j] ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException

2014-01-02 Thread Ramesh Yakkala
Hi Luanne, It is neo4j 1.9.5 server and I could perform delete operation if it have less amount of data,but when it have huge data it is failing. Thanks, Ramesh Yakkala. On Thursday, January 2, 2014 1:40:10 PM UTC+5:30, Luanne wrote: > > Actually ignore that, delete n,r appears to work on 2.0.

Re: [Neo4j] Missing data MATCH vs START

2014-01-02 Thread Karol Brejna
Ice, It seems you are doing something very interesting. What system are you building? Is it possible for you to shed some light on it? Regards, Karol W dniu czwartek, 2 stycznia 2014 00:14:00 UTC+1 użytkownik icenine napisał: > > Hi Michael, > > I've posted the newest code here: http://pasteb

Re: [Neo4j] How to install the latest neo4j(Neo4j 2.0 beta) in ubuntu?

2014-01-02 Thread Rio Eduardo
I just followed your instruction to import the data. first, change permission of the db folder I want to use second, change neo4j-server.properties into this one -> org.neo4j.server.database.location=data/my.graphdb that's all. On Thursday, January 2, 2014 1:36:57 AM UTC+7, Michael Hunger wrote

Re: [Neo4j] ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException

2014-01-02 Thread Ramesh Yakkala
this is neo4j 1.9.5 server. On Thursday, January 2, 2014 1:40:10 PM UTC+5:30, Luanne wrote: > > Actually ignore that, delete n,r appears to work on 2.0. Thought it did > not on earlier versions. > > > On Thu, Jan 2, 2014 at 1:38 PM, Luanne Coutinho > > > wrote: > >> Not sure about that exact ex

Re: [Neo4j] How to delete the node and relation

2014-01-02 Thread Mark Needham
Hi Sukant, This is the problem: SyntaxException: Question mark is no longer used for optional patterns - use OPTIONAL MATCH instead (line 1, column 88) The syntax for optional match has changed. Can you try changing your query based on this page: http://docs.neo4j.org/chunked/stable/query-optio

Re: [Neo4j] How to delete the node and relation

2014-01-02 Thread Sukaant Chaudhary
Hi, I used the following query but I'm getting the following exception: START a=node(2) MATCH (a)-[:PUBLISHED_BY]->(c)<-[:PUBLISHED_UNDER]-(b) WITH c MATCH (c)-[r?]-() DELETE c, r; ==> SyntaxException: Question mark is no longer used for optional patterns - use OPTIONAL MATCH instead (line 1, colu

Re: [Neo4j] ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException

2014-01-02 Thread Luanne Coutinho
Actually ignore that, delete n,r appears to work on 2.0. Thought it did not on earlier versions. On Thu, Jan 2, 2014 at 1:38 PM, Luanne Coutinho wrote: > Not sure about that exact exception, but looking at your query, you have > to delete relationships first and then the nodes: > > START n = nod

Re: [Neo4j] ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException

2014-01-02 Thread Luanne Coutinho
Not sure about that exact exception, but looking at your query, you have to delete relationships first and then the nodes: START n = node(*) MATCH n-[r?]-() WHERE ID(n)>0 DELETE r,n -Luanne On Thu, Jan 2, 2014 at 1:10 PM, Ramesh Yakkala wrote: > Hi, > > I setup the HA environment with admin,