Re: [Neo4j] Question from Webinar - traversing a path with nodes of different types

2011-04-22 Thread David Montag
Hi Vipul, Out of curiosity, what does process in this context mean? As Rick alludes to, you'd have some component performing the simulation using the domain objects and possibly a graph traversal. An example of an algorithm for this would be to walk the graph from 1, and whenever you find a

Re: [Neo4j] Basic Node storage/retrieval related question?

2011-04-22 Thread Michael Hunger
Why are you using Object a and not int a or Integer a SDG uses the field type and not the current value type to provide conversions for non primitive types. As Object is such it is converted to a String. We will look into accomodating for Object values in the future. By then please use the

[Neo4j] Look up a node by the value of one of its properties!!!

2011-04-22 Thread Kobla Gbenyo
Hello, I am new to this list and I have a question about Neo4j (I am just using Neo4j). I install neo4j server and Jersey Client (REST API) by which I communicate with the Neo4j database. My problem is how do I look up a node (get the location of this node : URI) knowing the value of one of

Re: [Neo4j] Look up a node by the value of one of its properties!!!

2011-04-22 Thread Michael Hunger
You can use the indexing part of the REST API. That means after creation you have to add the fields you are interested in to an index. Then you can retrieve the node(s) later. See http://components.neo4j.org/neo4j-server/snapshot/rest.html#Add_to_index HTH Michael Sent from my iBrick4 Am

Re: [Neo4j] Basic Node storage/retrieval related question?

2011-04-22 Thread G
I was storing this as an object because this field was acting as parameters to different functions I was calling and functions had different parameter types. Would Generics help here ? so that for my pojo I can have the following instead T a T getA(){ return a } I would just give that a

Re: [Neo4j] Question about REST interface concurrency

