Skip to content

Commit

Permalink
Update download-neo4j.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
benstear authored Nov 19, 2023
1 parent c88071e commit 0113cd8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/download-neo4j.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 0113cd8

Please sign in to comment.