Re: [Neo4j] some questions

2011-11-22 Thread Jacob Hansson
Hey Andrew,

like Peter hints at, webadmin itself does not currently support that kind
of customization as a proper feature. Howerver, again like Peter points
out, it is all on Github, and you are free to create your own personalized
version of it :)

Just keep in mind that you will have to keep your fork or branch up to date
with later neo4j versions manually, and create your own releases.

Cheers!
/jake

On Mon, Nov 21, 2011 at 8:00 PM, Peter Neubauer 
peter.neuba...@neotechnology.com wrote:

 Let us know if it works out for you.

 /peter

 Sent from my phone, please excuse typos and autocorrection.
 On Nov 21, 2011 7:58 PM, andrew ton andrewt...@yahoo.com wrote:

 
 
  Thanks Peter
 
  Cheers,
 
 
  
   From: Peter Neubauer peter.neuba...@neotechnology.com
  To: Neo4j user discussions user@lists.neo4j.org
  Sent: Monday, November 21, 2011 4:41 AM
  Subject: Re: [Neo4j] some questions
 
  Andrew,
  I think you could set up the Webadmin over your embedded project like
  http://docs.neo4j.org/chunked/snapshot/server-embedded.html maybe as
  part of a unit test, and then start modifying the layout using the
  coffeescript and template infrastructure under
 
 
 https://github.com/neo4j/community/tree/master/server/src/main/resources/webadmin-html
  and
 
 https://github.com/neo4j/community/tree/master/server/src/main/coffeescript
 
  Look at https://github.com/neo4j/community/tree/master/server README
  for how to run the coffeescript compilation. I guess Jake might have
  more pointers.
 
  Cheers,
 
  /peter neubauer
 
  GTalk:  neubauer.peter
  Skype   peter.neubauer
  Phone   +46 704 106975
  LinkedIn   http://www.linkedin.com/in/neubauer
  Twitter  http://twitter.com/peterneubauer
 
  http://www.neo4j.org  - NOSQL for the Enterprise.
  http://startupbootcamp.org/- Öresund - Innovation happens HERE.
 
 
 
  On Fri, Oct 28, 2011 at 5:30 PM, andrew ton andrewt...@yahoo.com
 wrote:
  
  
   Hi Peter,
  
   I think I go to the direction of implementing a REST endpoint in Java.
  How about my first question about customizing the Admin page?
  
   Thanks,
   Andrew
  
  
   
   From: Peter Neubauer peter.neuba...@neotechnology.com
   To: Neo4j user discussions user@lists.neo4j.org
   Sent: Friday, October 28, 2011 8:05 AM
   Subject: Re: [Neo4j] some questions
  
   Andrew,
   that sounds like a traversal you need to do to find exactly the nodes
   you need and remove them.
  
   As Marko mentioned - either script it in Gremlin/Groovy, or implement
   a REST endpoint in Java, giving you full static powaah:
   http://docs.neo4j.org/chunked/snapshot/server-plugins.html
  
   Does that work?
  
   Cheers,
  
   /peter neubauer
  
   GTalk:  neubauer.peter
   Skype   peter.neubauer
   Phone   +46 704 106975
   LinkedIn   http://www.linkedin.com/in/neubauer
   Twitter  http://twitter.com/peterneubauer
  
   http://www.neo4j.org  - NOSQL for the Enterprise.
   http://startupbootcamp.org/- Öresund - Innovation happens HERE.
  
  
  
   On Fri, Oct 28, 2011 at 3:02 PM, andrew ton andrewt...@yahoo.com
  wrote:
  
  
   Yes, that's what I have been doing :)
  
   However what if I have 2 graphs under a root node and I just want to
  remove 1 graph and leave the other alone.
  
   Any suggestions?
  
   Thanks,
  
  
   
   From: Linan Wang tali.w...@gmail.com
   To: Neo4j user discussions user@lists.neo4j.org
   Sent: Friday, October 28, 2011 7:59 AM
   Subject: Re: [Neo4j] some questions
  
   to clear the full db, stop the server and delete the files in data
  folder :)
  
   On Fri, Oct 28, 2011 at 3:57 PM, Marko Rodriguez 
 okramma...@gmail.com
  wrote:
   Hi,
  
   2. Assume I have a big graph in the REST server, what is the best
 way
  to remove the whole graph? Of course deleting each node and its
  relationships and its index is not convenient.
  
  
   Via Gremlin Plugin, you can call g.clear().
  
   HTH,
   Marko.
  
   http://markorodriguez.com
   ___
   Neo4j mailing list
   User@lists.neo4j.org
   https://lists.neo4j.org/mailman/listinfo/user
  
  
  
  
   --
   Best wishes,
  
   Linan Wang
   Architect, Programmer, PhD
   ___
   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
  
  ___
  Neo4j mailing list
  User@lists.neo4j.org
  https

