-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add script to convert .dot file to graph database #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit adds a new Python script `convert.py` that converts a `.dot` file into a graph database. The script uses the `pydot` library to parse the `.dot` file and creates a graph object. It then parses the labels of nodes using regular expressions and updates the traversal code accordingly. The script also loads environment variables using `dotenv`, establishes a connection with Neo4j using the provided URI, username, and password, and uploads the parsed nodes and relationships to the graph database. The commit also includes the addition of a sample `.dot` file in `src/stargripcorp.dataplatform.infra.azure/graph.dot`.
|
Kudos, SonarCloud Quality Gate passed!
|
|
🥷 Code experts: no user matched threshold 10 See detailsTo learn more about /:\ gitStream - Visit our Docs |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## current #17 +/- ##
==========================================
Coverage ? 91.42%
==========================================
Files ? 4
Lines ? 70
Branches ? 0
==========================================
Hits ? 64
Misses ? 6
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
🍹 The Update (preview) for merca/stargripcorp/current was successful. Resource Changes Name Type Operation
~ merca-core-dev-kv azure-native:keyvault:Vault update
~ merca-data-dev-kv azure-native:keyvault:Vault update
|
|
Hello merca 👋 Thanks for making your first PR, and welcome to our project! |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesFootnotes
|








This commit adds a new Python script
convert.pythat converts a.dotfile into a graph database. The script uses thepydotlibrary to parse the.dotfile and creates a graph object. It then parses the labels of nodes using regular expressions and updates the traversal code accordingly.The script also loads environment variables using
dotenv, establishes a connection with Neo4j using the provided URI, username, and password, and uploads the parsed nodes and relationships to the graph database.The commit also includes the addition of a sample
.dotfile insrc/stargripcorp.dataplatform.infra.azure/graph.dot.