[Neo4j] Fans of Neo4j From Chinese

2011-03-18 Thread 孤竹
hi,


   Sorry for disturb you , I am a chinese engineer , Excused for my bad english 
:) .


   Recently, I am learning Neo4j and trying to use it in my project . But When 
I make a Pressure on neo4j with 5 theads , 10 theads, 20 and 30, I found the 
nodes inserted to the Neo4J is not change obvious (sometimes not change ~ ~! ). 
Does it not matter with threads ? the kenerl will make it Serial ? Is there any 
documents or something about The performance of Neo4j ? thanks for your help


   
   The program as follows:
   I put this function in ExecutorService ,with 5/10/30 threads. then test for 
the nodes inserted into at same time .(The counts have not changed obviously)


Transaction tx = null;
Node before = null;
try {
for (int i = 0; i < 100; i++) {
if(stop == true){
return;
}
if (graphDb == null) {
return;
}
try {
if (tx == null) {
tx = graphDb.beginTx();
}
// 引用计数加1
writeCount.addAndGet(1);
int startNodeString = name.addAndGet(1);
Node start = 
getOrCreateNodeWithOutIndex(""
+ startNodeString);
if (before == null) {
// 根节点.哈哈哈 I got U
Node root = 
graphDb.getNodeById(0);

root.createRelationshipTo(start, LEAD);
}
if (before != null) {

before.createRelationshipTo(start, LOVES);
}
int endNodeName = name.addAndGet(1);
Node end = 
getOrCreateNodeWithOutIndex("" + endNodeName);
start.createRelationshipTo(end, KNOWS);
before = end;
// 每一千次 commit一次
if (i % 100 == 0) {
tx.success();
tx.finish();
tx = null;
}
} catch (Exception e) {
 System.out.println("write : = " + e);
}
}
} catch (Exception e) {
} finally {
tx.finish();
}
}
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] [Neo4j Spatial] Need advice on modeling my spatial domain properly

2011-03-18 Thread Christoph K.
Hi peole,

i'm working on a project, where i want to map live data of cars on streets.
I take my map data from OSM-maps for test purposes - so there's no problem
at all.
But i have no idea on how to integrate my car data. Should i implement my
own geometryencoder, so that my car nodes can contain a position property.
Or does it make sense to relate my car nodes to point nodes, which are
representing the current position of my car? Some advice would be great!

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


Re: [Neo4j] [Neo4j Spatial] Need advice on modeling my spatial domain properly

2011-03-18 Thread Craig Taverner
Hi Chris,

A lot depends on your final intentions of how to use the model. There are
many, many ways to model this, and each has its pros and cons. Let me try
briefly describe two options I can think of that are related to the two
factors you suggest below.

*Option one - model time in the graph*

In this case I'm assuming you want to store information about car movements.
For example, you are a logistics company tracking your fleet, and each
car/truck has a GPS and uploads data continuously. This data would be stored
as an event stream in the database, indexed spatially in the RTree, and
indexed with other indexes too (time of event (timeline index), which car
(category index), which driver (category index), other properties of
interest (lucene), etc.). You can relate the car to the OSM model through
routing information (eg. the car is following a planned route on the OSM
graph). Perhaps you model the route as a chain of nodes also, resulting in a
three layer graph, the static OSM, the planned route and the actual route
coming in live. This approach results in a very complete data model can can
be historically mined for statistics and behaviours (eg. which cars match
planned routes best, general speed patterns, driving behaviours, etc.)

For this model there is value in adding your own geometry encoder if you
wish to expose your own data (routes, and car traces) to a map or GIS. Since
it is all point data, you could just use the SimplePointEncoder, but then
you would not see lines, only points. If you want lines, rather make your
own geometry encoder that understands how the nodes are connected in chains.
Review the code of the sample encoders, it is not complex.

*Option two - model time in analysis*

