diff --git a/.github/workflows/download-neo4j.yml b/.github/workflows/download-neo4j.yml index 7ed3d93..e332888 100644 --- a/.github/workflows/download-neo4j.yml +++ b/.github/workflows/download-neo4j.yml @@ -28,8 +28,8 @@ jobs: - name: Download OSF files #osf -p 6jtc9 fetch Datasets/Datasets.zip Datasets.zip; unzip Datasets.zip; run: | echo 'Downloading OSF data...'; - osf -p 6jtc9 fetch Datasets/petagraph_v5.zip petagraph_v5.zip; - unzip petagraph_v5.zip; rm petagraph_v5.zip; + osf -p 6jtc9 fetch reduced_csvs_github_actions.zip reduced_csvs_github_actions.zip; + unzip reduced_csvs_github_actions.zip; rm reduced_csvs_github_actions.zip; echo 'Finished Downloading and unzipping....'; ls data; - name: Give permissions @@ -40,19 +40,19 @@ jobs: sudo chmod 777 -R /var/run/neo4j - name: mv run: | - rm import/CUI-TUIs.csv; rm import/CUI-SUIs.csv; rm import/CODE-SUIs.csv - mv import/C*.csv /var/lib/neo4j/import/; + rm reduced_csvs_github_actions/CUI-TUIs.csv; rm reduced_csvs_github_actions/CUI-SUIs.csv; rm reduced_csvs_github_actions/CODE-SUIs.csv + mv reduced_csvs_github_actions/C*.csv /var/lib/neo4j/import/; ls /var/lib/neo4j/import/; - name: df check 4 run: df -h - - name: Build Petagraph # --relationships="import/CUI-CUIs.csv" + - name: Build Petagraph # run: | rm -rf /var/lib/neo4j/data/databases/* rm -rf /var/lib/neo4j/data/transactions/* cd /var/lib/neo4j/ export HEAP_SIZE=1G echo heapsize = $HEAP_SIZE - neo4j-admin import --verbose --nodes=Concept="import/CUIs.csv" --nodes=Code="import/CODEs.csv" --relationships=CODE="import/CUI-CODEs.csv" --skip-bad-relationships --skip-duplicate-nodes + neo4j-admin import --verbose --nodes=Concept="import/CUIs.csv" --relationships="import/CUI-CUIs.csv" --nodes=Code="import/CODEs.csv" --relationships=CODE="import/CUI-CODEs.csv" --skip-bad-relationships --skip-duplicate-nodes neo4j start