Re: [Neo4j] some questions

2011-11-21 Thread Peter Neubauer
Andrew,
I think you could set up the Webadmin over your embedded project like
http://docs.neo4j.org/chunked/snapshot/server-embedded.html maybe as
part of a unit test, and then start modifying the layout using the
coffeescript and template infrastructure under
https://github.com/neo4j/community/tree/master/server/src/main/resources/webadmin-html
and https://github.com/neo4j/community/tree/master/server/src/main/coffeescript

Look at https://github.com/neo4j/community/tree/master/server README
for how to run the coffeescript compilation. I guess Jake might have
more pointers.

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Fri, Oct 28, 2011 at 5:30 PM, andrew ton andrewt...@yahoo.com wrote:


 Hi Peter,

 I think I go to the direction of implementing a REST endpoint in Java. How 
 about my first question about customizing the Admin page?

 Thanks,
 Andrew


 
 From: Peter Neubauer peter.neuba...@neotechnology.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Friday, October 28, 2011 8:05 AM
 Subject: Re: [Neo4j] some questions

 Andrew,
 that sounds like a traversal you need to do to find exactly the nodes
 you need and remove them.

 As Marko mentioned - either script it in Gremlin/Groovy, or implement
 a REST endpoint in Java, giving you full static powaah:
 http://docs.neo4j.org/chunked/snapshot/server-plugins.html

 Does that work?

 Cheers,

 /peter neubauer

 GTalk:      neubauer.peter
 Skype       peter.neubauer
 Phone       +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter      http://twitter.com/peterneubauer

 http://www.neo4j.org              - NOSQL for the Enterprise.
 http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



 On Fri, Oct 28, 2011 at 3:02 PM, andrew ton andrewt...@yahoo.com wrote:


 Yes, that's what I have been doing :)

 However what if I have 2 graphs under a root node and I just want to remove 
 1 graph and leave the other alone.

 Any suggestions?

 Thanks,


 
 From: Linan Wang tali.w...@gmail.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Friday, October 28, 2011 7:59 AM
 Subject: Re: [Neo4j] some questions

 to clear the full db, stop the server and delete the files in data folder :)

 On Fri, Oct 28, 2011 at 3:57 PM, Marko Rodriguez okramma...@gmail.com 
 wrote:
 Hi,

 2. Assume I have a big graph in the REST server, what is the best way to 
 remove the whole graph? Of course deleting each node and its relationships 
 and its index is not convenient.


 Via Gremlin Plugin, you can call g.clear().

 HTH,
 Marko.

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




 --
 Best wishes,

 Linan Wang
 Architect, Programmer, PhD
 ___
 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

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


Re: [Neo4j] some questions

2011-11-21 Thread andrew ton


Thanks Peter

Cheers,



 From: Peter Neubauer peter.neuba...@neotechnology.com
To: Neo4j user discussions user@lists.neo4j.org 
Sent: Monday, November 21, 2011 4:41 AM
Subject: Re: [Neo4j] some questions
 
Andrew,
I think you could set up the Webadmin over your embedded project like
http://docs.neo4j.org/chunked/snapshot/server-embedded.html maybe as
part of a unit test, and then start modifying the layout using the
coffeescript and template infrastructure under
https://github.com/neo4j/community/tree/master/server/src/main/resources/webadmin-html
and https://github.com/neo4j/community/tree/master/server/src/main/coffeescript

