{"id":16552415,"url":"https://github.com/thedigitalninja/graphdb-workshop1","last_synced_at":"2026-05-06T09:36:44.929Z","repository":{"id":86830921,"uuid":"202018284","full_name":"TheDigitalNinja/GraphDB-Workshop1","owner":"TheDigitalNinja","description":"Let script setting up a Neo4j GraphDB from an existing SQL DB.","archived":false,"fork":false,"pushed_at":"2019-08-23T16:54:08.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-04T16:48:23.817Z","etag":null,"topics":["converter","graphql","mariadb","neo4j","sql"],"latest_commit_sha":null,"homepage":null,"language":"TSQL","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/TheDigitalNinja.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-12T22:27:09.000Z","updated_at":"2019-08-27T16:01:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"0be7ba92-a544-4b12-96c2-bb4a8ecd630f","html_url":"https://github.com/TheDigitalNinja/GraphDB-Workshop1","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheDigitalNinja/GraphDB-Workshop1","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDigitalNinja%2FGraphDB-Workshop1","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDigitalNinja%2FGraphDB-Workshop1/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDigitalNinja%2FGraphDB-Workshop1/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDigitalNinja%2FGraphDB-Workshop1/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheDigitalNinja","download_url":"https://codeload.github.com/TheDigitalNinja/GraphDB-Workshop1/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDigitalNinja%2FGraphDB-Workshop1/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32687321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["converter","graphql","mariadb","neo4j","sql"],"created_at":"2024-10-11T19:44:49.984Z","updated_at":"2026-05-06T09:36:44.905Z","avatar_url":"https://github.com/TheDigitalNinja.png","language":"TSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GraphDB\n\nNote: https://neo4j.com/developer/guide-importing-data-and-etl/ \n\n## Web Views\n- Adminer: Navigate to localhost:8080, set server as mariadb, user as root, and password as example\n- Neo4j: Navigate to localhost:7474\n\n\n\n## Guide\n\nIn this guide we are going to instantiate a pre-populated mysql database and then migrate that data to a Neo4j graph database.\n\nWhen docker-compose brings up the docker instances it will populate the mysql data based on sql_import/movies.sql and the Neo4j data will persist in data/databases. If you wish to clear out the Neo4j data simple shut down the containers with docker-compose down and then delete the data/databases directory. \n\n\n### Start\nAfter cloning the repo we will bring the containers all online.\n\n``` docker-compose up -d ```\n\n### SQL to Graph\n\nExport the SQL tables using the output_csv.sql file.\n\n``` docker-compose run mariadb sh -c \"mysql -uroot -pexample movies -h mariadb \u003c /data/output_csv.sql\" ```\n\nImport the CSV using CQL (cypher query language).\n\n``` docker-compose run neo4j sh -c \"neo4j-shell -c \u003c  /data/import_csv.cql\" ```\n\n\n### Debug\n``` docker-compose run neo4j bash ```\n\ncat /data/import_csv.cql | bin/cypher-shell -u neo4j -p neo4j --format plain\n\n\ncat /data/import_csv.cql | bin/cypher-shell --format plain","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedigitalninja%2Fgraphdb-workshop1","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedigitalninja%2Fgraphdb-workshop1","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedigitalninja%2Fgraphdb-workshop1/lists"}