Assuming the previous case is overkill, and you have no interest in fleet
tracking and historical modeling, and all you want is a map that shows a
single point for a car as it moves, it might be possible to not include the
car in the database at all. Where do you get the car data from? If it is a
stream of information from some data source, that stream could be consumed
by the map view itself, just updating the points on the map. If you wish the
map to not have to know about your own stream, then you can use the
database. Perhaps you do something very simple, just store each car location
in a SimplePointLayer (like the blog), and whenever a car change event
arrives (from your source of car data, whatever that is), you could remove
the car node from the RTree index and re-add it (basically re-index the
point at a new location). The map needs to redraw that layer too, so you
need to trigger that. If there are lots of cars moving all the time, rather
just redraw the map layer on a timer.

The reason I called this 'model time in analysis' is that since there is no
time component in the graph, each car has only one current position, any
analysis of car behaviour would have to be done external to the graph,
perhaps on the incoming gps stream. So this is much more limited in
possibility than the previous case.

As you can see I had to make a ton of assumptions about your data and your
intentions to describe the above models. I assume the odds are low that I
matched your exact case very well, but hopefully I gave you some ideas to
think about.

Regards, Craig

On Fri, Mar 18, 2011 at 11:57 AM, Christoph K. <
klaassen.christ...@googlemail.com> wrote:

> Hi peole,
>
> i'm working on a project, where i want to map live data of cars on streets.
> I take my map data from OSM-maps for test purposes - so there's no problem
> at all.
> But i have no idea on how to integrate my car data. Should i implement my
> own geometryencoder, so that my car nodes can contain a position property.
> Or does it make sense to relate my car nodes to point nodes, which are
> representing the current position of my car? Some advice would be great!
>
> greetings from bavaria
> Christoph
> ___
> 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] [Neo4j Spatial] Need advice on modeling my spatial domain properly

2011-03-18 Thread Christoph K.
Hi Craig,

wow, this is a great reply :) Thank you very much for your advices.

To be a bit more precise about the project: it's a mix of both of your
options.
Option 2 is a great start from which i could go on and test, how neo4j
behaves in my special case. I get the data from the car itself (via umts or
sth like that) and want to provide some environment informations back to the
car. But it is intended that i have to deal with a huge amount of cars...
thousands up to... yeah maybe all cars on this planet ;-) (think big).
Option 1 with the possibility to inspect historical data would be
interesting, but i'm not sure, if neo4j is powerful enough to store that
amount of data, which is intended to be collected. So this would not be a
feature at this time but interesting for later enhancements.

I think i will try a simple encoder implementation to do a hybrid of your
options :) this leaves the option to extend the model more easily if it's
desired.

greetz
Chris

On Fri, Mar 18, 2011 at 12:47 PM, Craig Taverner  wrote:

> Hi Chris,
>
> A lot depends on your final intentions of how to use the model. There are
> many, many ways to model this, and each has its pros and cons. Let me try
> briefly describe two options I can think of that are related to the two
> factors you suggest below.
>
> *Option one - model time in the graph*
>
> In this case I'm assuming you want to store information about car
> movements.
> For example, you are a logistics company tracking your fleet, and each
> car/truck has a GPS and uploads data continuously. This data would be
> stored
> as an event stream in the database, indexed spatially in the RTree, and
> indexed with other indexes too (time of event (timeline index), which car
> (category index), which driver (category index), other properties of
> interest (lucene), etc.). You can relate the car to the OSM model through
> routing information (eg. the car is following a planned route on the OSM
> graph). Perhaps you model the route as a chain of nodes also, resulting in
> a
> three layer graph, the static OSM, the planned route and the actual route
> coming in live. This approach results in a very complete data model can can
> be historically mined for statistics and behaviours (eg. which cars match
> planned routes best, general speed patterns, driving behaviours, etc.)
>
> For this model there is value in adding your own geometry encoder if you
> wish to expose your own data (routes, and car traces) to a map or GIS.
> Since
> it is all point data, you could just use the SimplePointEncoder, but then
> you would not see lines, only points. If you want lines, rather make your
> own geometry encoder that understands how the nodes are connected in
> chains.
> Review the code of the sample encoders, it is not complex.
>
> *Option two - model time in analysis*
>
> Assuming the previous case is overkill, and you have no interest in fleet
> tracking and historical modeling, and all you want is a map that shows a
> single point for a car as it moves, it might be possible to not include the
> car in the database at all. Where do you get the car data from? If it is a
> stream of information from some data source, that stream could be consumed
> by the map view itself, just updating the points on the map. If you wish
> the
> map to not have to know about your own stream, then you can use the
> database. Perhaps you do something very simple, just store each car
> location
> in a SimplePointLayer (like the blog), and whenever a car change event
> arrives (from your source of car data, whatever that is), you could remove
> the car node from the RTree index and re-add it (basically re-index the
> point at a new location). The map needs to redraw that layer too, so you
> need to trigger that. If there are lots of cars moving all the time, rather
> just redraw the map layer on a timer.
>
> The reason I called this 'model time in analysis' is that since there is no
> time component in the graph, each car has only one current position, any
> analysis of car behaviour would have to be done external to the graph,
> perhaps on the incoming gps stream. So this is much more limited in
> possibility than the previous case.
>
> As you can see I had to make a ton of assumptions about your data and your
> intentions to describe the above models. I assume the odds are low that I
> matched your exact case very well, but hopefully I gave you some ideas to
> think about.
>
> Regards, Craig
>
> On Fri, Mar 18, 2011 at 11:57 AM, Christoph K. <
> klaassen.christ...@googlemail.com> wrote:
>
> > Hi peole,
> >
> > i'm working on a project, where i want to map live data of cars on
> streets.
> > I take my map data from OSM-maps for test purposes - so there's no
> problem
> > at all.
> > But i have no idea on how to integrate my car data. Should i implement my
> > own geometryencoder, so that my car nodes can contain a position
> property.
> > Or does it make sense to relate my car nodes to point nodes, which are
> > r

Re: [Neo4j] [Neo4j Spatial] Need advice on modeling my spatial domain properly

2011-03-18 Thread Craig Taverner
Hi Chris,

I'm glad my comments were of help. I think you are exactly right in starting
simple and enhancing as you need. This is certainly one of the points of a
'schema-less database' after all :-)

Neo4j can handle very large amounts of data, and every car on the planet
would fit, but perhaps not every car logging GPS points every few seconds
for a long time! You can deal with the performance issues as they arise
(although it helps to keep performance in mind as you go, of course).

If you are curious about a related system I was involved in, take a look at
the videos on my vimeo account at http://vimeo.com/craigtaverner. They show
an android application being driven around (in cars), uploading GPS and
other data to a central database (using neo4j), then being downloaded by a
desktop application containing another neo4j database which duplicates a
small subset of the data, and performs statistical analysis of the results
and displaying on a map. Not the same use case as yours, but certainly
related.

Regards, Craig

On Fri, Mar 18, 2011 at 1:11 PM, Christoph K. <
klaassen.christ...@googlemail.com> wrote:

> Hi Craig,
>
> wow, this is a great reply :) Thank you very much for your advices.
>
> To be a bit more precise about the project: it's a mix of both of your
> options.
> Option 2 is a great start from which i could go on and test, how neo4j
> behaves in my special case. I get the data from the car itself (via umts or
> sth like that) and want to provide some environment informations back to
> the
> car. But it is intended that i have to deal with a huge amount of cars...
> thousands up to... yeah maybe all cars on this planet ;-) (think big).
> Option 1 with the possibility to inspect historical data would be
> interesting, but i'm not sure, if neo4j is powerful enough to store that
> amount of data, which is intended to be collected. So this would not be a
> feature at this time but interesting for later enhancements.
>
> I think i will try a simple encoder implementation to do a hybrid of your
> options :) this leaves the option to extend the model more easily if it's
> desired.
>
> greetz
> Chris
>
> On Fri, Mar 18, 2011 at 12:47 PM, Craig Taverner  wrote:
>
> > Hi Chris,
> >
> > A lot depends on your final intentions of how to use the model. There are
> > many, many ways to model this, and each has its pros and cons. Let me try
> > briefly describe two options I can think of that are related to the two
> > factors you suggest below.
> >
> > *Option one - model time in the graph*
> >
> > In this case I'm assuming you want to store information about car
> > movements.
> > For example, you are a logistics company tracking your fleet, and each
> > car/truck has a GPS and uploads data continuously. This data would be
> > stored
> > as an event stream in the database, indexed spatially in the RTree, and
> > indexed with other indexes too (time of event (timeline index), which car
> > (category index), which driver (category index), other properties of
> > interest (lucene), etc.). You can relate the car to the OSM model through
> > routing information (eg. the car is following a planned route on the OSM
> > graph). Perhaps you model the route as a chain of nodes also, resulting
> in
> > a
> > three layer graph, the static OSM, the planned route and the actual route
> > coming in live. This approach results in a very complete data model can
> can
> > be historically mined for statistics and behaviours (eg. which cars match
> > planned routes best, general speed patterns, driving behaviours, etc.)
> >
> > For this model there is value in adding your own geometry encoder if you
> > wish to expose your own data (routes, and car traces) to a map or GIS.
> > Since
> > it is all point data, you could just use the SimplePointEncoder, but then
> > you would not see lines, only points. If you want lines, rather make your
> > own geometry encoder that understands how the nodes are connected in
> > chains.
> > Review the code of the sample encoders, it is not complex.
> >
> > *Option two - model time in analysis*
> >
> > Assuming the previous case is overkill, and you have no interest in fleet
> > tracking and historical modeling, and all you want is a map that shows a
> > single point for a car as it moves, it might be possible to not include
> the
> > car in the database at all. Where do you get the car data from? If it is
> a
> > stream of information from some data source, that stream could be
> consumed
> > by the map view itself, just updating the points on the map. If you wish
> > the
> > map to not have to know about your own stream, then you can use the
> > database. Perhaps you do something very simple, just store each car
> > location
> > in a SimplePointLayer (like the blog), and whenever a car change event
> > arrives (from your source of car data, whatever that is), you could
> remove
> > the car node from the RTree index and re-add it (basically re-index the
> > point at a new location). The map nee

[Neo4j] FW: Neo4j spatial

2011-03-18 Thread Saikat Kanjilal

Sorry forwarding to the list, accidentally only sent to Peter.

From: sxk1...@hotmail.com
To: peter.neuba...@neotechnology.com
Subject: RE: [Neo4j] Neo4j spatial
Date: Fri, 18 Mar 2011 08:54:51 -0700








Peter/Craig,Want to continue this thread, so I need to:
1) Load a lot of data initially about a nodes in paths inside a park2) I need 
to query this to calculate shortest paths, run complex traversals based on 
various properties of each node
3) I need to be able to update the graph (perform CRUD operations on the fly)4) 
I need to be periodically able to flush the contents of the graph and reload 
If I stay with my approach of using a background thread in java to perform 
operations 1,4 what are the tradeoffs between doing 2 and 3 in java versus 
using the REST server.  I would presumably be using gremlin and pipes in both 
approaches.

