{"id":23396518,"url":"https://github.com/mneedham/neo4j-importer","last_synced_at":"2025-04-08T17:32:39.564Z","repository":{"id":66523812,"uuid":"11722874","full_name":"mneedham/neo4j-importer","owner":"mneedham","description":null,"archived":false,"fork":false,"pushed_at":"2013-09-20T11:05:35.000Z","size":2048,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T13:50:22.142Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mneedham.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-28T17:09:43.000Z","updated_at":"2013-11-10T22:47:15.000Z","dependencies_parsed_at":"2023-02-20T06:45:32.115Z","dependency_job_id":null,"html_url":"https://github.com/mneedham/neo4j-importer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Fneo4j-importer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Fneo4j-importer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Fneo4j-importer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mneedham%2Fneo4j-importer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mneedham","download_url":"https://codeload.github.com/mneedham/neo4j-importer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247892519,"owners_count":21013721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-22T07:36:04.944Z","updated_at":"2025-04-08T17:32:39.538Z","avatar_url":"https://github.com/mneedham.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"*This is a work in progress, it doesn't do everything it says below yet*\n\n# An easy to use tool for importing data into neo4j\n\nneo4j importer is a command line tool which makes it easy to import data in a variety of different formats into your database. It will eventually support CSV, [GraphML](http://graphml.graphdrawing.org/) and [Geoff](http://nigelsmall.com/geoff) but we're open to suggestions for other formats that you'd like to see.\n\n## Installation\n\n1. Download the neo4j-importer zip file.\n\n````\ncurl http://dist.neo4j.org/neo4j-importer.zip -o neo4j-importer.zip\n````\n\n2. Unzip it somewhere on your machine.\n\n````\nunzip batch-importer.zip -d ~/neo4j-importer\n````\n\n3. That's it!\n\n## Usage\n\n1. Ensure you have a neo4j server running \n\n    ~~~ sh\n    /path/to/neo4j-installation/bin/neo4j start\n    ~~~\n\n2. Navigate on your machine to the folder where you unzipped neo4j-importer.\n\n    ~~~ sh\n    cd ~/neo4j-importer\n    ~~~ \n\n3. Create a file names [nodes.csv](examples/nodes.csv) which contains the nodes that you want to import. \nThe file should contain a header listing the node's fields. One of those fields *must* be called 'id' and is used to identify the node.\n\ne.g.\n\n````\necho -e \"id\\tname\\n1\\tMark\\n2\\tAndreas\" \u003e nodes.csv\n````\n\n````\ncat nodes.csv\nid\tname\n1\tMark\n2\tAndreas\n````\n\n4. Create a file named [relationships.csv](examples/relationships.csv) which contains relationships between the nodes defined in nodes.csv. \nThe file should contain a header with the fields 'from', 'to', 'type' and can also contain fields for properties on the relationship. The 'from' and 'to' fields use the values defined in the 'id' field in nodes.csv.\n\ne.g.\n\n````\necho -e \"from\\tto\\ttype\\ttimeInMonths\\n1\\t2\\tFRIEND\\t3\" \u003e relationships.csv\n````\n\n````\ncat relationships.csv\nfrom\tto\ttype\ttimeInMonths\n1\t2\tFRIEND\t3\n````\n\n5. Import your data into neo4j\n\n````\n./bin/neo4j-importer\nSuccessfully imported 1 node and 1 relationship\n````","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmneedham%2Fneo4j-importer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmneedham%2Fneo4j-importer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmneedham%2Fneo4j-importer/lists"}