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] SDN 3.0.0 / Updating a relationship fails

2014-03-13 Thread Michael Azerhad
I've just fixed the deadlock: I was missing the "tx.close()" statement at the end of each of my transaction. Now I seek for the reason why my cars is empty, after the save.. using embedded mode. When using REST mode, it still works. I would just like to have the confirmation that the way I exp

Re: [Neo4j] SDN 3.0.0 / Updating a relationship fails

2014-03-13 Thread Michael Azerhad
It sounds to be a deadlock: A deadlock scenario has been detected and avoided. This means that two ormore transactions , which were holding locks, were wanting to await locks held by one another,which would have resulted in a deadlock between these transactions. This exception was thrown inste

Re: [Neo4j] Schema Indexes on RELATIONSHIP Properties ?

2014-03-13 Thread Michael Hunger
No, not yet and the foreseeable future. There will be other means that take care of that. E.g. statistics on the graph. Am 13.03.2014 um 11:19 schrieb Michele Piunti : > Hello, > It is said that Schema Indexes are to be created in labelled nodes > (http://docs.neo4j.org/chunked/milestone/rest-a

Re: [Neo4j] SDN 3.0.0 / Updating a relationship fails

2014-03-13 Thread Michael Hunger
How does it fail? D Am 14.03.2014 um 01:54 schrieb Michael Azerhad : > Hi, > > I try to update the relationship of a Node that is a collection. > Example: User has a list of Cars. > > Firstly, I saved the User with the Cars set beforehand, and the whole works > with embedded mode and REST mode.

[Neo4j] Documentation on Thread Stack Size

2014-03-13 Thread Brant Boehmann
Neo4J docs on this page ( http://docs.neo4j.org/chunked/stable/configuration-jvm.html) state "Note that the stack size is shared for all threads, so if you application is running a lot of concurrent threads it is a good idea to increase the stack size." Unless I'm misunderstanding something, thi

[Neo4j] Schema Indexes on RELATIONSHIP Properties ?

2014-03-13 Thread Michele Piunti
Hello, It is said that Schema Indexes are to be created in labelled nodes (http://docs.neo4j.org/chunked/milestone/rest-api-schema-indexes.html). The question is quite simple: Is it feasible to create a *schema index on RELATIONSHIPs*' properties, ie. to be used to optimize Cypher Queries or tra

[Neo4j] Query using neo4j embedded in java

2014-03-13 Thread Saugata Bose
I have 2 nodes: person{name, password} and city{name}. and a relationship between these two is (person) [:LIVES_IN]->(city). I am trying to generate a query to find out who are those people living in city X(where X will be coming from a text box). I am trying to construct this query following

Re: [Neo4j] Spatial Index - extra node performance question

2014-03-13 Thread Michael Hunger
Am 13.03.2014 um 18:52 schrieb Zeeshan Arif : > Hi, > > I just learnt in the webinar that when adding an node to Spatial index, it > adds a node also in DB. Questions around it: > > - Will this node have any implication on performance of normal querying on > the DB? Like, if I have a lable of

Re: [Neo4j] Storing each events associated to a node as a relationship with this node

2014-03-13 Thread Michael Azerhad
Understood ! :) Thanks a lot for this clear answer. Besides, nice signature :) (the nodes) Michael On Friday, March 14, 2014 1:48:20 AM UTC+1, Michael Hunger wrote: > > In everything up to 2.0 it is affected, so you would probably add an > intermediate "Events" node that holds all the individu

[Neo4j] SDN 3.0.0 / Updating a relationship fails

2014-03-13 Thread Michael Azerhad
Hi, I try to update the relationship of a Node that is a collection. Example: User has a list of Cars. Firstly, I saved the User with the Cars set beforehand, and the whole works with embedded mode and REST mode. Now, I want to add one Car to the list of this User. So I tried the following:

Re: [Neo4j] Storing each events associated to a node as a relationship with this node

2014-03-13 Thread Michael Hunger
In everything up to 2.0 it is affected, so you would probably add an intermediate "Events" node that holds all the individual events there. Or you would actually create a linked chain of events of which only the head is connected to the user which you would then reconnect to the new head. In 2.1

Re: [Neo4j] Neo4j as a service?

2014-03-13 Thread Jim Salmons
Kevin, You can't start, stop, etc. a Windows service until you install the service which is what the install batch file does at lines 72-73. Just read the file if you are concerned about what it does. Once the service is installed, you can start, stop, restart it at will via the neo4j.bat whic

Re: [Neo4j] SPARQL plugin build failure: Unable to start server on localhost:7474

2014-03-13 Thread Michael Hunger
Hi, could you share more details? How/when you cloned the plugin, what you changed and how it exactly doesn't work? Cheers, Michael (michael)-[:SUPPORTS]->(YOU)-[:USE]->(Neo4j) Learn Online, Offline or Read a Book (in Deutsch) We're trading T-shirts for cool Graph Models Am 13.03.2

[Neo4j] NULL and creating relationships.

2014-03-13 Thread Kevin Burton
Say I have the following Cypher statement: MERGE (a:Person {name: {value1}})-[r:KNOWS]->(b:Person {name: {value2}}) Do I need to check for NULL here if one or the other node isn't found (so I am assuming it will be NULL)? If a and/or b are NULL is the MERGE (or CREATE) smart enough not to c

[Neo4j] Re: SPARQL plugin build failure: Unable to start server on localhost:7474

2014-03-13 Thread hello world
> > I am using Neo4j 2.0.1 community edition for Mac, java 1.7.0_51, OS X > 10.9.2 > -- 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.co

[Neo4j] SPARQL plugin build failure: Unable to start server on localhost:7474

2014-03-13 Thread hello world
Hello, I'm unable to build SPARQL plugin. When running mvn package clean, I get the following error: Tests in error: org.neo4j.server.plugin.sparql.SPARQLPluginFunctionalTest: Unable to start server on localhost:7474 Help is much appreciated, since I lost the whole day on it and am un

[Neo4j] Spatial Index - extra node performance question

2014-03-13 Thread Zeeshan Arif
Hi, I just learnt in the webinar that when adding an node to Spatial index, it adds a node also in DB. Questions around it: - Will this node have any implication on performance of normal querying on the DB? Like, if I have a lable of nodes :actors and I add them to spatial Index, will a Cypher

Re: [Neo4j] Neo4j as a service?

2014-03-13 Thread Kevin Burton
When I uninstall the version that was installed by the msi and extract the contents of the zip archive and like the instructions I execute 'bin\neo4j start', I get: C:\Neo4j\neo4j-community-2.0.1>bin\neo4j start This command is not supported by the Neo4j utility. Please try "Neo4j.bat h

[Neo4j] Re: Storing each events associated to a node as a relationship with this node

2014-03-13 Thread Michael Azerhad
More specifically, could it impact some traversal from the nodes independent of the node events? For instance: (event) -> (user) -> . ^ | (event)

[Neo4j] Storing each events associated to a node as a relationship with this node

2014-03-13 Thread Michael Azerhad
Hi, My question is simple: I have a User node. Each time an action is made in my application concerning the User, (for instance an Authentication event (loginTimestamp, etc..)), I create the corresponding Event node and attached it to the User node. It's a kind of event store, with each even

Re: [Neo4j] Bug in Node.getRelationships function?

2014-03-13 Thread Michael Hunger
Don't use 2.1-M01 for critical development, it is a milestone / feedback release. Cheers, Michael (michael)-[:SUPPORTS]->(YOU)-[:USE]->(Neo4j) Learn Online, Offline or Read a Book (in Deutsch) We're trading T-shirts for cool Graph Models Am 13.03.2014 um 12:26 schrieb Sotiris Beis :

Re: [Neo4j] Bug in Node.getRelationships function?

2014-03-13 Thread Sotiris Beis
Ok, can you suggest me another temporary solution? On 03/13/2014 01:24 PM, Michael Hunger wrote: Thanks for the feedback. Could be related to the changes in the store format for heavily connected nodes. We'll investigate. Cheers, Michael (michael )-[:SUPPOR

Re: [Neo4j] Bug in Node.getRelationships function?

2014-03-13 Thread Michael Hunger
Thanks for the feedback. Could be related to the changes in the store format for heavily connected nodes. We'll investigate. Cheers, Michael (michael)-[:SUPPORTS]->(YOU)-[:USE]->(Neo4j) Learn Online, Offline or Read a Book (in Deutsch) We're trading T-shirts for cool Graph Models Am 13

Re: [Neo4j] Bug in Node.getRelationships function?

2014-03-13 Thread Sotiris Beis
Which version of Neo4j are you using? I use neo4j-2.1.0-M01 You use a Set which elminates duplicates. You probably have duplicate neighbourId's that are only 100 distinct ones. That was my first thought, but I cheched it. There are no dublicates. Why do you think the result is different when

Re: [Neo4j] Bug in Node.getRelationships function?

2014-03-13 Thread Michael Hunger
Which version of Neo4j are you using? You use a Set which elminates duplicates. You probably have duplicate neighbourId's that are only 100 distinct ones. And you close the transaction twice. It is an auto-closable resource so you can remove your manual tx.close() line. Cheers, Michael

[Neo4j] Bug in Node.getRelationships function?

2014-03-13 Thread Sotiris Beis
I have the following case study. I want to get the neighbors of the certain node. My function is this one: public Set getNeighborsIds(int nodeId) { Set neighbours = new HashSet(); try (Transaction tx = neo4jGraph.beginTx()) { Node n = nodeIndex.get("nodeId", nodeId).getSingle(); for(Relationship r

Re: [Neo4j] Neo4j server and jersey 2.x

2014-03-13 Thread Jim Webber
Hi Bo, If you do naive traversals with the REST API (traversing one relationship per HTTP request), it'll be an order of magnitude slower than the Java API because of the network overhead. That's because the default REST API is intended for exploration (at human scales) rather than transaction

[Neo4j] Neo4j server and jersey 2.x

2014-03-13 Thread Bo Ferri
Hi guys, we are experimenting with setting up neo4j in our application. our current approach is to initialise a GraphDatabaseService (because we thought that this might be the fastest way to access the db) and utilise the (deprecated) WrappingNeoServerBootstrapper to encapsulate it in a neo4j

Re: [Neo4j] Clustering in Neo4j

2014-03-13 Thread Navrattan Yadav
i try to use HighlyAvailableGraphDatabaseFactory but got following error.. i tryed but not found any jar in 2.0 for c