Any thoughts on this.Regards
> Date: Thu, 17 Mar 2011 07:19:16 +0100
> Subject: Re: [Neo4j] Neo4j spatial
> From: peter.neuba...@neotechnology.com
> To: user@lists.neo4j.org
> CC: sxk1...@hotmail.com
> 
> Saikat,
> which approach to use - atomic REST calls or a server plugin to work
> in the background - depends on the load of things. If you are
> importing stuff in the beginning, I would not use REST. If you are
> thinking about "normal" operations with moderate load, I think REST
> will be fine.
> 
> 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 Thu, Mar 17, 2011 at 1:11 AM, Saikat Kanjilal  wrote:
> > I've written a Quasi-mashup which loads points from google maps using a 
> > background thread in Spring to initially load points into neo4j, what I'm 
> > trying to evaluate with the goal of simplifying the architecture is the 
> > following:
> >
> > 1) Should I rejigger the tomcat service code to have a webservice call to 
> > add points which would be called through the steps you describe below from 
> > google or bing maps given that  I already have service API calls that do 
> > traversals with pipes and shortest path calculations
> >
> > 2) Take the rexster and http approach to upload the points through some 
> > automated process from my maps and stick with the http approach when doing 
> > traversals through gremlin and shortest path calculations.
> >
> >
> > Also I am trying to play with neo4j-spatial and trying to figure out how to 
> > leverage it moving forward
> >
> > That was a mouthful :)
> > Sent from my iPhone
> >
> > On Mar 16, 2011, at 4:49 PM, Craig Taverner  wrote:
> >
> >> Hi Saikat,
> >>
> >> There are a few places you can look for code samples. One of the best 
> >> places
> >> is the set of test cases included in neo4j spatial. You can find them at
> >> https://github.com/neo4j/neo4j-spatial/tree/master/src/test/java/org/neo4j/gis/spatial.
> >> In particular, since you are interested mostly in point data, take a look 
> >> at
> >> TestSimplePointLayer.javaand
> >> LayersTest.java
> >> .
> >>
> >> What you will find in those classes is Java code for adding points to the
> >> database, similar, but more extensive than the code in the blog.
> >>
> >> Regarding your specific case, if you are working with a normal google map 
> >> or
> >> bing map, and want to port the points into a local database, you would need
> >> to export them, and write a simple importer. If you have written a mashup
> >> between google or bing maps and your own neo4j-based web application, you
> >> should be able to use some client side coding to automate this, accessing
> >> the map, and posting the points directly into your own server (where of
> >> course you would have some code adding the points to the database). Does
> >> this answer your question?
> >>
> >> Regards, Craig
> >>
> >> On Thu, Mar 17, 2011 at 12:32 AM, Saikat Kanjilal 
> >> wrote:
> >>
> >>> Hi Folks,
> >>> I was reading through the docs on neo4j spatial and was wondering about a
> >>> few things:
> >>>
> >>> 1) If I have a google or bing map and I manually plot some points can I 
> >>> use
> >>> neo4j spatial to automate the loading of those points into my neo4j db?
> >>>
> >>> 2) Are there code samples for neo4j-spatial or implementations I can look
> >>> at for a deeper look at the API's etc?
> >>>
> >>> Best Regards
> >>>
> >>> Sent from my iPhone
> >>> ___
> >>> Neo4j mailing list
> >>> User@lists.neo4j.org
> >>> https://lists.neo4j.org/mailm

Re: [Neo4j] FW: Neo4j spatial

2011-03-18 Thread Peter Neubauer
Saikat,
the best way to do 2) and 3) depends on the frequency of things. For
heavy operations, server side Java or sending Gremlin scripts over
would probably be the best option.

For relatively standard traversals, you could use the built-in REST
endpoints for the graph algos.

Depending on the number of different queries you want to support, a
couple of "hard coded" Server Plugins executing either straight pipes
or "hard coded" Gremlin scripts might be an option, reducing the
complexity on the client. Otherwise, a generic Gremlin- payload script
Plugin could be a more ad-hoc way.

Let Marko and me know if you are starting on a Gremlin plugin, so we
can support you as there is more demand for it anyway. Would love to
get at least some initial Scripting support into 1.3!