Look at https://github.com/neo4j/community/tree/master/server README
for how to run the coffeescript compilation. I guess Jake might have
more pointers.

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Fri, Oct 28, 2011 at 5:30 PM, andrew ton andrewt...@yahoo.com wrote:


 Hi Peter,

 I think I go to the direction of implementing a REST endpoint in Java. How 
 about my first question about customizing the Admin page?

 Thanks,
 Andrew


 
 From: Peter Neubauer peter.neuba...@neotechnology.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Friday, October 28, 2011 8:05 AM
 Subject: Re: [Neo4j] some questions

 Andrew,
 that sounds like a traversal you need to do to find exactly the nodes
 you need and remove them.

 As Marko mentioned - either script it in Gremlin/Groovy, or implement
 a REST endpoint in Java, giving you full static powaah:
 http://docs.neo4j.org/chunked/snapshot/server-plugins.html

 Does that work?

 Cheers,

 /peter neubauer

 GTalk:      neubauer.peter
 Skype       peter.neubauer
 Phone       +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter      http://twitter.com/peterneubauer

 http://www.neo4j.org              - NOSQL for the Enterprise.
 http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



 On Fri, Oct 28, 2011 at 3:02 PM, andrew ton andrewt...@yahoo.com wrote:


 Yes, that's what I have been doing :)

 However what if I have 2 graphs under a root node and I just want to remove 
 1 graph and leave the other alone.

 Any suggestions?

 Thanks,


 
 From: Linan Wang tali.w...@gmail.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Friday, October 28, 2011 7:59 AM
 Subject: Re: [Neo4j] some questions

 to clear the full db, stop the server and delete the files in data folder :)

 On Fri, Oct 28, 2011 at 3:57 PM, Marko Rodriguez okramma...@gmail.com 
 wrote:
 Hi,

 2. Assume I have a big graph in the REST server, what is the best way to 
 remove the whole graph? Of course deleting each node and its relationships 
 and its index is not convenient.


 Via Gremlin Plugin, you can call g.clear().

 HTH,
 Marko.

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




 --
 Best wishes,

 Linan Wang
 Architect, Programmer, PhD
 ___
 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

___
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] some questions

2011-11-21 Thread Peter Neubauer
Let us know if it works out for you.

/peter

