Re: [Neo4j] Relationship property not stored

2016-05-17 Thread Luanne Coutinho
Hi Johan, I don't see why this should not be saved- do you have a small test to demonstrate the issue? Thanks Luanne On Wed, May 18, 2016 at 2:49 AM, Johan Kumps wrote: > Hi, > > I'm using this the RelationshipEntity below: > >

Re: [Neo4j] Neo4j-spring-data(4.1.1) self relationship (parent-child) is duplicated

2016-05-09 Thread Luanne Coutinho
Hi Pulkit, Would you be able to give us a simple test that demonstrates the issue? Thanks Luanne On Sun, May 1, 2016 at 9:47 PM, pulkit mehra wrote: > I am using spring-data-4.1.1 & Neo4j 2.3.2 with ogm annotations > > Below is my entity > > @NodeEntity(label =

Re: [Neo4j] Error in documentation anchor tag URL

2016-03-29 Thread Luanne Coutinho
Thanks for this, we'll have it fixed. Regards Luanne On Tue, Mar 29, 2016 at 8:19 PM, Muhammad Gelbana wrote: > I was reading this documentation > > and then found a link to CRUD with

Re: [Neo4j] How do Entity IDs in sdn4-university work?

2016-03-28 Thread Luanne Coutinho
Fair enough- since the sample application supports deleting entities, the problem may arise, even with short lived sessions. We'll update SDN4-University for this. Regards Luanne On Fri, Mar 25, 2016 at 11:33 PM, Tim Colson wrote: > SDN only uses the internal node id's

Re: [Neo4j] How do Entity IDs in sdn4-university work?

2016-03-25 Thread Luanne Coutinho
Hi Tim, SDN only uses the internal node id's to attach entities to the graph. Since these entities should be managed by SDN within the context of a Session, which is relatively short-lived, it isn't a problem. If you delete entities externally i.e. not via SDN, then please make sure that your

Re: [Neo4j] How do Entity IDs in sdn4-university work?

2016-03-21 Thread Luanne Coutinho
Hi Tim, SDN uses the internal Neo4j node or relationship ID to track domain entities. This is the same as in the Neo4j browser. The @GraphId annotation is used to indicate which java.lang.Long

Re: [Neo4j] Re: Spring Data Neo4j Repositories (Safe to return List?)

2016-03-10 Thread Luanne Coutinho
Hi Eric, if you're referring to Spring Data Neo4j 4+, and return types of derived finders/custom queries, then yes, you can return a List. Regards Luanne On Fri, Mar 11, 2016 at 12:01 AM, Eric Fulton wrote: > oh please answer me > > > On Wednesday, March 9, 2016 at

Re: [Neo4j] org.neo4j.ogm.session.result.ResultProcessingException: "errors":[{"code":"Neo.ClientError.Statement.InvalidType","message":"Expected a numeric value for empty iterator, but got null"}]}

2016-01-20 Thread Luanne Coutinho
Hi Stefan, Can you send the entire debug log? (add to a logback.xml in the classpath) Thanks Luanne On Thu, Jan 21, 2016 at 1:15 AM, Stefan Polyanszky wrote: > Hi there, > > I have a big project coming up and i consider Neo4j as my primary > database. > My problem is,

Re: [Neo4j] Extreme memory rise on neo4j-server when saving entities using OGM

2015-11-23 Thread Luanne Coutinho
;startNodeId":2891,"endNodeId":2929,"relRef":"_38"},{"startNodeId":2891,"endNodeId":2930,"relRef":"_39"},{"startNodeId":2891,"endNodeId":2895,"relRef":"_4"},{"startNodeId"

Re: [Neo4j] Extreme memory rise on neo4j-server when saving entities using OGM

2015-11-17 Thread Luanne Coutinho
Hi Ivan, When you create relationships, are the nodes on either end already persisted? Or are you creating both new nodes and relationships to those in one go via the save with depth -1? How many relationships approximately are created via a single save? -Luanne On Wed, Nov 18, 2015 at 6:16 AM,

Re: [Neo4j] Neo4j-OGM child confusion after reload

2015-09-06 Thread Luanne Coutinho
Hi Max, This is a case where the OGM attempts to infer the relationship mapping because the object model does not correspond to the graph model. When the relationship cannot be mapped in both directions, it maps whichever direction it can and then the next thing it does is to try and find

[Neo4j] Re: neo4j-ogm and OneJar (and ultimately OSGi)

2015-08-20 Thread Luanne Coutinho
Hi Max, You're right, the OGM hasn't actually picked up this jar- possibly because the domain classes are located in a directory within the jar. It's something we'll have to investigate- I've opened https://github.com/neo4j/neo4j-ogm/issues/31 Regards Luanne On Thu, Aug 20, 2015 at 3:54 AM, Max

Re: [Neo4j] problem with neo4j-ogm

