https://github.com/technige/24
24 data set
https://github.com/technige/24
Last synced: 25 days ago
JSON representation
24 data set
- Host: GitHub
- URL: https://github.com/technige/24
- Owner: technige
- Created: 2014-06-30T22:21:14.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-02T21:47:32.000Z (almost 12 years ago)
- Last Synced: 2025-03-22T19:44:41.061Z (about 1 year ago)
- Language: Python
- Size: 294 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Neo4j Python 24 Hackathon
This repository contains a 24 data set in Geoff format for use at a [Neo4j Python Hackathon](http://www.meetup.com/graphdb-london/events/191374552/).
## Installing Load2neo
We'll be using the [Load2neo](http://nigelsmall.com/load2neo) plugin to import the data so you'll need to get that installed.
````
Download Load2neo from http://nigelsmall.com/d/load2neo-0.6.0.zip
Unzip it
Copy geoff-0.5.0.jar and load2neo-0.6.0.jar to /path/to/neo4j/plugins
````
So your plugins directory should look something like this:
````
$ ls -alh plugins/
total 64
drwxr-xr-x 5 markneedham staff 170B 1 Jul 22:34 .
drwxr-xr-x 14 markneedham staff 476B 1 Jul 22:32 ..
-rwxr--r-- 1 markneedham staff 374B 1 Jul 22:32 README.txt
-rw-r--r--@ 1 markneedham staff 20K 1 Jul 22:34 geoff-0.5.0.jar
-rw-r--r--@ 1 markneedham staff 6.4K 1 Jul 22:34 load2neo-0.6.0.jar
````
Add the following line to the end of your neo4j-server.properties file:
````
org.neo4j.server.thirdparty_jaxrs_classes=com.nigelsmall.load2neo=/load2neo
````
Restart your Neo4j server.
## Importing the data
Now we need to import the different 24 seasons which are inside the [data](data) directory.
### Mac / Unix / Cygwin users
Execute the following commands:
````
for i in {1..9}
do curl -X POST http://localhost:7474/load2neo/load/geoff -d @data/24_${i}.geoff;
done
````
### Windows users
We'll import the data using a browser plugin which can execute a HTTP POST request against the Neo4j server. We've tried out the following ones:
* [DHC REST](https://chrome.google.com/webstore/detail/dhc-rest-http-api-client/aejoelaoggembcahagimdiliamlcdmfm/related?hl=en) - for Chrome
* [Poster](https://addons.mozilla.org/en-US/firefox/addon/poster/) - for Firefox
Here's an example of importing [data/24_1.geoff](data/24_1.geoff) using DHC REST. You'll need to do something similar for each of the files in the [data](data) directory.