/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 Fri, Mar 18, 2011 at 5:23 PM, Saikat Kanjilal  wrote:
>
> Sorry forwarding to the list, accidentally only sent to Peter.
>
> From: sxk1...@hotmail.com
> To: peter.neuba...@neotechnology.com
> Subject: RE: [Neo4j] Neo4j spatial
> Date: Fri, 18 Mar 2011 08:54:51 -0700
>
>
>
>
>
>
>
>
> Peter/Craig,Want to continue this thread, so I need to:
> 1) Load a lot of data initially about a nodes in paths inside a park2) I need 
> to query this to calculate shortest paths, run complex traversals based on 
> various properties of each node
> 3) I need to be able to update the graph (perform CRUD operations on the 
> fly)4) I need to be periodically able to flush the contents of the graph and 
> reload
> If I stay with my approach of using a background thread in java to perform 
> operations 1,4 what are the tradeoffs between doing 2 and 3 in java versus 
> using the REST server.  I would presumably be using gremlin and pipes in both 
> approaches.
>
> Any thoughts on this.Regards
>> Date: Thu, 17 Mar 2011 07:19:16 +0100
>> Subject: Re: [Neo4j] Neo4j spatial
>> From: peter.neuba...@neotechnology.com
>> To: user@lists.neo4j.org
>> CC: sxk1...@hotmail.com
>>
>> Saikat,
>> which approach to use - atomic REST calls or a server plugin to work
>> in the background - depends on the load of things. If you are
>> importing stuff in the beginning, I would not use REST. If you are
>> thinking about "normal" operations with moderate load, I think REST
>> will be fine.
>>
>> 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 Thu, Mar 17, 2011 at 1:11 AM, Saikat Kanjilal  wrote:
>> > I've written a Quasi-mashup which loads points from google maps using a 
>> > background thread in Spring to initially load points into neo4j, what I'm 
>> > trying to evaluate with the goal of simplifying the architecture is the 
>> > following:
>> >
>> > 1) Should I rejigger the tomcat service code to have a webservice call to 
>> > add points which would be called through the steps you describe below from 
>> > google or bing maps given that  I already have service API calls that do 
>> > traversals with pipes and shortest path calculations
>> >
>> > 2) Take the rexster and http approach to upload the points through some 
>> > automated process from my maps and stick with the http approach when doing 
>> > traversals through gremlin and shortest path calculations.
>> >
>> >
>> > Also I am trying to play with neo4j-spatial and trying to figure out how 
>> > to leverage it moving forward
>> >
>> > That was a mouthful :)
>> > Sent from my iPhone
>> >
>> > On Mar 16, 2011, at 4:49 PM, Craig Taverner  wrote:
>> >
>> >> Hi Saikat,
>> >>
>> >> There are a few places you can look for code samples. One of the best 
>> >> places
>> >> is the set of test cases included in neo4j spatial. You can find them at
>> >> https://github.com/neo4j/neo4j-spatial/tree/master/src/test/java/org/neo4j/gis/spatial.
>> >> In particular, since you are interested mostly in point data, take a look 
>> >> at
>> >> TestSimplePointLayer.javaand
>> >> LayersTest.java
>> >> .
>> >>
>> >> What you will find in those classes is Java code for adding points to the
>> >> database, similar, but more 

Re: [Neo4j] FW: Neo4j spatial

2011-03-18 Thread Saikat Kanjilal

I would like to work on a generic gremlin plugin approach, will let you and 
Marko know of progress through the git repository.Regards

