Skip to content

Commit

Permalink
fixing the example code, and installation script to download the data…
Browse files Browse the repository at this point in the history
…, creating database now work
  • Loading branch information
andreasronge committed Nov 12, 2008
1 parent 435fbdc commit 9f5a234
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/imdb/create_neo_db.rb
@@ -1,3 +1,5 @@
$LOAD_PATH << File.expand_path(File.dirname(__FILE__) + "/../../lib")

require "rubygems"
require "neo4j"
require "model"
Expand Down Expand Up @@ -55,10 +57,10 @@ def parse_actors(file)
end


Neo4j.start
Neo4j.start '/tmp/neo', '/tmp/lucene'


parse_actors('data/test-actors.list')


Neo4j.stop
Neo4j.stop
12 changes: 12 additions & 0 deletions examples/imdb/install.sh
@@ -0,0 +1,12 @@
#!/bin/sh

# In order to run this example the following files must be downloaded in unpacked
# in the data folder

mkdir data
cd data
wget https://trac.neo4j.org/export/2067/laboratory/users/andersn/imdb-app/src/test/data/test-actors.list.gz --no-check-certificate
wget https://trac.neo4j.org/export/2067/laboratory/users/andersn/imdb-app/src/test/data/test-movies.list.gz --no-check-certificate
gunzip test-actors.list.gz
gunzip test-movies.list.gz

0 comments on commit 9f5a234

Please sign in to comment.