Re: [Neo4j] How to download neo4j 1.3 [for using jo4Neo]

2011-07-28 Thread BatiG
When I use nginx as a proxy and block the access to the port 7474, It seems that the connection is lost when I'm on the web application... If I understand, the instance of the neo4j ui server is running on jetty? Why is not possible to configure jetty like we want? thanks -- View this message

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread Niels Hoogeveen
Hi John, Thanks for showing an interest. The compile error you got was due to the fact that a removed class was still hanging around in the Git repo. I renamed BinaryRelationshipRoles into BinaryRelationshipRole, but the original file was still active in the Git repo. I fixed that. I have

[Neo4j] strange problem while getting a node property

2011-07-28 Thread Jean-Sébastien Stoffen
Hi, I've this strange problem when I try to collect data from the graph with the Java API in Groovy : db.allNodes.each {node - cpt=0 node.getRelationships().each {rel - cpt++ } println (${node} ${cpt}) println node.getPropertyKeys() } The iteration on

Re: [Neo4j] strange problem while getting a node property

2011-07-28 Thread Niels Hoogeveen
When iterating over all nodes, you also pull the reference node (with id = 0), which probably doesn't have the requested property. If you want to list all properties of a node, it's better to use a construct like: for(String key: node.getPropertyKeys()){

Re: [Neo4j] strange problem while getting a node property

2011-07-28 Thread Chris Gioran
Hi Jean-Sébastien, could you please tell us: 0. Are you sure that Node#0 is the one reporting that it has the property key package? 1. How is the graph created? Specifically, how are the properties added? The package property is being reported as existing, so it has to get there somehow. 2. What

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
I don't know what you mean by this: I don't know how nicely BDB plays with Neo4J transactions. I have some small experience with bdb java edition that is, but I'm not sure what would their transaction have to do with neo4j transactions... if you meant if you could make a wrapper such that you

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread Anders Nawroth
Hi! I think the hard part about transactions is recovering after crashes and such. Regarding finding A--B, have you tried using a relationship index? See: http://components.neo4j.org/neo4j/1.4/apidocs/org/neo4j/graphdb/index/ReadableRelationshipIndex.html /anders On 07/28/2011 01:35 PM, John

Re: [Neo4j] Paged traversal REST API suggestion for improvement

2011-07-28 Thread Jim Webber
Hi Aseem, When you GET a resource, you're asking for its state at a particular instant in time. GET's don't always return the same content, what's important about them is that clients can't be held responsible for any (unintended) side-effects of a GET operation. For example, if you GET the

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
Hey Nawroth, I attempted to try that at one time and for some reason I cannot remember I concluded that it doesn't work for what I wanted, I will see what I can do again, thanks! findSinglePath is what I was using before. On Thu, Jul 28, 2011 at 2:05 PM, Anders Nawroth

Re: [Neo4j] update node properties via rest?

2011-07-28 Thread Jim Webber
Feature (though perhaps PUT) would be a better choice of method. POSTing a new set of properties can't update, because the semantics aren't clear - what would it mean if a property was missing, is that an effective DELETE, or an indication it should be left alone. Jim

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread Niels Hoogeveen
I checked the Git repo, and left two more files in that I had removed in my local project. (Note to self: When deleting or renaming files always update repo). The repo is now up-to-date, and the most recent download installed perfectly using Maven. What I meant by playing nice with Neo4j

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
with relationshipindex seems to be working as fast, though I am not sure if I am using it right ie. doing this first time: RelationshipIndex ri = graphDB.index().forRelationships( relsIndex ); and on each relationship created between sNode--eNode where eNode is any random node, and sNode is the

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
nice, no errors now, thanks! I've been postponing checking stuff like SortedTree or anything until the errors were gone... I guess I could try SortedTree, but it's based on Nodes, and that would add an extra unnecessary layer maybe? still good to know I have this option and the RelationshipIndex

Re: [Neo4j] auto indexes in REST in 1.4?

2011-07-28 Thread Jim Webber
Try using the GA version. I don't think auto-indexing was available in M02. Jim On 28 Jul 2011, at 00:51, dhsieh wrote: Same probelm here. Downloaded neo4j-enterprise-1.4.M02-unix.tar.gz with deafult installtion on Linux. Added the foolwoing lines to neo4j.properties file:

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread Anders Nawroth
Hi! Seems right to me. And yes, key/value would typically be storing the relationship type. We should bring this up again next week, when Mattias who wrote the indexing stuff is back from vacation! /anders On 07/28/2011 03:05 PM, John cyuczieekc wrote: with relationshipindex seems to be

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
Roger that. don't read the following it's irrelevant(don't even know why I sent it): Btw, seems to me that (since the underlaying index storage is BTree - just guessing from the speed) I could store the ID of the nodes in two indexes and use only those as a base for creating node to node

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
Hey Niels, what is acquireLock() doing in SortedTree ? is removeProperty causing neo4j to acquire a lock on the Node? or its properties? also does that property need to exist? seems like not interesting :) On Wed, Jul 27, 2011 at 8:48 PM, Niels Hoogeveen pd_aficion...@hotmail.comwrote: I

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread Niels Hoogeveen
It's a trick to lock a node. When removing a property that does not exist the node gets locked. Date: Thu, 28 Jul 2011 15:51:15 +0200 From: cyuczie...@gmail.com To: user@lists.neo4j.org Subject: Re: [Neo4j] HyperRelationship example Hey Niels, what is acquireLock() doing in

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread John cyuczieekc
well if I think about it, maybe Niels could use this index(that neo4j uses) instead of berkeleydb, that is, unless I'm missing something (other than add() requiring an entity which is something unneeded with bdb when using key-value). (but likely he's already making use of it and I didn't really

Re: [Neo4j] Events this Week

2011-07-28 Thread John cyuczieekc
btw, just making sure, the Webinar is in 3 hours from now right? (otherwise I miscalculated) On Wed, Jul 27, 2011 at 8:28 PM, Allison Sparrow allison.spar...@neotechnology.com wrote: Hi all, Just a reminder on three events we have to close off the week: *TONIGHT at 18:00 PDT* Vancouver

Re: [Neo4j] auto indexes in REST in 1.4?

2011-07-28 Thread dhsieh
Where is the GA version download link? I can't find it in http://neo4j.org/download. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-auto-indexes-in-REST-in-1-4-tp3159205p3206845.html Sent from the Neo4j Community Discussions mailing list archive at

Re: [Neo4j] auto indexes in REST in 1.4?

2011-07-28 Thread Chris Gioran
In the upper left part where you can select edition and platform, the Select Release drop down list has a Current stable version (1.4) option. Select that instead of the default Current Milestone version option and you should be fine. cheers, CG On Thu, Jul 28, 2011 at 5:32 PM, dhsieh

Re: [Neo4j] HyperRelationship example

2011-07-28 Thread Niels Hoogeveen
Actually the Enhanced API doesn't use any index at this moment. All look ups are done within the graph and are all either ID lookups or a traversal of no more than three relationships. Including DBD would only serve to remove this book keeping from the graph. For example, to reify a

Re: [Neo4j] strange problem while getting a node property

2011-07-28 Thread Jean-Sébastien Stoffen
Hi, thank you very much! In deed, node 0 doesn't have any properties. I did not think about this. Now it's working perfectly. Regards, Jean-Sébastien Stoffen Le 28/07/11 13:26, Niels Hoogeveen a écrit : When iterating over all nodes, you also pull the reference node (with id = 0), which

[Neo4j] bdb-index

2011-07-28 Thread Niels Hoogeveen
Trying to find something useful to hide the implementation book keeping of Enhanced API, I tried out dbd-index as can be found here:https://github.com/peterneubauer/bdb-index It looks interesting, but fails its tests. When recovering it performs BerkeleyDbCommand#readCommand from the log. The

Re: [Neo4j] Events this Week

2011-07-28 Thread John cyuczieekc
I chose not to attend the webinar due to the fact that it requires java and runs *unrestricted* So for anyone else: Enjoy! the webinar is supposedly still going at this time (35mins into it) On Thu, Jul 28, 2011 at 4:04 PM, John cyuczieekc cyuczie...@gmail.comwrote: btw, just making sure, the

Re: [Neo4j] bdb-index

2011-07-28 Thread Niels Hoogeveen
Should read: The retrieved indexName is actually garbage. From: pd_aficion...@hotmail.com To: user@lists.neo4j.org Date: Thu, 28 Jul 2011 19:36:21 +0200 Subject: [Neo4j] bdb-index Trying to find something useful to hide the implementation book keeping of Enhanced API, I tried out

Re: [Neo4j] bdb-index

2011-07-28 Thread Peter Neubauer
niels, in this spike, I just concentrated on getting _something_ working in order to test insertion speed. This is not up to real indexing standards, so some love is needed here. I think Mattias is the best person to ask about pointers, let's wait until he is back next week if that is ok? Maybe

Re: [Neo4j] Paged traversal REST API suggestion for improvement

2011-07-28 Thread Aseem Kishore
Jim, thanks for the explanation. I understand your constraints, but thinking about it more, I'm actually even more baffled -- how can we actually make use of this paged traversal API in a web scenario? [neo4j db] [web server] [web client, e.g. browser] If I want to show the results of

[Neo4j] cypher packages

2011-07-28 Thread Jean-Sébastien Stoffen
Hi, Sorry for the newbie questions who happens very frequently at the begining. I'm trying to submit some request to my graph using the cypher query language I get those messages : unable to resolve class CypherParser unable to resolve class ExecutionResult ... when I try the example showed

Re: [Neo4j] bdb-index

2011-07-28 Thread Niels Hoogeveen
Thank you, Peter,There is no rush here. It would be nice to investigate this option, but it can wait until Mattias has returned and sifted through urgent matters. The question is even, if it would be a good idea to use an index to do the book keeping for Enhanced API.As it is now, the

Re: [Neo4j] Paged traversal REST API suggestion for improvement

2011-07-28 Thread Rick Bullotta
If you don't keep state paging will not work properly if the data changes often. What may have been record #21 when you are viewing the first page of 20 result might not be record #21 when you go to fetch the 2nd page. If you're only concerned with pages of 20 or so, you should absolutely,

Re: [Neo4j] Paged traversal REST API suggestion for improvement

2011-07-28 Thread Rick Bullotta
BTW, paging is a relic of the dial-up modem days, IMNSHO. If a machine is the client of the REST API call, it should get all the data in a single, atomic call. If it is a browser or mobile app, there's a natural limit to the # of items that a human will bother paging through, which is fairly

Re: [Neo4j] Paged traversal REST API suggestion for improvement

2011-07-28 Thread Daniel Gasienica
Sure but isn’t it a huge waste of bandwidth if you load hundreds of results and the user only looks at the first dozen? On Thu, Jul 28, 2011 at 15:16, Rick Bullotta rick.bullo...@thingworx.comwrote: BTW, paging is a relic of the dial-up modem days, IMNSHO. If a machine is the client of the

Re: [Neo4j] Paged traversal REST API suggestion for improvement

2011-07-28 Thread Rick Bullotta
Not really, unless the JSON content is HUGE - which is rare. The small price in bandwidth versus a responsive UI and the need for not managing state is a good tradeoff. The only exception might be mobile apps, but in that case, I'd just fetch a smaller block (maybe 4 or 5 pages worth). Very

Re: [Neo4j] Paged traversal REST API suggestion for improvement

2011-07-28 Thread Aseem Kishore
Sorry, I don't understand. Are you going to tell Google and Bing to send JSON for their search results also, and page on the client side? There is a very valid use case for not wanting to require JavaScript to page. Aseem On Thu, Jul 28, 2011 at 3:25 PM, Rick Bullotta

Re: [Neo4j] cypher packages

2011-07-28 Thread Tobias Ivarsson
They should be in the neo4j-cypher-1.4.jar. That jar-file should be among your dependencies if you simply depend on (in maven): dependency groupIdorg.neo4j/groupId artifactIdneo4j/artifactId version1.4/version /dependency Cheers, Tobias On Thu, Jul 28, 2011 at 12:07 PM, Jean-Sébastien

Re: [Neo4j] Paged traversal REST API suggestion for improvement

2011-07-28 Thread Rick Bullotta
Um, I'm guessing that you aren't aware of how Google's UI/API works... Open up Firebug, Chrome Tools, or Fiddler, and you'll see that the biggest chunk of traffic when you switch from one page of Google search results to another page (via the main Google search page) is a JSON packet...which

[Neo4j] Composable traversals

2011-07-28 Thread Niels Hoogeveen
I'd like to take a stab at implementing traversals in the Enhanced API. One of the things I'd like to do, is to make traversals composable. Right now a Traverser is created by either calling the traverse method on Node, or to call the traverse(Node) method on TraversalDescription. This

Re: [Neo4j] Paged traversal REST API suggestion for improvement

2011-07-28 Thread Aseem Kishore
Haha. I think we're speaking past each other. Here's my point: Disable JS. Open up Google. Do a search. Click to the next page. Click to back to the previous page. Click page 3. Refresh. Etc. All of this works, without JS. That means the client (your browser) isn't the party doing the paging or

Re: [Neo4j] bdb-index

2011-07-28 Thread John cyuczieekc
Hi xD I'm not clear what you need to store here, if I understand correctly you could store in 2 primary bdb databases the nodeID (ie. long) of each node in a relationship ie. key-value dbForward: A-B A-C X-D X-B dbBackward: B-A B-X C-A D-X A,B,C,D,X are all nodeIDs ie. longs this way you could

Re: [Neo4j] Composable traversals

2011-07-28 Thread John cyuczieekc
Hey Niels, As they are composable, is java going to keep track of things, like if recursive, in stack ? or in array/variables ? or the graph could keep track of what's beep parsed so far, in-graph ? (I mean, this question applies for non-composable too; personally i like the idea of in-graph

Re: [Neo4j] bdb-index

2011-07-28 Thread John cyuczieekc
I forked and fixed, the tests are all working now: https://github.com/13th-floor/bdb-index Let me know if you want me to do a pull request, ... sadly I applied formatting on RawBDBSpeed and the diff doesn't look pretty if you're trying to see what changed John. On Thu, Jul 28, 2011 at 7:36 PM,