Re: [Neo4j] Any pros/cons between relationship vs. "relationship node"?

2014-04-17 Thread Koen Kleingeld
actually i asked the same question in a somewhat different manner a few weeks ago... i.e. to replace relations through intermediate nodes representing the relation to allow for inclusion of the time based dimension.. the question was if there is experiemce out there doing this for bigegr graphs ..

Re: [Neo4j] Any pros/cons between relationship vs. "relationship node"?

2014-04-17 Thread Koen Kleingeld
hi, one advantage of an extra hop that represents the "event" of one user following the other can be the fact that you can now link that "follow" node/event to a timeline graph node which allows for time based traversal .. and see what happened at some point in time.. who followed who .. when .. e

[Neo4j] Any pros/cons between relationship vs. "relationship node"?

2014-04-17 Thread Aseem Kishore
Example: users following other users. Is there any advantage/disadvantage to directly connecting users with relationships, vs. indirectly connecting them via nodes? E.g. (:User) -[:FOLLOWS]-> (:User) vs. (:User) <-[:SOURCE_USER]- (:Follow) -[:TARGET_USER]-> (:User) The node obviously lends mo

Re: [Neo4j] Save queries in browser permamently

2014-04-17 Thread tomasz . mrugala
HI, thanks for replay. Can you tell me when can i expect this. I need to know whether to wait or look for own solutions. W dniu czwartek, 17 kwietnia 2014 16:25:30 UTC+2 użytkownik Michael Hunger napisał: > > We're working on a solution for that, stay tuned. > > Cheers, > > Michael > > Am 17.04.2

Re: [Neo4j] how to run TraversalExample.java example

2014-04-17 Thread Michael Hunger
You should use a Node[] array Perhaps you want to rather use cypher from another language than writing Java code? Sent from mobile device Am 18.04.2014 um 03:21 schrieb TC : > why cannot i use this way to create node use int array > int[] newnode=new int[10]; > fo

Re: [Neo4j] [SDN 3.0.2] / Potential bug with @Fetch annotation

2014-04-17 Thread Michael Hunger
Perhaps two are the same and so reduced to one in the set What happens if you add distinct to your cypher query? Sent from mobile device Am 18.04.2014 um 03:30 schrieb Michael Azerhad : > Hi, > > I know that SDN 3.X.X is not full tested yet but I come across this potential > bug, and I would

Re: [Neo4j] Re: Importing data in Neo4j

2014-04-17 Thread Alex Frieden
Any chance you can create a graphgist if you are using cypher or provide code if you are using the java api. Thanks! On Thu, Apr 17, 2014 at 8:07 PM, TC wrote: > Hi, I have the similar question here. > While my data is just two part: startnode and endnode. > They don't have such label properti

[Neo4j] [SDN 3.0.2] / Potential bug with @Fetch annotation

2014-04-17 Thread Michael Azerhad
Hi, I know that SDN 3.X.X is not full tested yet but I come across this potential bug, and I would like to know if it is a "known" one: I have an acceptance test written using Specs2 (using a pretty DSL) containing this: meetingRepository.findAllParticipants(meetingId) must have size 3

Re: [Neo4j] how to run TraversalExample.java example