Sent from my phone, please excuse typos and autocorrection.
On Nov 21, 2011 7:58 PM, andrew ton andrewt...@yahoo.com wrote:



 Thanks Peter

 Cheers,


 
  From: Peter Neubauer peter.neuba...@neotechnology.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Monday, November 21, 2011 4:41 AM
 Subject: Re: [Neo4j] some questions

 Andrew,
 I think you could set up the Webadmin over your embedded project like
 http://docs.neo4j.org/chunked/snapshot/server-embedded.html maybe as
 part of a unit test, and then start modifying the layout using the
 coffeescript and template infrastructure under

 https://github.com/neo4j/community/tree/master/server/src/main/resources/webadmin-html
 and
 https://github.com/neo4j/community/tree/master/server/src/main/coffeescript

 Look at https://github.com/neo4j/community/tree/master/server README
 for how to run the coffeescript compilation. I guess Jake might have
 more pointers.

 Cheers,

 /peter neubauer

 GTalk:  neubauer.peter
 Skype   peter.neubauer
 Phone   +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter  http://twitter.com/peterneubauer

 http://www.neo4j.org  - NOSQL for the Enterprise.
 http://startupbootcamp.org/- Öresund - Innovation happens HERE.



 On Fri, Oct 28, 2011 at 5:30 PM, andrew ton andrewt...@yahoo.com wrote:
 
 
  Hi Peter,
 
  I think I go to the direction of implementing a REST endpoint in Java.
 How about my first question about customizing the Admin page?
 
  Thanks,
  Andrew
 
 
  
  From: Peter Neubauer peter.neuba...@neotechnology.com
  To: Neo4j user discussions user@lists.neo4j.org
  Sent: Friday, October 28, 2011 8:05 AM
  Subject: Re: [Neo4j] some questions
 
  Andrew,
  that sounds like a traversal you need to do to find exactly the nodes
  you need and remove them.
 
  As Marko mentioned - either script it in Gremlin/Groovy, or implement
  a REST endpoint in Java, giving you full static powaah:
  http://docs.neo4j.org/chunked/snapshot/server-plugins.html
 
  Does that work?
 
  Cheers,
 
  /peter neubauer
 
  GTalk:  neubauer.peter
  Skype   peter.neubauer
  Phone   +46 704 106975
  LinkedIn   http://www.linkedin.com/in/neubauer
  Twitter  http://twitter.com/peterneubauer
 
  http://www.neo4j.org  - NOSQL for the Enterprise.
  http://startupbootcamp.org/- Öresund - Innovation happens HERE.
 
 
 
  On Fri, Oct 28, 2011 at 3:02 PM, andrew ton andrewt...@yahoo.com
 wrote:
 
 
  Yes, that's what I have been doing :)
 
  However what if I have 2 graphs under a root node and I just want to
 remove 1 graph and leave the other alone.
 
  Any suggestions?
 
  Thanks,
 
 
  
  From: Linan Wang tali.w...@gmail.com
  To: Neo4j user discussions user@lists.neo4j.org
  Sent: Friday, October 28, 2011 7:59 AM
  Subject: Re: [Neo4j] some questions
 
  to clear the full db, stop the server and delete the files in data
 folder :)
 
  On Fri, Oct 28, 2011 at 3:57 PM, Marko Rodriguez okramma...@gmail.com
 wrote:
  Hi,
 
  2. Assume I have a big graph in the REST server, what is the best way
 to remove the whole graph? Of course deleting each node and its
 relationships and its index is not convenient.
 
 
  Via Gremlin Plugin, you can call g.clear().
 
  HTH,
  Marko.
 
  http://markorodriguez.com
  ___
  Neo4j mailing list
  User@lists.neo4j.org
  https://lists.neo4j.org/mailman/listinfo/user
 
 
 
 
  --
  Best wishes,
 
  Linan Wang
  Architect, Programmer, PhD
  ___
  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
 
 ___
 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] some questions

2011-10-28 Thread andrew ton


Hello,

I have 2 questions:

1. Is there any way to customize the Admin page of the Neo4J Rest server? For 
instance, I'd like to add a title of the project on the page.

2. Assume I have a big graph in the REST server, what is the best way to remove 
the whole graph? Of course deleting each node and its relationships and its 
index is not convenient.

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


Re: [Neo4j] some questions

2011-10-28 Thread Marko Rodriguez
Hi,

 2. Assume I have a big graph in the REST server, what is the best way to 
 remove the whole graph? Of course deleting each node and its relationships 
 and its index is not convenient.


Via Gremlin Plugin, you can call g.clear().

HTH,
Marko.

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


Re: [Neo4j] some questions

2011-10-28 Thread Linan Wang
to clear the full db, stop the server and delete the files in data folder :)

On Fri, Oct 28, 2011 at 3:57 PM, Marko Rodriguez okramma...@gmail.com wrote:
 Hi,

 2. Assume I have a big graph in the REST server, what is the best way to 
 remove the whole graph? Of course deleting each node and its relationships 
 and its index is not convenient.


 Via Gremlin Plugin, you can call g.clear().

 HTH,
 Marko.

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




-- 
Best wishes,

Linan Wang
Architect, Programmer, PhD
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] some questions

2011-10-28 Thread andrew ton


Yes, that's what I have been doing :)

However what if I have 2 graphs under a root node and I just want to remove 1 
graph and leave the other alone.

Any suggestions?

Thanks,



From: Linan Wang tali.w...@gmail.com
To: Neo4j user discussions user@lists.neo4j.org
Sent: Friday, October 28, 2011 7:59 AM
Subject: Re: [Neo4j] some questions

