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

2014-01-01 Thread Michael Hunger
What do you actually want to do? Sent from mobile device Am 01.01.2014 um 05:56 schrieb 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 " retr

[Neo4j] Missing data MATCH vs START

2014-01-01 Thread JDS
Maybe I'm wrong but I thought that all 3 of the top queries would return data based on the data returned by 1st and 4th query so I'm a little confused. Server is 2.0.0 enterprise stable. neo4j-sh (?)$ START n=node(*) WHERE HAS (n.code) AND n.code = 'IN05_lvl1' RETURN n.code; +-+ | n

Re: [Neo4j] Missing data MATCH vs START

2014-01-01 Thread Michael Hunger
Typo: In query #4 you use "NRLS_DATA_TYPE" in the previous ones you use "NLRS_DATA_TYPE" N_RL_S vs. N_LR_S HTH Michael Am 01.01.2014 um 19:26 schrieb JDS : > Maybe I'm wrong but I thought that all 3 of the top queries would return data > based on the data returned by 1st and 4th query so I'

Re: [Neo4j] Missing data MATCH vs START

2014-01-01 Thread JDS
Ugh *shame* Thanks Mike On Wednesday, January 1, 2014 6:32:16 PM UTC, Michael Hunger wrote: > > Typo: > > In query #4 you use "NRLS_DATA_TYPE" in the previous ones you use " > NLRS_DATA_TYPE" > > N_RL_S vs. N_LR_S > > HTH > > Michael > > Am 01.01.2014 um 19:26 schrieb JDS >: > > Maybe I'm wrong b

Re: [Neo4j] Missing data MATCH vs START

2014-01-01 Thread Michael Hunger
No worries, it's still early in the New Year :) But you definitely want to write a blog post about what you're doing with Neo4j? Right? Happy New Year Michael Am 01.01.2014 um 19:33 schrieb JDS : > Ugh *shame* > > Thanks Mike > > On Wednesday, January 1, 2014 6:32:16 PM UTC, Michael Hunger

[Neo4j] get all nodes and edges of graph

2014-01-01 Thread Divya Chaudhary
Hi, I am trying to get all nodes and edges of a graph using Java API. I know there is a method getAllnodes() on GraphDatabaseService object. But that too is deprecated. Also, I cannot find any method for getting edges of the graph. I do not want to use traversal framework as graph may not be ful

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

2014-01-01 Thread Michael Hunger
That can be either some log files or some deleted data that has still records reserved in the store files. Perhaps your import didn't work? How did you import the data. Michael Am 01.01.2014 um 04:19 schrieb Rio Eduardo : > yes it seems to be empty but it's not actually because it says the siz

Re: [Neo4j] Missing data MATCH vs START

2014-01-01 Thread JDS
Actually I would, I've been working with REST::Neo4p and the writer of the module has been more than helpful and I've found decent results doing my inserts now using perl. I'm just in the process of migrating my CREATE UNIQUE queries to MERGE to test the performance benefits. Once that's done I

Re: [Neo4j] Missing data MATCH vs START

2014-01-01 Thread JDS
BTW, I love the simplicity of something like this: neo4j-sh (?)$ MATCH (ndt:NRLS_DATA_TYPE { code : 'IN05_lvl1' }) > MERGE (ic:INCIDENT_CATEGORY { category_level_01 : 'FOOBAR' })-[r: HAS_NRLS_DATA_TYPE]->(ndt) > RETURN ic, r; +---

[Neo4j] Mixing Cypher and Gremlin?

2014-01-01 Thread David Carmean
A few months ago i spent some time learning a bit about members of the Tinkerpop ecosystem, and a bit about Goovy and groovysh in the process of learning a bit about Gremlin. I was also experimenting with putting neo4j and other graph dbs behind Rexster, as it was a convenient way to experim

[Neo4j] IncomparableValuesException in trying to order node labels across all nodes

2014-01-01 Thread JDS
Server 2.0.0 enterprise stable: I'm not sure why I'm getting this exception and I don't see anything in messages.log. neo4j-sh (?)$ START n=node(*) RETURN labels(n) AS node_labels, count(*) ORDER BY node_labels; IncomparableValuesException: Don't know how to compare that. Left: ["NHS_TRUST_LOC

Re: [Neo4j] IncomparableValuesException in trying to order node labels across all nodes

2014-01-01 Thread Michael Hunger
Good find, can you please raise an issue on github.com/neo4j/neo4j/issues ? That would be great. As workaround please don't compare the whole collections but just the first element, like this START n=node(*) RETURN labels(n)[0] AS node_label, count(*) ORDER BY node_label or this START n=no

Re: [Neo4j] Missing data MATCH vs START

2014-01-01 Thread Michael Hunger
Great ! Looks good. I think if you use parameters and Neo4p's cypher support passing in perl-hashes for parameters and the using transactional endpoint with your import data it shouldn't take too long to import your 2 million data points. #1 parameters #2 transactional endpoint #3 sensible bat

Re: [Neo4j] get all nodes and edges of graph

2014-01-01 Thread Michael Hunger
Didn't you just ask this question with a different personality ? Cheers Michael Am 01.01.2014 um 03:33 schrieb Divya Chaudhary : > Hi, > I am trying to get all nodes and edges of a graph using Java API. > I know there is a method getAllnodes() on GraphDatabaseService object. But > that too is

Re: [Neo4j] IncomparableValuesException in trying to order node labels across all nodes

2014-01-01 Thread JDS
Thanks Mike, issue raised at https://github.com/neo4j/neo4j/issues/1776 On Wednesday, January 1, 2014 10:28:47 PM UTC, Michael Hunger wrote: > > Good find, can you please raise an issue on github.com/neo4j/neo4j/issues? > > That would be great. > > As workaround please don't compare the whole coll

Re: [Neo4j] Missing data MATCH vs START

2014-01-01 Thread icenine
Hi Michael, I've posted the newest code here: http://pastebin.com/7PikkZRP I've switched all of my CREATE UNIQUE statements to MERGE. I'm still convinced though that the inserts are under-performing. It's taking about 5 minutes for all of the statements in that code to execute 500 times. Overt

Re: [Neo4j] Missing data MATCH vs START

2014-01-01 Thread Michael Hunger
CC'in the Marks here. I don't know which endpoint Neo4p uses by default. As far as I can see you also run just one query per http-request / tx ? Usually you want to batch a score of them in a single tx (e.g. 20k elements). To run your code we probably need the xls files as well :) Also your qu

