I am travelling at the moment, so cannot give a long answer, but can suggest
you look at the wiki page for neo4j in uDig, because there we have made some
updates concerning which jars to use, and that will probably help you get
this working.
On Jul 12, 2011 10:59 AM, "Robin Cura" <robin.c...@gmail.com> wrote:
> Hi,
>
> First of all, thanks a lot to both of you for your answers, I have only
been
> able to try this yesterday, and it released me from lots of troubles.
>
> I succeeded editing the Neo4jTestCase.java file in Netbeans, as you told.
> I've got troubles to install latest JRuby release (needed for
neo4j-spatial)
> within my Ubuntu, so, I'll make this later, but it's really a good thing
to
> know considering the simplicity of use.
>
> Creating thoses databases made me realize another problem.In fact, I
> followed the tutorial about using neo4j db in Geoserver, and it appears
that
> my neo4j plugin for Geoserver doesn't work, as I always get this error
when
> trying to create a new store linking to my neo4j database.
> My database is a folder named "db1" (and "db2" for the other one), located
> in my ~/ folder.
>
> In Geoserver, I create a new store and make it link to
> "file:/home/administrateur/db1/neostore.id"
> But each time, I got this errror :
>
>> Error connecting to Store.
>>
>> There was an error trying to connecto to store neo4jstore. Do you want to
>> save it anyway?
>>
> Original exception error:
>
> Could not acquire data access 'neo4jstore'
>
> I tried with my 2 databases, and same problem.
> It seems those 2 db aren't the problem, as I've been able to
open/visualise
> those in Gephi (using neo4j import plugin).
>
> My guess is that my neo4-spatial plugin for Geoserver isn't working
> properly.
>
> The main problem is that, since the tutorial was written, neo4j changed.
>
> In the tuto, we have to place some files in geoserver/WEB-INF/lib/ folder
:
>
> - json-simple-1.1.jar <-- No problem, this file is still used
> - geronimo-jta_1.1_spec-1.1.1.jar <-- Same, this is still the version
> used in neo4j
> - neo4j-kernel-1.2-1.2.M04.jar <-- Replaced this one with my current
> neo4j kernel jar, neo4j-kernel-1.4.jar
> - neo4j-index-1.2-1.2.M04.jar
> - neo4j-spatial.jar<-- Replaced this one with the latest build returned
> by using "sudo mvn clean package" : neo4j-spatial-0.6-SNAPSHOT.jar
>
> My problem is that there is no more neo4j-index file in latest neo4j
> releases. There is some neo4j-lucene-index files, but 1.4 doesn't seem to
> use neo4j-index anymore.
> When I only put neo4j-lucene-index.jar, Geoserver doesn't propose any
option
> to create a Store from Neo4j databases.
>
> So, what I did is I used the neo4j-index-1.3-1.3.M01.jar file from
previous
> release of Neo4j : Geoserver proposes to create a Store from a Neo4j db,
but
> I got the error message quoted above.
>
> Any idea how I could make this work ? What is the file that replace
> neo4j-index in Neo4j 1.4 ?
>
> I join one of my database, archived, so that one of you with a working
neo4j
> plugin in Geoserver could test it and confirm the problem isn't with the
DB.
>
> Thanks,
>
> Robin Cura
>
> 2011/7/9 Craig Taverner <cr...@amanzi.com>
>
>> Another option is to run the main method of OSMImport class, which
expects
>> command line arguments for database location and OSM file, and will
simply
>> import a file once. This is not tested often, so there is a risk things
>> have
>> changed, but it is worth a try.
>>
>> Another, even easier, option in my opinion is the JRuby gem,
>> neo4j-spatial.rb. See http://rubygems.org/gems/neo4j-spatial
>>
>> To get this running, just install JRuby from http://jruby.org, and then
>> install the gem with "jruby -S gem install neo4j-spatial" and then you
will
>> have new console commands like 'import_layer'. If you run 'import_layer
>> mydata.osm', it will import it to a new database, which you can use. See
>> the
>> github page for more information:
>> https://github.com/craigtaverner/neo4j-spatial.rb
>>
>> On Thu, Jul 7, 2011 at 10:47 AM, Peter Neubauer <
>> peter.neuba...@neotechnology.com> wrote:
>>
>> > Robin,
>> >
>> > the database is deleted after each run in Neo4jTestCase.java,
>> >
>> > @Override
>> > @After
>> > protected void tearDown() throws Exception {
>> > shutdownDatabase(true);
>> > super.tearDown();
>> > }
>> >
>> > if you change to shutdownDatabase(false), the database will not be
>> > deleted. In this case, make sure to run just that test in order not to
>> > write several tests to the same DB for clarity.
>> >
>> > mvn test -Dtest=TestDynamicLayers
>> >
>> > Does that work for you?
>> >
>> >
>> > 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 Tue, Jul 5, 2011 at 6:07 PM, Robin Cura <robin.c...@gmail.com>
wrote:
>> > > Hello,
>> > >
>> > > First of all, I don't know anything in java, and I'm trying to figure
>> out
>> > if
>> > > neo4j could be usefull for my projects. If it is, I will of course
>> learn
>> > a
>> > > bit of java so that I can use neo4j in a decent way for my needs.
>> > >
>> > > I'd like to use a neo4j spatial database together with GeoServer.
>> > > For this, I'm following the tutorial here :
>> > > http://wiki.neo4j.org/content/Neo4j_Spatial_in_GeoServer
>> > > But this paragraph is blocking me :
>> > > "
>> > >
>> > > - One option for the database location is a database created using
>> the
>> > > unit tests in Neo4j Spatial. The rest of this wiki assumes that you
>> ran
>> > the
>> > > TestDynamicLayers unit test which loads an OSM dataset for the city
>> of
>> > Malmö
>> > > in Sweden, and then creates a number of Dynamic Layers (or views) on
>> > this
>> > > data, which we can publish in GeoServer.
>> > > - If you do use the unit test for the sample database, then the
>> > location
>> > > of the database will be in the target/var/neo4j-db directory of the
>> > Neo4j
>> > > Source code.
>> > >
>> > > "
>> > >
>> > > My problem is I do not succeed keeping those neo4j spatial databases
>> > created
>> > > with the tests : When I run TestDynamicLayers, it builds databases
(in
>> > > target/var/neo4j-db), but as soon as the database is successfully
>> loaded,
>> > it
>> > > deletes it and start importing another database, and so on.
>> > >
>> > > My poor understanding of java doesn't help a lot, I tried to edit the
>> > .java
>> > > in Netbeans + Maven, but until then, it doesn't work, all the
>> directories
>> > > created during the tests are deleted when the test ends.
>> > >
>> > > Any idea how I could keep those databases ?
>> > >
>> > > Thanks,
>> > >
>> > > Robin
>> > > _______________________________________________
>> > > 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
>>
>
>
>
> --
> Robin Cura
> robin.c...@gmail.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to