to clear the full db, stop the server and delete the files in data folder :)

On Fri, Oct 28, 2011 at 3:57 PM, Marko Rodriguez okramma...@gmail.com wrote:
 Hi,

 2. Assume I have a big graph in the REST server, what is the best way to 
 remove the whole graph? Of course deleting each node and its relationships 
 and its index is not convenient.


 Via Gremlin Plugin, you can call g.clear().

 HTH,
 Marko.

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




-- 
Best wishes,

Linan Wang
Architect, Programmer, PhD
___
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] some questions

2011-10-28 Thread Peter Neubauer
Andrew,
that sounds like a traversal you need to do to find exactly the nodes
you need and remove them.

As Marko mentioned - either script it in Gremlin/Groovy, or implement
a REST endpoint in Java, giving you full static powaah:
http://docs.neo4j.org/chunked/snapshot/server-plugins.html

Does that work?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Fri, Oct 28, 2011 at 3:02 PM, andrew ton andrewt...@yahoo.com wrote:


 Yes, that's what I have been doing :)

 However what if I have 2 graphs under a root node and I just want to remove 1 
 graph and leave the other alone.

 Any suggestions?

 Thanks,


 
 From: Linan Wang tali.w...@gmail.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Friday, October 28, 2011 7:59 AM
 Subject: Re: [Neo4j] some questions

 to clear the full db, stop the server and delete the files in data folder :)

 On Fri, Oct 28, 2011 at 3:57 PM, Marko Rodriguez okramma...@gmail.com wrote:
 Hi,

 2. Assume I have a big graph in the REST server, what is the best way to 
 remove the whole graph? Of course deleting each node and its relationships 
 and its index is not convenient.


 Via Gremlin Plugin, you can call g.clear().

 HTH,
 Marko.

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




 --
 Best wishes,

 Linan Wang
 Architect, Programmer, PhD
 ___
 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] some questions

2011-10-28 Thread andrew ton


Hi Peter,

I think I go to the direction of implementing a REST endpoint in Java. How 
about my first question about customizing the Admin page? 

Thanks,
Andrew



From: Peter Neubauer peter.neuba...@neotechnology.com
To: Neo4j user discussions user@lists.neo4j.org
Sent: Friday, October 28, 2011 8:05 AM
Subject: Re: [Neo4j] some questions

Andrew,
that sounds like a traversal you need to do to find exactly the nodes
you need and remove them.

As Marko mentioned - either script it in Gremlin/Groovy, or implement
a REST endpoint in Java, giving you full static powaah:
http://docs.neo4j.org/chunked/snapshot/server-plugins.html

Does that work?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Fri, Oct 28, 2011 at 3:02 PM, andrew ton andrewt...@yahoo.com wrote:


 Yes, that's what I have been doing :)

 However what if I have 2 graphs under a root node and I just want to remove 1 
 graph and leave the other alone.

 Any suggestions?

 Thanks,


 
 From: Linan Wang tali.w...@gmail.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Friday, October 28, 2011 7:59 AM
 Subject: Re: [Neo4j] some questions

 to clear the full db, stop the server and delete the files in data folder :)

 On Fri, Oct 28, 2011 at 3:57 PM, Marko Rodriguez okramma...@gmail.com wrote:
 Hi,

 2. Assume I have a big graph in the REST server, what is the best way to 
 remove the whole graph? Of course deleting each node and its relationships 
 and its index is not convenient.


 Via Gremlin Plugin, you can call g.clear().

 HTH,
 Marko.

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




 --
 Best wishes,

 Linan Wang
 Architect, Programmer, PhD
 ___
 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] some questions

2011-10-28 Thread Peter Neubauer
Mmh,
I think Jake is best to answer this...

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org              - NOSQL for the Enterprise.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



