Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 1.05 KB

README.md

File metadata and controls

22 lines (15 loc) · 1.05 KB

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