> Date: Fri, 18 Mar 2011 21:10:01 +0100
> From: peter.neuba...@neotechnology.com
> To: user@lists.neo4j.org
> Subject: Re: [Neo4j] FW: Neo4j spatial
> 
> Saikat,
> the best way to do 2) and 3) depends on the frequency of things. For
> heavy operations, server side Java or sending Gremlin scripts over
> would probably be the best option.
> 
> For relatively standard traversals, you could use the built-in REST
> endpoints for the graph algos.
> 
> Depending on the number of different queries you want to support, a
> couple of "hard coded" Server Plugins executing either straight pipes
> or "hard coded" Gremlin scripts might be an option, reducing the
> complexity on the client. Otherwise, a generic Gremlin- payload script
> Plugin could be a more ad-hoc way.
> 
> Let Marko and me know if you are starting on a Gremlin plugin, so we
> can support you as there is more demand for it anyway. Would love to
> get at least some initial Scripting support into 1.3!
> 
> /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 Fri, Mar 18, 2011 at 5:23 PM, Saikat Kanjilal  wrote:
> >
> > Sorry forwarding to the list, accidentally only sent to Peter.
> >
> > From: sxk1...@hotmail.com
> > To: peter.neuba...@neotechnology.com
> > Subject: RE: [Neo4j] Neo4j spatial
> > Date: Fri, 18 Mar 2011 08:54:51 -0700
> >
> >
> >
> >
> >
> >
> >
> >
> > Peter/Craig,Want to continue this thread, so I need to:
> > 1) Load a lot of data initially about a nodes in paths inside a park2) I 
> > need to query this to calculate shortest paths, run complex traversals 
> > based on various properties of each node
> > 3) I need to be able to update the graph (perform CRUD operations on the 
> > fly)4) I need to be periodically able to flush the contents of the graph 
> > and reload
> > If I stay with my approach of using a background thread in java to perform 
> > operations 1,4 what are the tradeoffs between doing 2 and 3 in java versus 
> > using the REST server.  I would presumably be using gremlin and pipes in 
> > both approaches.
> >
> > Any thoughts on this.Regards
> >> Date: Thu, 17 Mar 2011 07:19:16 +0100
> >> Subject: Re: [Neo4j] Neo4j spatial
> >> From: peter.neuba...@neotechnology.com
> >> To: user@lists.neo4j.org
> >> CC: sxk1...@hotmail.com
> >>
> >> Saikat,
> >> which approach to use - atomic REST calls or a server plugin to work
> >> in the background - depends on the load of things. If you are
> >> importing stuff in the beginning, I would not use REST. If you are
> >> thinking about "normal" operations with moderate load, I think REST
> >> will be fine.
> >>
> >> 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 Thu, Mar 17, 2011 at 1:11 AM, Saikat Kanjilal  
> >> wrote:
> >> > I've written a Quasi-mashup which loads points from google maps using a 
> >> > background thread in Spring to initially load points into neo4j, what 
> >> > I'm trying to evaluate with the goal of simplifying the architecture is 
> >> > the following:
> >> >
> >> > 1) Should I rejigger the tomcat service code to have a webservice call 
> >> > to add points which would be called through the steps you describe below 
> >> > from google or bing maps given that  I already have service API calls 
> >> > that do traversals with pipes and shortest path calculations
> >> >
> >> > 2) Take the rexster and http approach to upload the points through some 
> >> > automated process from my maps and stick with the http approach when 
> >> > doing traversals through gremlin and shortest path calculations.
> >> >
> >> >
> >> > Also I am trying to play with neo4j-spatial and trying to figure out how 
> >> > to leverage it moving forward
> >> >
> >> > That was a mouthful :)
> >> > Sent from my iPhone
> >> >
> >> > On Mar 16, 2011, at 4:49 PM, Craig Taverner  wrote:
> >> >
> >> >> Hi Saikat,
> >> >>
> >> >> There are a few places you can look for code samples. One of the best 
> >> >> places
> >> >> is the set of test cases included in neo4j spatial. You can find them at
> >> >> https://github.com/neo4j/neo4j-spatial/tree/ma

[Neo4j] neoclipse ubuntu 10.04 problem

2011-03-18 Thread Matěj Plch
Hi,
I'm running Ubuntu 10.04 (2.6.32-30) 32bit and have problem with
neoclipse. I downloaded neoclipse. I wanted to open some db made from
Java application, but I got some errors. So I set path to new db and
clicked to connect/start database. And got:
./neoclipse
19.3.2011 2:02:27 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
INFO: Starting GraphDbServiceManager
19.3.2011 2:02:41 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
INFO: trying to start/connect ...
19.3.2011 2:02:41 org.neo4j.neoclipse.graphdb.GraphDbServiceManager logInfo
INFO: connected to embedded neo4j
java.util.concurrent.ExecutionException:
java.lang.IllegalStateException: Can't start new database: the old one
isn't shutdown properly.

In the info window:
java.lang.IllegalStateException: Can't start new database: the old one
isn't shutdown properly.: Can't start new database: the old one isn't
shutdown properly.

There are no errors in messages.log. The db was created.

How can I get rid of this problem?

Running neo4j and also neoclipse version 1.2.

$ java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

Best regards
Matěj Plch.

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