Conversation
This is so users can replicate the example correctly. Ignore the sqlquerygraph.py file from code coverage. This is because it is a collection of other code that has been tested.
This is so we can load data into the neo4j graph database.
This is so we can get some data into the database in the case where there is a rogue line that aborts the import. This is useful when the .csv files have about hundreds or thousands of rows. This will also reduce the memory overhead of the transaction state.
Codecov Report
@@ Coverage Diff @@
## main #12 +/- ##
===========================================
+ Coverage 49.03% 76.38% +27.35%
===========================================
Files 3 3
Lines 155 144 -11
Branches 29 32 +3
===========================================
+ Hits 76 110 +34
+ Misses 69 24 -45
Partials 10 10
Continue to review full report at Codecov.
|
This is so we can move that into the neo4j container. Also update Cypher queries so they use :auto to avoid issues with manual importing. May not need this :auto call when using Cypher shell though.
This is so we can reference where the queries in this repo are based off. Also innclude image of graph database that visualises the table dependencies.
This is so we can create nodes and constraints for each dataset.
This is so we can ensure they work.
This is so we can then read these scripts and create in Cypher shell.
This is so we do not create unecessary import of files that do not exist in the Cypher code. Also simplify the aliasing to deal with cases where have two datasets that start with the same letter.
This is so the Cypher scripts are also passed into the Docker container.
This is to adhere to neo4j node naming standards.
This is so others can reproduce the graph.
This is so the tests pass. The idea is tha the user generates the example .csv file through following the README.md.
This is so we can automate import of data.
This is to run queries in the database.
This is so we can have a separate container handling the importing of data into the database.
This is so we can apply the Python loader module on the Cypher scripts.
This is because we only need py2neo package for docker container.
This is with the understanding that docker-compose is an orchestrator platform in the vein of kubernetes and that the stuff trying to be done with respect to calling the module will be better done in a Dockerfile. Currently Python module cannot connect to neo4j docker container because of hosting. Need to specify the Docker container's IP address in the module.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This branch establishes the functions that write the Cypher queries to take the created data and manually imports into the neo4j graph database.
Changes
The high-level changes made in this PR are:
README.md.Please see the commit history for more detailed changes.
Check
README.md.Note
This "fixes #4" and "fixes #6".
This branch does not quite achieve the objective of being able to run commands from the terminal into the neo4j Docker container but you can achieve this through Python itself. This is to do with the call to
bolt://localhost:7687being incorrect. We should swaplocalhostwith the IP address of the Docker container.