Re: [Neo4j] Graph algos in REST

2010-09-17 Thread Jim Webber
I'm not convinced I like the way this works:

  POST /node/123/paths {to: http://localhost:/node/456;, algorithm:
 shortestPath, max depth: 100}

Isn't the intention to retrieve the shortest path? If so I'd prefer:

GET 
/node/123/paths?to=http%3a%2f%2flocalhost:%2fnode%2f456algorithm=shortestPathmaxDepth=100

And I would perhaps like to see that result cached for a bit. And I want a pony.

Jim
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Graph algos in REST

2010-09-17 Thread Andreas Kollegger
Until Neo4j supports operations on distributed graphs, couldn't we assume the 
destination
is another node in the same graph and clean that up to:

GET /node/123/paths?to=456algorithm=shortestPathmaxDepth=100

Also, I believe Neo4j only has a stable of reindeer. Would one of them do?

/Andreas

On Sep 17, 2010, at 10:41 PM, Jim Webber wrote:

 I'm not convinced I like the way this works:
 
 POST /node/123/paths {to: http://localhost:/node/456;, algorithm:
 shortestPath, max depth: 100}
 
 Isn't the intention to retrieve the shortest path? If so I'd prefer:
 
 GET 
 /node/123/paths?to=http%3a%2f%2flocalhost:%2fnode%2f456algorithm=shortestPathmaxDepth=100
 
 And I would perhaps like to see that result cached for a bit. And I want a 
 pony.
 
 Jim
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user

___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Graph algos in REST

2010-09-17 Thread Mattias Persson
2010/9/17 Jim Webber j...@webber.name

 I'm not convinced I like the way this works:

   POST /node/123/paths {to: http://localhost:/node/456;,
 algorithm:
  shortestPath, max depth: 100}

 Isn't the intention to retrieve the shortest path? If so I'd prefer:

 GET
 /node/123/paths?to=http%3a%2f%2flocalhost:%2fnode%2f456algorithm=shortestPathmaxDepth=100

Traversers works the same way (with POST)... I'm almost positive you were
there, Jim, when we decided on not going with the
HTTP-FORM-style-question-mark-parameters-pattern-or-whats-is-called. Or is
this something different?



 And I would perhaps like to see that result cached for a bit. And I want a
 pony.

 Jim
 ___
 Neo4j mailing list
 User@lists.neo4j.org
 https://lists.neo4j.org/mailman/listinfo/user




-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user