Skip to content

maxdemarzi/import_maxmind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

import_maxmind

Import the MaxMind Cities Database into Neo4j

Instructions

  1. Build it:

     mvn clean package
    
  2. Copy target/importer-1.0-SNAPSHOT.jar to the plugins/ directory of your Neo4j server.

  3. Download and copy additional jars to the plugins/ directory of your Neo4j server.

     wget http://central.maven.org/maven2/org/apache/commons/commons-csv/1.2/commons-csv-1.2.jar
    
  4. Configure Neo4j by adding a line to conf/neo4j.conf:

     dbms.unmanaged_extension_classes=com.maxdemarzi=/v1
    
  5. Start Neo4j server.

  6. Create the schema:

     :POST /v1/schema/create
    
  7. Import the CSV files:

     :POST /v1/import/locations {"file":"path to file"}
     # for example:
     :POST /v1/import/locations {"file":"/Users/maxdemarzi/Projects/import_maxmind/src/main/resources/data/GeoLite2-City-Locations-en.csv"}
    

This product includes GeoLite2 data created by MaxMind, available from http://www.maxmind.com.

About

Import the MaxMind Cities Database into Neo4j

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages