Re: [Neo4j] get all nodes and edges in a graph

2013-12-31 Thread Puneet Arora
Hi Wes, Thanks for the reply I think this should work. Just another quick question would be can we have any filters applied to the Edges. Just say the sample query would be " retrieve all edges which have ID more than 500(filter : ID >500) " or some thing similar to it. Thanks Puneet On Tuesda

[Neo4j] Combining two related yet distinct sets of data in one Neo4j graph database

2013-12-31 Thread José F . Morales
Hello all, I am a Neo4j newbie and am using neo4j to model some clinical data. I'll refer to my graph db as the LC gdb. Further, the LC gdb will be influenced by another database from NIH I'll refer to as "NIH.SM. I decided to reformat the NIH.SM and import it into Neo4j for two reason

Re: [Neo4j] get all nodes and edges in a graph

2013-12-31 Thread Wes Freeman
Check out: http://api.neo4j.org/current/org/neo4j/tooling/GlobalGraphOperations.html Wes On Tue, Dec 31, 2013 at 10:06 PM, Puneet Arora wrote: > Hi, > I am trying to get all nodes and edges of the graph. > Though for the nodes I found a method getAllnodes() on > GraphDatabaseService, it is depre

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

2013-12-31 Thread Rio Eduardo
yes it seems to be empty but it's not actually because it says the size of the db is 2.10 MB. On Monday, December 30, 2013 9:56:25 PM UTC+7, Michael Hunger wrote: > > Then it seems to be empty? Perhaps a typo elsewhere when creating the data? > > Make sure to check the data folder > > Sent from m

[Neo4j] get all nodes and edges in a graph

2013-12-31 Thread Puneet Arora
Hi, I am trying to get all nodes and edges of the graph. Though for the nodes I found a method getAllnodes() on GraphDatabaseService, it is deprecated. And for getting edges, I cannot find any method to call on the whole graph. I do not want to use traversal framework as graph can be disconnecte

Re: [Neo4j] Re: (neo4j-shell)-[:connect_to]->(graphene)

