/wordnet2neo4j

Wrapper around joshsh's implementation of an importer from WordNet to Neo4j

Primary LanguageJava

wordnet2neo4j

Wrapper around joshsh's implementation of an importer from WordNet to Neo4j

Please check:

https://gist.github.com/joshsh/5047451

Requirements

Build

$ lein uberjar

Instructions

Assuming $WORDNET_DIR is the folder where you want to download WordNet 3.0 and $NEO4J the folder where Neo4j is installed:

  1. Download WordNet with: cd $WORDNET_ROOT ; git clone git://eculture.cs.vu.nl/home/git/vocs/wordnet
  2. 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
  1. Restart and stop the Neo4j server: cd $NEO4J ; bin/neo4j restart ; bin/neo4j stop
  2. Backup your Neo4j database if needed: cd $NEO4J ; mv data data.backup
  3. Run WordnetLoader with two arguments:
$ lein run $WORDNET_ROOT/wordnet/rdf/full $NEO4J/data/graph.db
  1. Start the Neo4j server: cd $NEO4J ; bin/neo4j start