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 20, 2023
1 parent 9ac8bdf commit 3c8c0f8
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/download-neo4j.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,27 @@ 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/Datasets.zip Datasets.zip; unzip Datasets.zip; ls PetagraphData; rm Datasets.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
run: |
sudo chmod 777 -R /var/lib/neo4j/;
sudo chmod 777 -R /etc/neo4j;
sudo chmod 777 -R /var/log/neo4j/;
sudo chmod 777 -R /var/run/neo4j
- name: mv
run: |
mv reduced_csvs_github_actions/C*.csv /var/lib/neo4j/import/;
ls /var/lib/neo4j/import/;
- name: Build Petagraph #
run: |
sudo chmod 777 -R /var/lib/neo4j/; sudo chmod 777 -R /etc/neo4j;
sudo chmod 777 -R /var/log/neo4j/; sudo chmod 777 -R /var/run/neo4j
mv reduced_csvs_github_actions/C*.csv /var/lib/neo4j/import/;
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
export HEAP_SIZE=1G; echo heapsize set to: $HEAP_SIZE
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
- name: neo4j commands # cat /etc/neo4j/neo4j.conf, neo4j-admin dbms set-initial-password neo4j2020
echo 'starting database...'
neo4j start
- name: neo4j commands # cat /etc/neo4j/neo4j.conf
run: |
neo4j start
python3 tests/connect_neo4j.py
python3 tests/connect_neo4j.py
Expand Down

0 comments on commit 3c8c0f8

Please sign in to comment.