On Fri, Oct 28, 2011 at 3:30 PM, andrew ton andrewt...@yahoo.com wrote:


 Hi Peter,

 I think I go to the direction of implementing a REST endpoint in Java. How 
 about my first question about customizing the Admin page?

 Thanks,
 Andrew


 
 From: Peter Neubauer peter.neuba...@neotechnology.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Friday, October 28, 2011 8:05 AM
 Subject: Re: [Neo4j] some questions

 Andrew,
 that sounds like a traversal you need to do to find exactly the nodes
 you need and remove them.

 As Marko mentioned - either script it in Gremlin/Groovy, or implement
 a REST endpoint in Java, giving you full static powaah:
 http://docs.neo4j.org/chunked/snapshot/server-plugins.html

 Does that work?

 Cheers,

 /peter neubauer

 GTalk:      neubauer.peter
 Skype       peter.neubauer
 Phone       +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter      http://twitter.com/peterneubauer

 http://www.neo4j.org              - NOSQL for the Enterprise.
 http://startupbootcamp.org/    - Öresund - Innovation happens HERE.



 On Fri, Oct 28, 2011 at 3:02 PM, andrew ton andrewt...@yahoo.com wrote:


 Yes, that's what I have been doing :)

 However what if I have 2 graphs under a root node and I just want to remove 
 1 graph and leave the other alone.

 Any suggestions?

 Thanks,


 
 From: Linan Wang tali.w...@gmail.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Friday, October 28, 2011 7:59 AM
 Subject: Re: [Neo4j] some questions

 to clear the full db, stop the server and delete the files in data folder :)

 On Fri, Oct 28, 2011 at 3:57 PM, Marko Rodriguez okramma...@gmail.com 
 wrote:
 Hi,

 2. Assume I have a big graph in the REST server, what is the best way to 
 remove the whole graph? Of course deleting each node and its relationships 
 and its index is not convenient.


 Via Gremlin Plugin, you can call g.clear().

 HTH,
 Marko.

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




 --
 Best wishes,

 Linan Wang
 Architect, Programmer, PhD
 ___
 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

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


Re: [Neo4j] Some questions about design when using neo4j

2011-09-28 Thread Peter Neubauer
Gen,
I guess there is nothing out of the box right now, but you could get
inspiration from http://jung.sourceforge.net/doc/api/index.html,
especially 
http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/algorithms/flows/EdmondsKarpMaxFlow.html
and implement one or just use it on a toy graph to test it out?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://startupbootcamp.org/    - Öresund - Innovation happens HERE.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.



