[Neo4j] Get all nodes and relationships in REST

2011-07-12 Thread Javier de la Rosa
Hi all,

I know that I could do this using indices, but it's not for me the
most natural way to do it. I'm just wondering if there're another way
to return all the relationships and all the nodes in the database
using the same mechanism for paginating the results that traversals
does.

Best regards.

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


Re: [Neo4j] Get all nodes and relationships in REST

2011-07-12 Thread Jim Webber
Hi Javier,

I think the simplest thing is to write a traverser that reaches every node on 
the graph through every relationship.

Jim

On 12 Jul 2011, at 12:18, Javier de la Rosa wrote:

> Hi all,
> 
> I know that I could do this using indices, but it's not for me the
> most natural way to do it. I'm just wondering if there're another way
> to return all the relationships and all the nodes in the database
> using the same mechanism for paginating the results that traversals
> does.
> 
> Best regards.
> 
> -- 
> Javier de la Rosa
> http://versae.es
> ___
> 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] Get all nodes and relationships in REST

2011-07-12 Thread Javier de la Rosa
On Tue, Jul 12, 2011 at 14:44, Jim Webber  wrote:
> I think the simplest thing is to write a traverser that reaches every node on 
> the graph through every relationship.

And this should work even if my graph has several unconnected componentes?

Thank you.



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


Re: [Neo4j] Get all nodes and relationships in REST

2011-07-12 Thread Jim Webber
Hey Javier,

> And this should work even if my graph has several unconnected componentes?


Oh, no it won't. Then I'd suggest writing a managed/unmanaged plugin that calls 
getAllNodes() on the server side.

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


Re: [Neo4j] Get all nodes and relationships in REST

2011-07-12 Thread Jacob Hansson
Here is an example of how such a plugin would look:

http://components.neo4j.org/neo4j-server-examples/snapshot/xref/org/neo4j/examples/server/plugins/GetAll.html

On Tue, Jul 12, 2011 at 3:01 PM, Jim Webber  wrote:

> Hey Javier,
>
> > And this should work even if my graph has several unconnected
> componentes?
>
>
> Oh, no it won't. Then I'd suggest writing a managed/unmanaged plugin that
> calls getAllNodes() on the server side.
>
> Jim
> ___
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Jacob Hansson
Phone: +46 (0) 763503395
Twitter: @jakewins
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Get all nodes and relationships in REST

2011-07-12 Thread Javier de la Rosa
On Tue, Jul 12, 2011 at 16:11, Jacob Hansson  wrote:
> http://components.neo4j.org/neo4j-server-examples/snapshot/xref/org/neo4j/examples/server/plugins/GetAll.html

Thank you both.

Does someone knows if this (getAllNodes and getAllRelationships in
REST API) will be in the core of Neo4j some day?

Regards.


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


Re: [Neo4j] Get all nodes and relationships in REST

2011-07-12 Thread Jim Webber
Hi Javier,

getAllNodes() has been in the API for a long time.
getAllRelationships has been talked about, it's in our development backlog, but 
there is no timing associated with it.

You can write getAllRelationships based on getAllNodes.

Jim

On 12 Jul 2011, at 14:47, Javier de la Rosa wrote:

> On Tue, Jul 12, 2011 at 16:11, Jacob Hansson  wrote:
>> http://components.neo4j.org/neo4j-server-examples/snapshot/xref/org/neo4j/examples/server/plugins/GetAll.html
> 
> Thank you both.
> 
> Does someone knows if this (getAllNodes and getAllRelationships in
> REST API) will be in the core of Neo4j some day?
> 
> Regards.
> 
> 
> -- 
> Javier de la Rosa
> http://versae.es
> ___
> 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] Get all nodes and relationships in REST

2011-07-12 Thread Aseem Kishore
Jim, Javier was referring to the REST API. Correct me if I'm wrong, but
there is no getAllNodes() equivalent in the REST API.

Aseem

On Tue, Jul 12, 2011 at 4:56 PM, Jim Webber  wrote:

> Hi Javier,
>
> getAllNodes() has been in the API for a long time.
> getAllRelationships has been talked about, it's in our development backlog,
> but there is no timing associated with it.
>
> You can write getAllRelationships based on getAllNodes.
>
> Jim
>
> On 12 Jul 2011, at 14:47, Javier de la Rosa wrote:
>
> > On Tue, Jul 12, 2011 at 16:11, Jacob Hansson 
> wrote:
> >>
> http://components.neo4j.org/neo4j-server-examples/snapshot/xref/org/neo4j/examples/server/plugins/GetAll.html
> >
> > Thank you both.
> >
> > Does someone knows if this (getAllNodes and getAllRelationships in
> > REST API) will be in the core of Neo4j some day?
> >
> > Regards.
> >
> >
> > --
> > Javier de la Rosa
> > http://versae.es
> > ___
> > 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
>
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Get all nodes and relationships in REST

