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 <[email protected]> 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 <[email protected]> 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.java<https://github.com/neo4j/neo4j-spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestSimplePointLayer.java>and >> LayersTest.java<https://github.com/neo4j/neo4j-spatial/blob/master/src/test/java/org/neo4j/gis/spatial/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 <[email protected]>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 >>> [email protected] >>> https://lists.neo4j.org/mailman/listinfo/user >>> >> _______________________________________________ >> Neo4j mailing list >> [email protected] >> https://lists.neo4j.org/mailman/listinfo/user >> > _______________________________________________ > Neo4j mailing list > [email protected] > https://lists.neo4j.org/mailman/listinfo/user > _______________________________________________ Neo4j mailing list [email protected] https://lists.neo4j.org/mailman/listinfo/user

