Skip to content

Go package creates a list of Cypher statements to turn a GIT repository into a Neo4j graph

License

Notifications You must be signed in to change notification settings

ckanz/code2cypher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e12d649 · Jun 22, 2022

History

65 Commits
Jun 22, 2022
Jun 22, 2022
Jun 13, 2019
Mar 23, 2021
May 4, 2020
Mar 31, 2021
Jun 22, 2022
Jun 22, 2022
Mar 24, 2021
Mar 17, 2022
Jun 17, 2019

Repository files navigation

code2cypher

This Go package creates a list of Cypher statements to turn a Git repository into a Neo4j graph. The data is modeled the following way:

  • labels
    • directory
    • file
    • person
  • relationships
    • EDITED
    • IN_FOLDER

To turn a GIT repository into a graph, follow these steps:

  • build the executable by running go build in the root of this project
  • run the executable: ./code2cypher --path {path of Git repository}

The Cypher statements are written to StdOut. You can pipe the Cypher statements to Cypher Shell or into a .cypher file you can import to Neo4j Desktop

Below is a screenshot of what the graph from the hellogitworld repository looks like in Neo4j Desktop

Neo4j Desktop Screenshot

About

Go package creates a list of Cypher statements to turn a GIT repository into a Neo4j graph

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published