[Neo4j] [USE-CASE] Storing time based and spatialized data with multilevel index structure and neo4j-spatial

2012-04-02 Thread reyman
Hi neo4j community,

I post my problem here (and a less recent copy on stackoverflow
http://stackoverflow.com/questions/9750454/neo4j-graph-database-helping-to-store-several-time-based-data-values-result-of)

*Peter Neubauer* give me some information (like this template of time based
structure for neo4j :
http://blog.neo4j.org/2012/02/modeling-multilevel-index-in-neoj4.html)
about time index construct,
 and now, i try to represent this complex problem with neo4j formalism.

I think, if i can implement this formalism, this is a good use case (first
?) for future other simulation data storage with neo4j, *i can make a real
tutorial for other which have same type of problem* ..

*A) THE DATA
*
After simulation, we need to *export and visualize the data by time, by
city, by space**, by city attribute* *or by other object collection
*(innovations creates by city, exchange between city, etc).

a) City are represented with ABM ( one city = one agent in our model) in a
spatial context (so one city = one node). Each city communicate only with
near neighbors (radius limit), at each step of simulation.

b) City have a pool of innovation in their own market, other cities can get
this innovation, one by step by city connected.

c) At each step, one city try to copy one innovation of each neighboors
with probability function of their distance, and after that, they try to
innovate/ create new innovation.
*B) THE PROBLEM*

a) I want to store all properties/data change at each step of my simulation
because at each step we can observe multiple city event like :
growing population, exchange or create new innovation, create new link with
other city, etc

Is it better *to copy and recopy all of my spatial nodes tree* with new
properties values (population, new link with other cities, etc) at each
step (1 .. 2 .. 3.. etc)  ?
Or is it better to have* one static tree with spatial representation of the
cities*, and store only in other tree the city events and attributes
change  : EXCHANGE, GROWING, etc.

*I think the second option is better*, but i don't know how i can store in
my tree this type of events population change into city A or new link
between A and B at step 3 of simulation ??

b) I want to store the graph of innovation, because i want to view the
result of diffusion of any innovation in time (step of our simulation).

I make a draft image of my solution at bottom of this mail, do you think
this is the good solution to store relationship like this ?

c) It's complicated by the fact than innovation can disapear because each
of them contain a life property after what we desactivate the possibility
of diffusion.

d) A lot of data for each experimentation : 100.000 innovations, 4000 step
of time, 100 city ...
*
C) DRAFT OF MY NEO4J TREE CONCEPTION*
[image: Inline image 3]
*D) THE DRAFT OF SOURCE CODE*

I make a first program in scala which store all cities with neo4j-spatial
layer. It works well, i can represent my graph of cities into gephi.

Source code of my model is here :

https://forge.iscpif.fr/projects/simpoplocal/repository/show/model-scala/src/main/scala/fr/geocite/simpoplocal?rev=feature%2FSLocalScala/

