Wrapper around joshsh's implementation of an importer from WordNet to Neo4j
Please check:
https://gist.github.com/joshsh/5047451
- Neo4j, version 1.9.5 (does NOT work with version 2.0.0)
- http://www.neo4j.org/download_thanks?edition=community&release=1.9.4&platform=unix
$ lein uberjar
Assuming $WORDNET_DIR is the folder where you want to download WordNet 3.0 and $NEO4J the folder where Neo4j is installed:
- Download WordNet with: cd $WORDNET_ROOT ; git clone git://eculture.cs.vu.nl/home/git/vocs/wordnet
- Disable Lucene indexes in $NEO4J/conf/neo4j.properties:
# Autoindexing
# Enable auto-indexing for nodes, default is false
#node_auto_indexing=true
# The node property keys to be auto-indexed, if enabled
#node_keys_indexable=value
# Enable auto-indexing for relationships, default is false
#relationship_auto_indexing=true
# The relationship property keys to be auto-indexed, if enabled
#relationship_keys_indexable=value
- Restart and stop the Neo4j server: cd $NEO4J ; bin/neo4j restart ; bin/neo4j stop
- Backup your Neo4j database if needed: cd $NEO4J ; mv data data.backup
- Run WordnetLoader with two arguments:
$ lein run $WORDNET_ROOT/wordnet/rdf/full $NEO4J/data/graph.db
- Start the Neo4j server: cd $NEO4J ; bin/neo4j start