On Sat, Sep 3, 2011 at 12:33 AM, Benjamin Gustafsson
benjamingustafs...@gmail.com wrote:
 Just in case there are any graph experts out there that want to exercise
 their brains. (Its quite a while since I studied algorithms and optimization
 regarding graphs. :-)

 I'm able to implement a algorithm described in pseudocode (if anyone knows a
 good algorithm for my special case below).

 I have the transportation problem and need to find a preferably small (not
 necessarily smallest) set of nodes that transports a certain amount of
 credit/commodity from source node S to sink node T. All edges have a
 capacity stated as a attribute for the edge, this can be read while
 traversing the graph. Transportation cost for commodity/credit in the graph
 is zero. The only cost in this graph problem is computation time to *find a
 set of paths delivering all the commodity*(in my case credit). The path
 lengths chosen are not important.

 (This is the standard ripplepay problem, but I didn't like the algorithms
 used by the original ripplepay implementation. It does not scale up to
 millions of users. It is not fast enough.)

 http://en.wikipedia.org/wiki/Transportation_network_%28graph_theory%29

 And I also need a quick way of analysing if it is possible to send all
 commodity across the network. If the amount commodity to be sent is lower
 than max flow. (lower than min cut). There will initially be clusters with
 very few edges connecting the clusters. If the nodes are in different
 clusters the min cut can be really easy/*quick* to find (if we do it the
 right way).

 http://en.wikipedia.org/wiki/Max-flow_min-cut_theorem

 Any implementations for neo4j already available regarding my special case?

 --
 //Benjamin Gustafsson
 ___
 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] Some questions about design when using neo4j

2011-09-28 Thread Marko Rodriguez
Hey,

If you want to play with JUNG over Neo4j, you can do it via TinkerPop.

Graph g = new Neo4jGraph(/tmp/neo4j);
GraphJung jung = new GraphJung(g);

That GraphJung object is a implementation of the JUNG Interfaces and can be 
processed by the JUNG algorithms package.

https://github.com/tinkerpop/blueprints/wiki/JUNG-Ouplementation

HTH,
Marko.

http://markorodriguez.com

On Sep 28, 2011, at 1:06 AM, Peter Neubauer wrote:

 Gen,
 I guess there is nothing out of the box right now, but you could get
 inspiration from http://jung.sourceforge.net/doc/api/index.html,
 especially 
 http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/algorithms/flows/EdmondsKarpMaxFlow.html
 and implement one or just use it on a toy graph to test it out?
 
 Cheers,
 
 /peter neubauer
 
 GTalk:  neubauer.peter
 Skype   peter.neubauer
 Phone   +46 704 106975
 LinkedIn   http://www.linkedin.com/in/neubauer
 Twitter  http://twitter.com/peterneubauer
 
 http://www.neo4j.org   - Your high performance graph database.
 http://startupbootcamp.org/- Öresund - Innovation happens HERE.
 http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
 
 
 
 On Sat, Sep 3, 2011 at 12:33 AM, Benjamin Gustafsson
 benjamingustafs...@gmail.com wrote:
 Just in case there are any graph experts out there that want to exercise
 their brains. (Its quite a while since I studied algorithms and optimization
 regarding graphs. :-)
 
 I'm able to implement a algorithm described in pseudocode (if anyone knows a
 good algorithm for my special case below).
 
 I have the transportation problem and need to find a preferably small (not
 necessarily smallest) set of nodes that transports a certain amount of
 credit/commodity from source node S to sink node T. All edges have a
 capacity stated as a attribute for the edge, this can be read while
 traversing the graph. Transportation cost for commodity/credit in the graph
 is zero. The only cost in this graph problem is computation time to *find a
 set of paths delivering all the commodity*(in my case credit). The path
 lengths chosen are not important.
 
 (This is the standard ripplepay problem, but I didn't like the algorithms
 used by the original ripplepay implementation. It does not scale up to
 millions of users. It is not fast enough.)
 
 http://en.wikipedia.org/wiki/Transportation_network_%28graph_theory%29
 
 And I also need a quick way of analysing if it is possible to send all
 commodity across the network. If the amount commodity to be sent is lower
 than max flow. (lower than min cut). There will initially be clusters with
 very few edges connecting the clusters. If the nodes are in different
 clusters the min cut can be really easy/*quick* to find (if we do it the
 right way).
 
 http://en.wikipedia.org/wiki/Max-flow_min-cut_theorem
 
 Any implementations for neo4j already available regarding my special case?
 
 --
 //Benjamin Gustafsson
 ___
 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] Some questions about design when using neo4j

2011-08-30 Thread Benjamin Gustafsson
Hi

I'm trying to figure out how to design a graph database where I have

1. Users
2. Groups
3. Items
4. credit_line -relation between Users. A balance of credit.
5. credit_line -relation between Users and Groups.
6. memberOf-relation from Users to Groups.
7. have -relation between User and Item.
8. display -relation between Item,User and User/Group. (A triple) (a Item
belonging to a User is displayed as available for only a specific
group/user, or multiple groups/users. This is unclear how it should be
represented in neo4j, does it need a node?)
9. owesItemTo -relation between User, Item, User/Group. (A triple, Do I
need a node?)

The credit line will have limits. [Credit given by node A and Credit given
by node B] These limits defines the credit line.

My thoughts are therefore to place the balance accounting as a property on
the edges in the database.

Node:User  -- Edge with Property: Credit line, value -- Node:User
Node:User  -- Edge with Property: Credit line, value -- Node:Group

But I feel that this approach is kind of weak. I really don't know how to
represent the credit line. (Maybe it needs a node... Because if I use two
directed edges they need to be synchronised all the time. If A owes value to
B, B owes -value to A)

How would you have designed this?

It is to be used as a multi user database.
I will therefore use a lot of transactions in the application, editing
balances between users and groups, in long chains as atomic actions. (This
has to be quick so that the same node and edges can be used by the next
transaction.)

I have thought about traversal algorithms that may be executed in advance to
find a path. And then try to use the pre-discovered path in a quick
transaction, or roll back if the path no longer has enough credit available
in all the chain.

To understand how my credit line should be used you can take a look att
ripplepay.com. But I'm designing a barter system with items.
-- 
//Benjamin Gustafsson
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Some questions about design when using neo4j

2011-08-30 Thread David Montag
On Tue, Aug 30, 2011 at 1:20 PM, Benjamin Gustafsson 
benjamingustafs...@gmail.com wrote:

 
  If an item can only be had by one user at a time, then the display,
 or
  visible_to, relationship could originate from the item.
 



   9. owesItemTo -relation between User, Item, User/Group. (A triple, Do
 I
   need a node?)
  
 
  Same here.
 


 Thanks

 I will rename have to owner_of.
 Then use the relations

 item visible_to user/group
 item currently_held_by user/group

 Why would you need two relationships? Can you let a single relationship
  represent the mutual credit line between two users?
 

 If I use a single directed relationship, how could I prepare the data for
 the traversal to be fast?
 I know the traversal is equally fast in both directions, but the
 calculation
 remaining_credits can be made in advance or while traversing.
 I can't really decide if the pre calculated properties remaining_credits
 will make traversal faster or if it just introduces the unnecessary risk of
 inconsistency.

 I could have 5 properties:
 long balance
 long end_node_limit
 long start_node_limit
 long end_node_remaining_credits
 long start_node_remaining_credits

 My thoughts are something like this to make a faster traversal:

 If the traversal finds a incoming mutual_credit-relation it could check
 property
 end_node_remaining_credits to decide if it is enough for the transaction.

 And if the traversal finds a outgoing mutual_credit-relation it could
 check property
 start_node_remaining_credits to decide if it is enough for the
 transaction.


Exactly. The direction would multiplex to two properties. That being said,
it is OK to have two relationships as well. Since all modifications are in a
transactional context, it will always be consistent. It will however require
you to find two relationships instead of one, which, depending on how you
implement it, may or may not require more time.

David


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




-- 
David Montag david.mon...@neotechnology.com
Neo Technology, www.neotechnology.com
Cell: 650.556.4411
Skype: ddmontag
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] some questions : unique property and Rest

2011-08-12 Thread Michael Hunger

 1.Does Neo4J support *unique property*  (Node/Relationship)?

Right now there is no native support for that, you have to implement it on your 
own - define the properties that are unique and then write an getOrCreateNode 
method and/or endpoint that exposes the following things:
- query the index for the property
- if it returns something return it
- open tx
- grab write lock on a dedicated lock node (e.g. by removing an non-existing 
property)
- query the index for the property
- if it returns something return it
- if not create the node and add it to the index
- close tx

It might be added to Neo4j at a later time in the form of a unique index type 
(or differently).

 2.How can I wrap a Node in a MyClass and using it with Rest services?

what do you mean by with rest-services ? 
If you mean something like object graph mapping in the server - you might the 
existing language bindings to map objects to the graph using unmanaged 
extensions (Spring Data Graph, jo4neo) or the (J)ruby-script-extensions 
(neo4j.rb).

 3.Can I use in MyClass some JPA annotaions?
So if you want to have some cross-store persistence (graph + JPA) then you 
should look into Spring Data Graph as this supports that mode explicitely.


Cheers

Michael
 
 shlomib
 
 
 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/some-questions-unique-property-and-Rest-tp3248352p3248352.html
 Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
 ___
 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] some questions : unique property and Rest

2011-08-11 Thread shlomyb
1.Does Neo4J support *unique property*  (Node/Relationship)?
2.How can I wrap a Node in a MyClass and using it with Rest services?
3.Can I use in MyClass some JPA annotaions?

shlomib


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/some-questions-unique-property-and-Rest-tp3248352p3248352.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user