*Launcher.scala* (
https://forge.iscpif.fr/projects/simpoplocal/repository/entry/model-scala/src/main/scala/fr/geocite/simpoplocal/Launcher.scala?rev=feature%2FSLocalScala/)
and *Simulation.scala* (
https://forge.iscpif.fr/projects/simpoplocal/repository/entry/model-scala/src/main/scala/fr/geocite/simpoplocal/Simulation.scala?rev=feature%2FSLocalScala/)
contain the methodes which write into neo4j embedded database.

Now i try to integrate all events of my simulation : exchange, growing into
this graph, but i need your experience to make a good conception
representation of this problem.

The draft link for modification is here, if you have an idea to help me  :
https://docs.google.com/drawings/d/1oW65bXJ-Z-B-vMzVwJb_qUmQvaunoEsajJm-QLRHB9Y/edit
*
Thanks a lot, *
Sebastien Rey.
___
NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register 
and consider posting at https://groups.google.com/forum/#!forum/neo4j

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


Re: [Neo4j] GSoC 2011 Neo4j Geoprocessing | Weekly Report #8

2011-07-22 Thread reyman
Hi,

First, thanks a lot for your work :)

If you have time, i post a bug on github about the integration of
neo4jSpatial into geoserver,
if you want some help on this point, i'am here and ready ! ;)

https://github.com/neo4j/neo4j-spatial/issues/12

Best regards,
SRey.



On Fri, Jul 22, 2011 at 8:52 PM, Andreas Wilhelm a...@kabelbw.de wrote:

 Hi,

 This week I started with my second phase of GSOC which means to create
 an Neo4j geoprocessing example in uDig.
 For that I set up the development environment for uDig.

 Also added some more code comments to the spatial functions and
 installed the doc-toolchain for Neo4j (Spatial).

 Currently I´m checking the GeoServer integration of Neo4j Spatial.

 Best Regards

 Andreas

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




-- 
http://stackoverflow.com/users/385881/reyman64
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Ask embedded neo4j database with REST api ?

2011-07-21 Thread reyman
Hello neo4j comunity,

I want to create a plugin in netlogo
http://ccl.northwestern.edu/netlogo/to access neo4j database.
In this future extension of netlogo (java simulation program) i try to write
custom function which help to create, delete, traverse a graph stored in an
imbedded neo4j database which run in the same JVM of netlogo. For better
compatibilty between netlogo and neo4j, is it possible to write REST query
into netlogo in string, and transmit this query to embedded neo4j database
?? At this time, i don't know if neo4 embedded database understand / have
function for parse REST query ?

Ps : i don't want a neo4j server because i execute netlogo and neo4j
embedded in a closed environnement, on a computer grid.

Best regards,
SR.

-- 
http://stackoverflow.com/users/385881/reyman64
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] Issue / error with neo4j-spatial and geoserver,

2011-07-20 Thread reyman
Hello devs,

First i refer for my problem to this previous message on neo4j list (
http://lists.neo4j.org/pipermail/user/2011-July/010158.html)
because i have the same issue/error with geoserver and neo4j-spatial plugin
:/
*
Error creating data store, check the parameters. Error message: Could not
acquire data access 'Neo4j-Spatial Test'*

I post an issue on github : https://github.com/neo4j/neo4j-spatial/issues/12

In a second part, i think the tutorial on the wiki is outdated (
http://wiki.neo4j.org/content/Neo4j_Spatial_in_GeoServer)


If anyone have an idea to resolve this problem, i take it :)

Best regards neo4j community,
SRey.

-- 
http://stackoverflow.com/users/385881/reyman64
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Issue / error with neo4j-spatial and geoserver,

2011-07-20 Thread reyman
Hi,
Sorry, but i know anything about the core structure of neo4j-spatial and the
code source of the project is really big, so i don't know how to begin to
search for patch this error :-/

I have only a null pointer exception in the geoserver.log, it's few :/
If a dev contributor of neo4j-spatial give me some indication, i can try to
fix the bug.

I update the wiki if i find a solution, no problem :)

Best regards,
SR.

On Wed, Jul 20, 2011 at 7:14 PM, Peter Neubauer neubauer.pe...@gmail.comwrote:

 Hi SRay,
 If you want test out and update the Wiki, that would be most appreciated!
 Both Craig and me are low on cycles right now, Saikat is working on the
 RTree and Andreas on putting PostGIS functions into place.

 If if you fork the codebase, please send in the CLA as described in the
 code
 contributors guide on the Wiki so we can pull. Thanks!

 /peter

 Sent from my phone.
 On Jul 20, 2011 6:59 PM, reyman reyma...@gmail.com wrote:
  Hello devs,
 
  First i refer for my problem to this previous message on neo4j list (
  http://lists.neo4j.org/pipermail/user/2011-July/010158.html)
  because i have the same issue/error with geoserver and neo4j-spatial
 plugin
  :/
  *
  Error creating data store, check the parameters. Error message: Could not
  acquire data access 'Neo4j-Spatial Test'*
 
  I post an issue on github :
 https://github.com/neo4j/neo4j-spatial/issues/12
 
  In a second part, i think the tutorial on the wiki is outdated (
  http://wiki.neo4j.org/content/Neo4j_Spatial_in_GeoServer)
 
 
  If anyone have an idea to resolve this problem, i take it :)
 
  Best regards neo4j community,
  SRey.
 
  --
  http://stackoverflow.com/users/385881/reyman64
  ___
  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




-- 
http://stackoverflow.com/users/385881/reyman64
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user