Re: [Neo4j] Missing data MATCH vs START

2014-01-01 Thread Mark Jensen
Ice-9, you can use the transaction support in the latest Neo4p (>0.2220) : REST::Neo4p->begin_work; ...queries and stuff if ($something_bad_happened) { REST::Neo4p->commit; (The ../cypher endpoint is used by default, and ../transaction within a txn marked as above) On Wed, Jan 1, 2014 at 6:56

Re: [Neo4j] Missing data MATCH vs START

2014-01-01 Thread Mark Jensen
Ice-9, you can use the transaction support in the latest Neo4p (>0.2220) : REST::Neo4p->begin_work; ...queries and stuff if ($something_bad_happened) { REST::Neo4p->rollback; } else { REST::Neo4p->commit; } and see if it improves perf. (The ../cypher endpoint is used by default, and ../transacti

[Neo4j] suggest neo4j support hdfs

2014-01-01 Thread 杨军
hi, suggest neo4j support hdfs -- Best regards, yang jun Tel: 028-85126877 Mob: 18608027881 Chat: yangjun.chen...@gmail.com(gtalk) -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group an

Re: [Neo4j] suggest neo4j support hdfs

2014-01-01 Thread Michael Hunger
What do you actually want to do? Neo4j runs on normal filesystems like ext4 or xfs or hfs. Michael Am 02.01.2014 um 02:09 schrieb 杨军 : > > hi, > suggest neo4j support hdfs > -- > Best regards, > yang jun > Tel: 028-85126877 > Mob: 18608027881 > > Chat: ya

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

2014-01-01 Thread Michael Hunger
Heya, as the neo4j-shell is not only available via the shell port and RMI but also as REST endpoint which will participate in the basic-auth of the proxy, it is as easy as wrapping curl in a bash-script, I thought I do it for the fun of it. https://gist.github.com/jexp/8213614 Have fun Michae

Re: [Neo4j] suggest neo4j support hdfs

2014-01-01 Thread 杨军
[?],neo4j 2.0 support max node and edge? 2014/1/2 Michael Hunger > What do you actually want to do? > > Neo4j runs on normal filesystems like ext4 or xfs or hfs. > > Michael > > Am 02.01.2014 um 02:09 schrieb 杨军 : > > > hi, > suggest neo4j support hdfs > -- > > Best regards, > yang jun > Tel:

Re: [Neo4j] suggest neo4j support hdfs

2014-01-01 Thread Michael Hunger
35 of 64 bits for 2.1 plan is to increase that to increase that to more than 38 bits, perhaps 40 or 42 Am 02.01.2014 um 02:26 schrieb 杨军 : > <328.png>,neo4j 2.0 support max node and edge? > > > 2014/1/2 Michael Hunger > What do you actually want to do? > > Neo4j runs on normal filesystems

[Neo4j] How to delete the node and relation

2014-01-01 Thread Sukaant Chaudhary
Hi, What changes I need to make in the following query to delete the nodes and the relation with that node? START a=node(2), b=node(*), c=node(*) MATCH (a)-[r:PUBLISHED_BY]->(c), (b)-[s:PUBLISHED_UNDER]->(c) DELETE r,s,c; -Sukaant Chaudhary -- You received this message because you are subscrib

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

2014-01-01 Thread Luanne Coutinho
Hi, As Michael pointed out earlier, there is no need to do b=node(*), c=node(*) since that is implied by your path. Your delete looks fine, please specify what nodes you want to delete and please also move this question to stackoverflow. Thanks! Luanne On Thu, Jan 2, 2014 at 12:40 PM, Sukaant Ch

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

2014-01-01 Thread Ramesh Yakkala
Hi, I setup the HA environment with admin,slave1,slave2 as per the documention and installed cygwin and configured the LB. Later I inserted the more than one lack nodes in neo4j db. Now I am trying to exicute cypher query "START n = node(*) MATCH n-[r?]-() WHERE ID(n)>0 DELETE n, r;" I am see

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

2014-01-01 Thread Sukaant Chaudhary
Hi Luanne, I'm using following query to delete all the nodes and relations, but I'm getting the following error message. Please help me where I'm doing wrong. Also I've moved this question to stackoverflow. - START a=node(2) MATCH (a)-[r:PUBLISHED_BY]->(c), (b)-[s:PUBLISHED_UNDER]->(c) DELET