2014-04-17 Thread TC
why cannot i use this way to create node use int array int[] newnode=new int[10]; for(int i=0; i > Hi! > > Did you initialize the db field? > > Something like > db = new GraphDatabaseFactory().newEmbeddedDatabase( "path/to/db" ); > > /anders > > > On Thu, Apr 17, 2014 at 9

Re: [Neo4j] Creating Multiple nodes

2014-04-17 Thread TC
Hi, I had the similar question here I'm try to create the neo4j node in eclipse using following code. i try to import the large data file which the connection and node are just simple number. int[] newnode=new int[10]; for(int i=0; i > Hi, > > Here are some references to get you started: > > T

[Neo4j] Re: Importing data in Neo4j

2014-04-17 Thread TC
Hi, I have the similar question here. While my data is just two part: startnode and endnode. They don't have such label properties. Can they run on neo4j too? I didn't find a tutorial to follow. Thanks On Tuesday, September 24, 2013 4:23:32 AM UTC-7, Fares Bady wrote: > > Hi, > > > > I am writing

[Neo4j] Bug in cypher when filtering collection ?

2014-04-17 Thread Tom Zeppenfeldt
I'm running a cypher query containing this: MATCH (tt)<-[tu:ADD|REMOVE]-(tv:tocversion) WITH tt,tu,tv ORDER BY tt.id,tv.version DESC WITH tt,COLLECT([type(tu),tv.version]) AS tus RETURN tt.id, [x IN tus WHERE x[1]=2 | [x[0],x[1]]] AS filtered which produces correct results. However, if I repl

Re: [Neo4j] Re: Cypher query for time-based relationship.

2014-04-17 Thread Alx
Thank you all for the replies! They were really helpful. Christopher, please let me know of any links to read about time-based graphs. On Thursday, April 17, 2014 10:31:39 AM UTC-4, Michael Hunger wrote: > > You could also do: > > MATCH (n:User { id:'1'}) - [r:TEXTED]-> (m) WITH n,collect(r.yea

Re: [Neo4j] how to run TraversalExample.java example

2014-04-17 Thread TC
Thanks How I can call the function when i do this way op.createTheGraph(); op.knowsLikesTraverser(A); it seems wrong. On Thursday, April 17, 2014 3:56:44 AM UTC-7, Anders Nawroth wrote: > > Hi! > > Did you initialize the db field? > > Something like > db = new GraphDatabaseFactory().newEmbedd

[Neo4j] Re: org.neo4j.gis.spatial.SimplePointLayer.findClosestPointsTo(Coordinate, double) very low performance

2014-04-17 Thread Angelo Immediata
Hi there...any tips on this issue? I'm having the same problem in my own scenario. Thank you Angelo Il giorno mercoledì 16 aprile 2014 17:59:38 UTC+2, Antonio Grimaldi ha scritto: > > Hi, > We are using Neo4J 2.0 embedded and have a Graph with around 1 Million of > Nodes, and 50 Million of re

Re: [Neo4j] Re: Cypher query for time-based relationship.

2014-04-17 Thread Michael Hunger
You could also do: MATCH (n:User { id:'1'}) - [r:TEXTED]-> (m) WITH n,collect(r.year) as years WHERE '2013' in years and not '2014' in years return n Michael Am 16.04.2014 um 21:30 schrieb Christopher Hendrix : > Why not a > > (u1:User { name: "Alice"} )-[:WROTE]->(t1:TextMessage { year: 201

Re: [Neo4j] Save queries in browser permamently

2014-04-17 Thread Michael Hunger
We're working on a solution for that, stay tuned. Cheers, Michael Am 17.04.2014 um 08:26 schrieb tomasz.mrug...@fastwhitecat.com: > HI, > I use a browser, but I want to share my queries with other, how can I modify > neo4j to save my custom queries and display like a default in browser at the

[Neo4j] Re: Serializing/Deserialzing Collections of properties using .NET and the Neo4jClient

2014-04-17 Thread Yuquan Wang
Hi,wilsonjan. I also met the problem.Did you solve it? 在 2013年2月8日星期五UTC+8下午4时06分41秒,wilsonjan写道: > > I'm using the Neo4jClient to create nodes in neo4j and would like to know > if there is a way to serialize and deserialize objects against .net types > which contain dictionaries to hold values

Re: [Neo4j] tableau with neo4j

2014-04-17 Thread Tom V
Hi Ralf, I hope I'm not stealing Alex's thread, but I'm also interested in the possibility of considering Tableau integration with Neo4j so I thought I'd chime in too. My use case would be for utilizing Neo4j as a data warehouse - as a consideration. Access from Tableau would be similar to ot

[Neo4j] Re: Cypher query for time-based relationship.

2014-04-17 Thread Christopher Hendrix
Why not a (u1:User { name: "Alice"} )-[:WROTE]->(t1:TextMessage { year: 2013 })<-[:RECEIVED]-(u2:User { name: "Bob" }) ? Then your query becomes MATCH (u1:User { name: "Alice" })-[:WROTE]->(t:TextMessage { year: 2013 }) RETURN count(DISTINCT t) On Wednesday, April 16, 2014 11:35:47 AM UTC-

Re: [Neo4j] Neoclipse support for neo4j 2.x

2014-04-17 Thread Jerry close
I would love to use Neoclipse with Neo4j 2 but I am still having problems. Has there been any progress? On Friday, January 10, 2014 4:45:34 AM UTC-5, Peter Neubauer wrote: > > Aj, > yeah, we are still behind on Neoclipse. However, isn't Neoclipse an > exmplicit manual tool and tedious by definit

[Neo4j] Save queries in browser permamently

2014-04-17 Thread tomasz . mrugala
HI, I use a browser, but I want to share my queries with other, how can I modify neo4j to save my custom queries and display like a default in browser at the begining. Best regards. Tomasz Mrugała. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To

[Neo4j] A neo4j experiment: lookup nodes vs. labels

2014-04-17 Thread M. David Allen
Hello, Prompted by a recent SO question on establishing "partitions" in graphs, I ran a tiny little experiment to compare the use of "lookup nodes" with the use of labels from a performance perspective.I'd appreciate feedback if someone has a moment: https://gist.github.com/moxious/1088855

Re: [Neo4j] how to run TraversalExample.java example

2014-04-17 Thread Anders Nawroth
Hi! Did you initialize the db field? Something like db = new GraphDatabaseFactory().newEmbeddedDatabase( "path/to/db" ); /anders On Thu, Apr 17, 2014 at 9:11 AM, Tingting Cui wrote: > when i try to run TraversalExample.java example and create the graph like > this > it give me error like th

[Neo4j] [SDN 3.0.X / How to consider a two subclasses of the same parent as the same node in the graph

2014-04-17 Thread Michael Azerhad
Hi, Basically, I have 3 Java classes: - B subclassing A - C subclassing A Since B and C have the same properties, I don't want to end up with two distinct types of node when I store them to the graph. Moreover, in the reality world, it targets the same entity. Otherwise, it would lead

[Neo4j] Re: org.neo4j.gis.spatial.SimplePointLayer.findClosestPointsTo(Coordinate, double) very low performance

2014-04-17 Thread Antonio Grimaldi
Hi Michael, thanks for the answer. I'm using *neo4j 2.0*, *neo4j spatial 0.12-neo4j-2.0.0* and *neo4j.graph.collections 0.7.1-neo4j-2.0.0* in order to build a route system. I'ld like to create my own graph model; in my graph model I'ld like to: - create nodes and index them by usin

[Neo4j] how to run TraversalExample.java example

2014-04-17 Thread Tingting Cui
when i try to run TraversalExample.java example and create the graph like this it give me error like this Exception in thread "main" java.lang.NullPointerException at setupneo4j.TraversalExample.(TraversalExample.java:23) at setupneo4j.TraversalExample.main(TraversalExample.java:33) what is the p