Re: [Neo4j] REST and dijkstra

2011-01-25 Thread Mattias Persson
There are some graph algos
exposed(which
I wrote), but the Dijkstra algo isn't available there... Either dig
in and extend it with Dijkstra support or write an extension as Jim
mentioned.

2011/1/24 Jim Webber 

> Hi Michael,
>
> AFIAK, I don't think there's an OOB solution directly but it's quite easy
> to wire up a graph algo to the REST managed extensions.
>
> See: org.neo4j.server.plugins.GraphCloner for an example of such an algo
> and how it's implemented.
>
> Has anyone else hacked together a REST binding for the graph algos?
>
> 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


Re: [Neo4j] REST and dijkstra

2011-01-24 Thread Javier de la Rosa
On Mon, Jan 24, 2011 at 14:56, Jim Webber  wrote:
> See: org.neo4j.server.plugins.GraphCloner for an example of such an algo and 
> how it's implemented.
>
> Has anyone else hacked together a REST binding for the graph algos?

If you have just a plugin to do the Dijkstra algorithm, the Python
REST client [1] that I'm developing has an initial support for
plugins. By example, if we use the default plugins included in Neo4j
1.2, the code will be:
>>> import client

>>> url = "http://localhost:7474/db/data/";

>>> gdb = client.GraphDatabase(url)

>>> gdb.extensions.GetAll


>>> gdb.extensions.get("GetAll")


>>> gdb.extensions["GetAll"]


>>> gdb.extensions.GetAll.get_all_nodes
http://localhost:7474/db/data/ext/GetAll/graphdb/get_all_nodes>

>>> gdb.extensions.GetAll.get_all_nodes()
[http://localhost:7474/db/data/node/0>,
 http://localhost:7474/db/data/node/1>,
 ...
 http://localhost:7474/db/data/node/200>]

It's a very early version but functional. I hope to have a bit mature
and complete version the first week of february.

Best regards.


[1] https://github.com/versae/neo4j-rest-client


-- 
Javier de la Rosa
http://versae.es
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] REST and dijkstra

2011-01-24 Thread Jim Webber
Hi Michael,

AFIAK, I don't think there's an OOB solution directly but it's quite easy to 
wire up a graph algo to the REST managed extensions.

See: org.neo4j.server.plugins.GraphCloner for an example of such an algo and 
how it's implemented. 

Has anyone else hacked together a REST binding for the graph algos?

Jim

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


[Neo4j] REST and dijkstra

2011-01-24 Thread Michael Marr
Is an out-of-box solution to implement Dijkstra via REST?



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