Re: [Neo4j] Spring Data Graph / Neo4j – Problems with OO Inheritance Polymorphism relation semantics

2011-10-27 Thread Agelos Pikoulas
Thank you Michael - wish you 'll have a great conference we're all looking forward for the online materials :-) On Wed, Oct 26, 2011 at 8:14 PM, Michael Hunger michael.hun...@neotechnology.com wrote: Angelos, I'm currently at SpringOne and quite swamped, I get back to you as soon as

[Neo4j] Transaction and REST API

2011-10-27 Thread Kristen Eisenberg
Hi Ido, How will you go about implement such change using REST interface? With the current default REST interface, you can't. But you can write an extension (either in the managed framework, or if you're brave/desperate in the unmanaged framework through JAX-RS) which can do this. I imagine

[Neo4j] Primary Like ID Across Class Types

2011-10-27 Thread rbuckland
Hi, I noted in playing with spring-data-neo4j that the Node's under neo4j Don't have an ID key like typically we would in an RDBMS scenario. My use case, in short is the application I will be building out will have, a really simple Web Interface with REST type URLs. So .. for example, I will be

Re: [Neo4j] Primary Like ID Across Class Types

2011-10-27 Thread rbuckland
I have posted the relevant code online, interested to see what people think. like - man you just over-engineered that ! http://rbtech.blogspot.com/2011/10/neo4j-2nd-look-setting-primary-key-on.html -- View this message in context:

Re: [Neo4j] neo4j-advanced-1.5.M02 can`t run in Windows 7 64 bit

2011-10-27 Thread rbuckland
What JDK are you using ? Where is the path E:\document\neo4j\Neo4j\neo4j-advanced-1.5.M02\data\graph.db\neostore ? Is that a network path as the error message looks a bit suspicious. I do have Windows 7 64bit so can try it later. -- View this message in context:

Re: [Neo4j] neo4j-advanced-1.5.M02 can`t run in Windows 7 64 bit

2011-10-27 Thread Rick Bullotta
The error messages indicates that the database is already open. Is Neoclipse open or another instance of the server running? Or some code that is opening the database in embedded mode? -Original Message- From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On

[Neo4j] Function to check whether two nodes are connected?

2011-10-27 Thread Bruno Paiva Lima da Silva
Hello there! First of all, thanks for the help in all my previous questions, all the answers have been helping me to use Neo4j with success. I have a very simple question, but I haven't found the answer yet... I'd like to have a function, which signature would be more or less like this:

Re: [Neo4j] Function to check whether two nodes are connected?

2011-10-27 Thread Peter Neubauer
Bruno, There is no such function low level, but toy can use a Shortest path algo to check this. What is the maximum length for a path between the nodes? On Oct 27, 2011 6:14 PM, Bruno Paiva Lima da Silva bplsi...@gmail.com wrote: Hello there! First of all, thanks for the help in all my previous

Re: [Neo4j] Transaction and REST API

2011-10-27 Thread Peter Neubauer
Yes, + 1 on contributions of useful rest plugins. I would like to see them listed in the manual, and keep the docs somewhere central. Suggestions? On Oct 27, 2011 12:35 PM, Kristen Eisenberg kristen.eisenb...@yahoo.com wrote: Hi Ido, How will you go about implement such change using REST

Re: [Neo4j] Function to check whether two nodes are connected?

2011-10-27 Thread Bruno Paiva Lima da Silva
Easy: just one. For now, I've written this, but I'm still not sure it is the simplest way to write it public boolean areConnected(Node n1,Node n2,Relationship rel,Direction dir) throws Exception { IterableRelationship relationships = n1.getRelationships(dir); for

Re: [Neo4j] Function to check whether two nodes are connected?

2011-10-27 Thread Niels Hoogeveen
There is one caveat to this method, you'd have to know which node is most densely connected. Suppose one of the nodes has 100,000 relationships (incoming and outgoing) and the other node has only a few relationships, then you'd want to iterate over the relationships of the second node. A

Re: [Neo4j] Function to check whether two nodes are connected?

2011-10-27 Thread Niels Hoogeveen
I see I made a bit of a mistake with this one. The gist of the solution remains, but I made a mistake dealing with the directions of relationship. It should be something like this. public boolean areConnected(Node n1,Node n2, RelationshipType relType,Direction dir) { Direction dir2 = null;

Re: [Neo4j] Function to check whether two nodes are connected?

2011-10-27 Thread Peter Neubauer
Good catch Niels, thanks - my brain is in jet lag mode :-\ On Oct 27, 2011 7:26 PM, Niels Hoogeveen pd_aficion...@hotmail.com wrote: I see I made a bit of a mistake with this one. The gist of the solution remains, but I made a mistake dealing with the directions of relationship. It should be

Re: [Neo4j] Function to check whether two nodes are connected?

2011-10-27 Thread Niels Hoogeveen
You know me and my obsession for densely connected nodes :-) Date: Thu, 27 Oct 2011 17:37:07 + From: peter.neuba...@neotechnology.com To: user@lists.neo4j.org Subject: Re: [Neo4j] Function to check whether two nodes are connected? Good catch Niels, thanks - my brain is in jet lag mode

Re: [Neo4j] 1.5M02 failed to start on reboot

2011-10-27 Thread KanTube
Chris, my servers are not in HA, i have two dev servers and one uat server all running the community edition with one dev server running two services at the same time. the issue was on the uat server. i will send you the files you requested i deleted the data directory because i had an

Re: [Neo4j] Spring Data Graph / Neo4j – Problems with OO Inheritance Polymorphism relation semantics

2011-10-27 Thread Jean-Pierre Bergamin
Hi Agelos Regarding your 2nd point: 2) 2) The minor issue I have regards (the otherwise brilliant) @Query, due to its constraint of annotating (mainly) Iterable and NOT allowing Set, List etc (a runtime exception is thrown org.springframework.data.neo4j.conversion.QueryResultBuilder$1

[Neo4j] REST api get list of all relationship properties (unique)

2011-10-27 Thread jure
Dear All, I would like to extract a list of unique properties used for all relationships using the REST API. I created a relationship index and indexed all properties. When I query for * using the REST API for the lucene query, I receive lots of relationships, so it's difficult to get a unique

Re: [Neo4j] REST api get list of all relationship properties (unique)

2011-10-27 Thread Peter Neubauer
Jure, if you know the Lucene query in Java, you could write a Groovy/Java script directly accessing the IndexAPI and thus do your own Lucene magic, see http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html#rest-api-send-an-arbitrary-groovy-script---lucene-sorting for an example with custom

Re: [Neo4j] REST api get list of all relationship properties (unique)

2011-10-27 Thread Jure Zakotnik
Hello Peter, many thanks for the quick reply, this will help! Regards Jure -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/REST-api-get-list-of-all-relationship-properties-unique-tp3458852p3458999.html Sent from the Neo4j Community Discussions mailing

Re: [Neo4j] Primary Like ID Across Class Types

2011-10-27 Thread Tatham Oddie
Hi Ramon, We faced a similar problem on our current project using neo4j. Our requirements were: * 64-bit integer * mostly-sequential * custom scopes so we could have URLs like /agencies/1/clients/1/addresses/1 * web farm friendly * mostly decentralized * no node-specific configuration