2011-07-12 Thread Jim Webber
Hi Aseem,

I think Javier was asking about how he'd go about writing getAllNodes and 
getAllRelationships as a plugin/unmanaged extension in REST.

Jim

On 12 Jul 2011, at 15:15, Aseem Kishore wrote:

> Jim, Javier was referring to the REST API. Correct me if I'm wrong, but
> there is no getAllNodes() equivalent in the REST API.
> 
> Aseem
> 
> On Tue, Jul 12, 2011 at 4:56 PM, Jim Webber  wrote:
> 
>> Hi Javier,
>> 
>> getAllNodes() has been in the API for a long time.
>> getAllRelationships has been talked about, it's in our development backlog,
>> but there is no timing associated with it.
>> 
>> You can write getAllRelationships based on getAllNodes.
>> 
>> Jim
>> 
>> On 12 Jul 2011, at 14:47, Javier de la Rosa wrote:
>> 
>>> On Tue, Jul 12, 2011 at 16:11, Jacob Hansson 
>> wrote:
 
>> http://components.neo4j.org/neo4j-server-examples/snapshot/xref/org/neo4j/examples/server/plugins/GetAll.html
>>> 
>>> Thank you both.
>>> 
>>> Does someone knows if this (getAllNodes and getAllRelationships in
>>> REST API) will be in the core of Neo4j some day?
>>> 
>>> Regards.
>>> 
>>> 
>>> --
>>> Javier de la Rosa
>>> http://versae.es
>>> ___
>>> 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
>> 
> ___
> 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] Get all nodes and relationships in REST

2011-07-12 Thread Javier de la Rosa
On Tue, Jul 12, 2011 at 17:27, Jim Webber  wrote:
> I think Javier was asking about how he'd go about writing getAllNodes and 
> getAllRelationships as a plugin/unmanaged extension in REST.
>

Sorry, I was asking about exactly that Aseem Kishore said. I would
like to see these methods in the core of the Neo4j REST server,
without need of using plugin and or extensions.

Regards.

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


Re: [Neo4j] Get all nodes and relationships in REST

2011-07-12 Thread Jim Webber
>From a REST perspective it makes little difference.

>From a deployment perspective, it makes some difference since I could write 
>this up and host it on my github account very quickly, but the Neo4j release 
>cycle is slower.

And if you wrote this plugin, it'd be ever quicker :-)

Jim


On 12 Jul 2011, at 15:40, Javier de la Rosa wrote:

> On Tue, Jul 12, 2011 at 17:27, Jim Webber  wrote:
>> I think Javier was asking about how he'd go about writing getAllNodes and 
>> getAllRelationships as a plugin/unmanaged extension in REST.
>> 
> 
> Sorry, I was asking about exactly that Aseem Kishore said. I would
> like to see these methods in the core of the Neo4j REST server,
> without need of using plugin and or extensions.
> 
> Regards.
> 
> -- 
> Javier de la Rosa
> http://versae.es
> ___
> 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] Get all nodes and relationships in REST

2011-07-13 Thread Peter Neubauer
Also,
The Gremlin REST plugin gives you this (bundled with three distribution, see
docs.neo4j.org) via

g.V

/peter

Sent from my phone.
On Jul 12, 2011 11:45 PM, "Jim Webber"  wrote:
> From a REST perspective it makes little difference.
>
> From a deployment perspective, it makes some difference since I could
write this up and host it on my github account very quickly, but the Neo4j
release cycle is slower.
>
> And if you wrote this plugin, it'd be ever quicker :-)
>
> Jim
>
>
> On 12 Jul 2011, at 15:40, Javier de la Rosa wrote:
>
>> On Tue, Jul 12, 2011 at 17:27, Jim Webber  wrote:
>>> I think Javier was asking about how he'd go about writing getAllNodes
and getAllRelationships as a plugin/unmanaged extension in REST.
>>>
>>
>> Sorry, I was asking about exactly that Aseem Kishore said. I would
>> like to see these methods in the core of the Neo4j REST server,
>> without need of using plugin and or extensions.
>>
>> Regards.
>>
>> --
>> Javier de la Rosa
>> http://versae.es
>> ___
>> 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
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user