2015-08-18 Thread Luanne Coutinho
Hi Max, You've got to supply the packages to be scanned for domain metadata to the SessionFactory. ogm-monolith.domain doesn't contain Resource- change to SessionFactory sf = new SessionFactory(org.springdot.ogm.eval.entities); and that should do it. Regards Luanne On Wed, Aug 19, 2015 at

Re: [Neo4j] Re: Does or will Spring Data Neo4j 4.0 support @Query annotations in node entities ?

2015-04-22 Thread Luanne Coutinho
Hi @Query is currently only available on Repository methods. We discussed adding it to domain entity classes, and decided to defer that for M1, primarily for complexity/performance reasons. (Imagine a node entity with 10 @Query annotations and then a request to load a couple of hundred of those

Re: [Neo4j] How to put username and passowrd in GraphDatabaseService

2015-01-20 Thread Luanne Coutinho
If you're using the JDBC driver then you'll get a java.sql.Connection, not a GraphDatabaseService. Send your username/password via properties: Properties connectionProps = new Properties(); connectionProps.put(user, username); connectionProps.put(password, password); //For embedded Connection

Re: [Neo4j] How to put username and passowrd in GraphDatabaseService

2015-01-20 Thread Luanne Coutinho
wrote: Luanne, It is not accepting put(user, username) method. -Sukaant Chaudhary http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479 On Wed, Jan 21, 2015 at 10:47 AM, Luanne Coutinho luanne.couti...@gmail.com wrote: java.util.Properties On Wed, Jan 21, 2015 at 10:30 AM, Sukaant

Re: [Neo4j] Filter out if reference exists

2014-08-24 Thread Luanne Coutinho
Hi, Try MATCH (bob:Actor { name:Bob }) MATCH (keanu:Actor { name:Keanu Reeves })-[:ACTS_IN]-(movie) WHERE NOT ((bob)-[:ACTS_IN]-(movie)) RETURN movie; Regards Luanne On Wed, Aug 20, 2014 at 4:28 AM, Adrien Delorme grata...@gmail.com wrote: Hello, Given the following Dataset : CREATE

Re: [Neo4j] Unique relation among all nodes

2014-08-06 Thread Luanne Coutinho
Hi Sukaant, You can check that b does not already have an existing relation of this type in any direction to any other node. e.g. MATCH (b:Person { name:'b' }) MATCH (c:Person { name:'c' }) WHERE NOT ((b)-[:Husband]-()) MERGE (c)-[:Husband]-(b) //no relation is created since b already has a

Re: [Neo4j] Help using CYPHER Reduce and math operations for total

2014-07-18 Thread Luanne Coutinho
Hi, Which version are you using? If you're on 2.0 then this should work: MATCH c WHERE HAS (c.A) AND HAS (c.B) WITH collect(c) AS allC RETURN reduce(total = 0, x IN allC| total + abs(x.A - x.B)) AS sum and if on 1.9 then START c=node(*) WHERE HAS (c.A) AND HAS (c.B) WITH collect(c) AS allC

Re: [Neo4j] Help using CYPHER Reduce and math operations for total

2014-07-18 Thread Luanne Coutinho
Well on 1.9 you may need a with: START c=node(*) WHERE HAS (c.A) AND HAS (c.B) WITH collect(c) AS allC with reduce(total = 0, x IN allC| total + abs(x.A - x.B)) AS sum return sum On Fri, Jul 18, 2014 at 10:09 PM, Luanne Coutinho luanne.couti...@gmail.com wrote: Hi, Which version are you

Re: [Neo4j] finding all reachable nodes

2014-06-10 Thread Luanne Coutinho
Hi Ankur, Can you give us some more details? What does your graph look like? Thanks Luanne On Mon, Jun 9, 2014 at 9:55 PM, Ankur goel ankurgoel7...@gmail.com wrote: How can effectively one found all nodes reachable from a particular node. Example : *700

Re: [Neo4j] Error while opening DB in server

2014-03-26 Thread Luanne Coutinho
Crosspost, please see http://stackoverflow.com/questions/22660808/error-in-neo4j-starting-on-windows Regards Luanne On Thu, Mar 27, 2014 at 8:22 AM, Beginner abhay.praka...@gmail.com wrote: I have created a DB through java program, but when I tried to open that in neo4j server I got the

Re: [Neo4j] Query using neo4j embedded in java

2014-03-13 Thread Luanne Coutinho
Hi, There are a number of concepts here that I'd advise understanding in some more depth- 1. The ExecutionResult api and structure of Cypher statements (see that you return a person but expect to read a column called name) 2. Labels: Your query includes a city label but your code does not create

Re: [Neo4j] Creating Multiple nodes

2014-03-12 Thread Luanne Coutinho
Hi, Here are some references to get you started: The online training course: http://www.neo4j.org/learn/online_course Learn Cypher: http://www.neo4j.org/tracks/cypher_track_start Pick a driver to start coding: http://www.neo4j.org/develop The manual: http://docs.neo4j.org/chunked/stable/ Let

Re: [Neo4j] How to add the Unique Relation

2014-02-27 Thread Luanne Coutinho
, 2014 at 3:14 PM, Sukaant Chaudhary sukaant.chaudh...@gmail.com wrote: Yes Luanne, exactly. -Sukaant Chaudhary [image: linkedinbutton]http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479/ On Thu, Feb 27, 2014 at 3:11 PM, Luanne Coutinho luanne.couti...@gmail.com wrote: Hi Sukaant

Re: [Neo4j] How to add the Unique Relation

2014-02-27 Thread Luanne Coutinho
[image: linkedinbutton]http://in.linkedin.com/pub/sukaant-chaudhary/33/ba8/479/ On Thu, Feb 27, 2014 at 3:23 PM, Luanne Coutinho luanne.couti...@gmail.com wrote: Please try START n=node(18876), m=node(18877) OPTIONAL MATCH n-[r:PERMANENT|TEMPORARY]-m //Find any existing relations WITH n,m

Re: [Neo4j] help with query

2014-01-14 Thread Luanne Coutinho
Return goes before Order by? MATCH (s:VcfRecord)--(v:VcfMeta) WITH s,v,count(v) as mycount WHERE mycount 1 RETURN id(s),v ORDER BY id(s) DESC LIMIT 100 On Tue, Jan 14, 2014 at 7:04 PM, Alex Frieden a...@frieden.org wrote: trying to run: *MATCH (s:VcfRecord)--(v:VcfMeta) WITH s,v,count(v)

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 ramesh.yakk...@gmail.comwrote: Hi, I setup the HA

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

Re: [Neo4j] Please help me to correct this query

2013-12-30 Thread Luanne Coutinho
Hi Sukaant, What's the error? -Luanne On Mon, Dec 30, 2013 at 3:07 PM, Sukaant Chaudhary sukaant.chaudh...@gmail.com wrote: Hi, Please help me to correct following query: START n=node(2), m=node(*), l=node(*) MATCH p=(n)-[r:FOLLOWED_BY*]-(m), q=(m)-[r:PUBLISHED_UNDER*]-(l) WITH

Re: [Neo4j] Please help me to correct this query

2013-12-30 Thread Luanne Coutinho
() OR l.eventEndDate + l.eventEndTime=timestamp(), l RETURN l ORDER BY startDateTime ASC SKIP 0 LIMIT 25 -Sukaant Chaudhary On Mon, Dec 30, 2013 at 3:32 PM, Luanne Coutinho luanne.couti...@gmail.com wrote: Hi Sukaant, What's the error? -Luanne On Mon, Dec 30, 2013 at 3:07 PM, Sukaant Chaudhary

Re: [Neo4j] Please help me to correct this query

2013-12-30 Thread Luanne Coutinho
)-[r:PUBLISHED_UNDER*]-(l) WITH l.eventStartDate + l.eventStartTime as startDateTime = timestamp() OR l.eventEndDate + l.eventEndTime=timestamp(), l RETURN l ORDER BY startDateTime ASC SKIP 0 LIMIT 25 -Sukaant Chaudhary On Mon, Dec 30, 2013 at 3:32 PM, Luanne Coutinho luanne.couti