2013-12-31 Thread Wes Freeman
Yeah, very slick Nige. Wes On Tue, Dec 31, 2013 at 1:26 PM, Javad Karabi wrote: > nigel, thank you! this is great! > > > On Tuesday, December 31, 2013 12:17:58 PM UTC-6, Nigel Small wrote: > >> Hi Javad >> >> I have made some adjustments to neotool (http://book.py2neo.org/en/ >> latest/neotool/

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

2013-12-31 Thread Johannes Mockenhaupt
You need to call tx.success() at the end of the block rather than tx.finish(). The latter is done through the try-with-resources statement. For further details see the JavaDoc of the Transaction class, which explains this nicely with an example. On 12/31/2013 07:05 PM, M. David Allen wrote: As

Re: [Neo4j] Re: (neo4j-shell)-[:connect_to]->(graphene)

2013-12-31 Thread Javad Karabi
nigel, thank you! this is great! On Tuesday, December 31, 2013 12:17:58 PM UTC-6, Nigel Small wrote: > > Hi Javad > > I have made some adjustments to neotool ( > http://book.py2neo.org/en/latest/neotool/) including a very basic shell > mode with auth support. This was specifically to help support

Re: [Neo4j] Re: (neo4j-shell)-[:connect_to]->(graphene)

2013-12-31 Thread Nigel Small
Hi Javad I have made some adjustments to neotool ( http://book.py2neo.org/en/latest/neotool/) including a very basic shell mode with auth support. This was specifically to help support GrapheneDB so might be able to do what you want. Cheers Nigel On 31 December 2013 17:47, Javad Karabi wrote:

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

2013-12-31 Thread M. David Allen
As I'm updating code for 2.0.0, I'm wrapping a lot of old code that only serves to inspect a graph (not update it) in transactions, using the new idiom: try ( Transaction tx = myDb.beginTx() ) { accessSomeData(); tx.finish(); } After the try block finishes, I'm getting exceptions of this

[Neo4j] Re: (neo4j-shell)-[:connect_to]->(graphene)

2013-12-31 Thread Javad Karabi
i guess i should elaborate... i need to connect to the neo4j service behind authentication, but neo4j-shell doesnt seem to have an option for username or password. does this mean neo4j-shell must be somehow wrapped in an auth mechanism? On Tuesday, December 31, 2013 11:38:45 AM UTC-6, Javad Karab

[Neo4j] (neo4j-shell)-[:connect_to]->(graphene)

2013-12-31 Thread Javad Karabi
has anyone been able to connect to graphene via neo4j-shell? -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit

[Neo4j] Happy New Year!

2013-12-31 Thread Peter Neubauer
Hi all, Just wanted to say Thank You for a great year in this community. See you on the other side! /peter (snt)-[:frm]->(phn) -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an e

Re: [Neo4j] sharing our experience so far in terms of challenges with neo4j 2.0

2013-12-31 Thread Wes Freeman
The lack of OR or IN index lookups are a pain for me as well. Looking forward to that one--hope it comes in a 2.0.x release rather than a 2.1 release. :) Happy new year! Wes On Tue, Dec 31, 2013 at 9:41 AM, Debajyoti Roy wrote: > We are our upgrading our current production system from neo4j 1.

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

2013-12-31 Thread M. David Allen
Just curious, what's the thinking behind requiring transactions for reads? Also, some documentation updates might be appropriate. For example: http://api.neo4j.org/current/org/neo4j/graphdb/NotInTransactionException.html public class NotInTransactionException extends RuntimeException

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

2013-12-31 Thread Michael Hunger
Hi Read operation on the database and nodes and relationships now require transactions Probably most sensible to wrap the tx around the entry point to your service layer. HTH Michael Sent from mobile device Am 31.12.2013 um 15:53 schrieb "M. David Allen" : > I'm in the middle of retrofitti

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

2013-12-31 Thread M. David Allen
I'm in the middle of retrofitting neo4j code that was running on 1.9.3 to 2.0.0. This is all happening under windows, jdk1.7.0_45, and eclipse. I expected some teething problems and cut-overs; here's one I've run into: org.neo4j.graphdb.NotInTransactionException at org.neo4j.kernel.impl.p

[Neo4j] sharing our experience so far in terms of challenges with neo4j 2.0

2013-12-31 Thread Debajyoti Roy
We are our upgrading our current production system from neo4j 1.9.3 community to 2.0 community. This supposed to go live in March'14. Just thought of summarizing and sharing our experience so far in terms of challenges: Cypher features missing: 1. No index lookup for IN and OR: https://

Re: [Neo4j] Re: Please try this query in the given URL

2013-12-31 Thread Sukaant Chaudhary
Yes Luanne, I got it, that is my mistake in understanding. Thanks a lot it is working fine for me. -Sukaant Chaudhary On Tue, Dec 31, 2013 at 4:13 PM, Luanne Coutinho wrote: > Sukaant, that is not correct. Again, > > *please see Skip: http://docs.neo4j.org/chunked/milestone/query-skip.html >

Re: [Neo4j] Re: Please try this query in the given URL

2013-12-31 Thread Luanne Coutinho
Sukaant, that is not correct. Again, *please see Skip: http://docs.neo4j.org/chunked/milestone/query-skip.html and Limit: http://docs.neo4j.org/chunked/milestone/query-limit.html * I

Re: [Neo4j] Re: Please try this query in the given URL

2013-12-31 Thread Sukaant Chaudhary
Hi Luanne, If I'm using *SKIP* *12 LIMIT 25 *then I think it should return results starting from 13th to 25. If I'm right, then in this case why it is returning 25 rows? If I'm wrong, then how to get the results starting from 12 and ending with 25 (ie 13 rows)? -Sukaant Chaudhary On Tue, Dec 31,

Re: [Neo4j] Re: Please try this query in the given URL

2013-12-31 Thread Luanne Coutinho
Yes, irrespective of your skip, Limit 25 will return 25 rows if there are 25 rows to return. The only difference skip makes is whether to return 25 rows starting from the first record (skip 0) or 25 rows starting from the 13th record (skip 12). On Tue, Dec 31, 2013 at 3:53 PM, Sukaant Chaudhary <

Re: [Neo4j] Re: Please try this query in the given URL

2013-12-31 Thread Sukaant Chaudhary
Hi Luanne, If I'm trying this query then it is returning 25 rows - *It is accepted*. START n=node(2) MATCH (n)-[:FOLLOWED_BY*..5]->(m) WITH distinct m MATCH (m)-[:PUBLISHED_UNDER*..5]->(l) WHERE l.eventStartDate + l.eventStartTime >= "2013-12-3115:47:57" OR l.eventEndDate + l.eventEndTime>="2013-1

[Neo4j] Re: Please try this query in the given URL

2013-12-31 Thread Luanne Coutinho
Yes 25 rows will be returned because that's the limit you set (assuming of course that you have more than 25 rows). If you want the "total no of rows which are in the limit" then limit 25 will give you 25 rows. Please see Skip: http://docs.neo4j.org/chunked/milestone/query-skip.htmland Limit: htt

[Neo4j] Re: Please try this query in the given URL

2013-12-31 Thread Sukaant Chaudhary
Hi Luanne, This query is working fine for sorting the dates but now there is 1 issue with *SKIP* if I pass *SKIP 0 LIMIT 25* then it works fine and returns 25 rows, but when I pass *SKIP 10 LIMIT 25* then also it returns 25 rows. Here I noticed that it is adding and returning from all the nodes bu