2011-04-22 Thread Jim Webber
Hi Stephen, I think the network IO you've measured is consistent with the rest of the behaviour your've described. What I'm thinking is that you're simply reaching the limits of create transaction-create a node-complete transaction-flush to filesystem (that is, you're basically testing disk

Re: [Neo4j] about two database

2011-04-22 Thread Jim Webber
Hi Jose, 1-i have 2 database (graph), I need to get information from one database to another without having to take the target database instance of another database. One reasonable way of doing this is to use the HA configuration. The HA protocol will keep two (or many) instances of the

Re: [Neo4j] REST results pagination

2011-04-22 Thread Craig Taverner
Good catch, forgot to add the in-graph representation of the results to my mail, thanks for adding that part. Temporary (transient) nodes and relationships would really rock here, with the advantage that with HA you have them distributed to all cluster nodes. Certainly Craig has to add some

Re: [Neo4j] REST results pagination

2011-04-22 Thread Rick Otten
Client side sorting makes sense if you know the domain well enough to know, for example, you will receive a small enough result set to 'fit' in the client, and want to give the user multiple interactive sort options without hitting the database again. But I agree that in general it makes sense

Re: [Neo4j] REST results pagination

2011-04-22 Thread Tobias Ivarsson
On Thu, Apr 21, 2011 at 11:18 PM, Michael Hunger michael.hun...@neotechnology.com wrote: Rick, great thoughts. Good catch, forgot to add the in-graph representation of the results to my mail, thanks for adding that part. Temporary (transient) nodes and relationships would really rock

Re: [Neo4j] Strange performance difference on different machines

2011-04-22 Thread Bob Hutchison
Hi Michael, On 2011-04-21, at 4:38 PM, Michael Hunger wrote: Bob, I don't know if you have already answered these questions. Which JDK (also version) are you using for that, what are the JVM memory settings? Sun's java 1.6 patch level 24 (I think I'll have to confirm on Monday)

Re: [Neo4j] about two database

2011-04-22 Thread Jim Webber
Hi Jose, thanks you very much for your answer, but do not know where I can find some example about de HA. The main wiki page is here: http://wiki.neo4j.org/content/High_Availability_Cluster And the (milestone) docs are here: http://docs.neo4j.org/chunked/milestone/server-ha.html Jim

Re: [Neo4j] REST results pagination

2011-04-22 Thread Jim Webber
Hi Michael, Just in case we're not talking about the same kind of streaming -- when I think streaming, I think streaming uploads, streaming downloads, etc. I'm thinking chunked transfers. That is the server starts sending a response and then eventually terminates it when the whole response

Re: [Neo4j] about two database

2011-04-22 Thread Jose Angel Inda Herrera
Hi Jim, I am creating a package of algorithms to work in such databases NEO4J, then for that I have two graphs (DB), and what you want to know is how to obtain such a node in the graph G1 from G2, but without having an instance of G1, This can be done?

Re: [Neo4j] REST results pagination

2011-04-22 Thread Jim Webber
Hi Georg, It would at least have to be an iterator over pages - otherwise the results tend to be fine-grained and so horribly inefficient for sending over a network. Jim On 22 Apr 2011, at 18:24, Georg Summer wrote: I might be a little newbish here, but then why not an Iterator? The

Re: [Neo4j] REST results pagination

2011-04-22 Thread Rick Bullotta
Sax (or stax) is an example of streaming with a higher level format, but there are plenty of other ways as well. The *critical* performance element is to *never* have to accumulate an entire intermediate document on either side (eg json object or xml Dom) if you can avoid it. You end up

Re: [Neo4j] about two database

2011-04-22 Thread Michael Hunger
It is in principle possible but what is the issue of having an instance (ro or rw) of the second db that does the parsing of the store files for you? Sent from my iBrick4 Am 22.04.2011 um 19:22 schrieb Jose Angel Inda Herrera jai...@estudiantes.uci.cu: Hi Jim, I am creating a package of

Re: [Neo4j] REST results pagination

2011-04-22 Thread Rick Bullotta
That would need to hold resources on the server (potentially for an indeterminate amount of time) since it must be stateful. In general, stateful apis do not scale well in cases of dynamic queries. - Reply message - From: Georg Summer georg.sum...@gmail.com Date: Fri, Apr 22, 2011

Re: [Neo4j] REST results pagination

2011-04-22 Thread Rick Bullotta
I'll be happy to host the streaming rest api summit. Ample amounts of beer will be provided.;-) - Reply message - From: Jim Webber j...@neotechnology.com Date: Fri, Apr 22, 2011 1:46 pm Subject: [Neo4j] REST results pagination To: Neo4j user discussions user@lists.neo4j.org Hi Georg,

Re: [Neo4j] REST results pagination

2011-04-22 Thread Michael Hunger
And you would want to reuse your connection so you don't have to pay this penalty per request Just asking how would duch a REST Resource iterator look like -URI, verbs, request,response formats? I assume then evety query (index,traversal) would just return the iterator URI for later

Re: [Neo4j] Error building Neo4j

2011-04-22 Thread Kevin Moore
Maven 2 solved the problem. I submitted a pull request from https://github.com/kevmoo/community to explain such in the readme. On Thu, Apr 21, 2011 at 02:39, Jim Webber j...@neotechnology.com wrote: Hi Kevin, I can replicate your problem. The way I worked around this was to use Maven 2.2.1

Re: [Neo4j] about two database

2011-04-22 Thread Jose Angel Inda Herrera
El 22/04/11 13:51, Michael Hunger escribió: It is in principle possible but what is the issue of having an instance (ro or rw) of the second db that does the parsing of the store files for you? hi michel if I have the instance of the second bd means that I have is a reference to the 2nd

[Neo4j] about delete node

2011-04-22 Thread Jose Angel Inda Herrera
Hi list, There is some property that when I delete a node you mark me as to be removed to perform the operation to clear when the transaction is completed ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user

Re: [Neo4j] about delete node

2011-04-22 Thread Michael Hunger
Sorry, I'm not sure to follow. There is just the node.delete() operation, which is commited at the end of tx. http://wiki.neo4j.org/content/Delete_Semantics Do you mean you want to mark a node as to be removed? There is nothing like that. Or do you want a property that tells you that a node has

Re: [Neo4j] REST results pagination

2011-04-22 Thread Michael Hunger
I spent some time looking at what others are doing for inspiration. I kind of like the Riak/Basho approach with multipart-chunks and the approach of explictely creating a resource for the query that can be navigated (either via pages or first,next,[prev,last] links) and expires (and could be