Re: [Neo4j] Please help me to correct this query

2013-12-30 Thread Luanne Coutinho
; Right: 1388404459272 -Sukaant Chaudhary On Mon, Dec 30, 2013 at 5:22 PM, Luanne Coutinho luanne.couti...@gmail.com wrote: 5 is the max hops (See Variable length relationships in http://docs.neo4j.org/chunked/stable/query-match.html#_relationships_in_depth ) START n=node(2) MATCH (n

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

2013-12-30 Thread Luanne Coutinho
l.eventStartDate + l.eventStartTime = '2013-12-3017:37:00' OR l.eventEndDate + l.eventEndTime=2013-12-3017:37:00 RETURN l ORDER BY l.eventStartDate + l.eventStartTime ASC SKIP 0 LIMIT 25 - == ^ -Sukaant Chaudhary On Mon, Dec 30, 2013 at 5:38 PM, Luanne Coutinho luanne.couti...@gmail.com

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

2013-12-30 Thread Luanne Coutinho
= 2013-12-3017:37:00 OR l.eventEndDate + l.eventEndTime=2013-12-3017:37:00 RETURN l ORDER BY l.eventStartDate + l.eventStartTime ASC SKIP 0 LIMIT 25 - == Please check this -Sukaant Chaudhary On Mon, Dec 30, 2013 at 6:07 PM, Luanne Coutinho luanne.couti...@gmail.com wrote: You

Re: [Neo4j] Is GraphGist down?

2013-12-19 Thread Luanne Coutinho
I checked on Chrome 31.0.1650.63 m on Windows 7 Professional (SP1) and there are no Javascript errors, just the following warnings + log (and the page loads perfectly): event.returnValue is deprecated. Please use the standard event.preventDefault() instead.