diff --git a/.github/workflows/download-neo4j.yml b/.github/workflows/download-neo4j.yml index 75e51cd..80bfeb1 100644 --- a/.github/workflows/download-neo4j.yml +++ b/.github/workflows/download-neo4j.yml @@ -38,6 +38,11 @@ jobs: run: | mv import/*.csv /var/lib/neo4j/import/; ls /var/lib/neo4j/import/; + - name: Build Petagraph + run: | + rm -rf data/databases/* + rm -rf data/transactions/* + bin/neo4j-admin import --verbose --nodes=Semantic="import/TUIs.csv" --nodes=Concept="import/CUIs.csv" --nodes=Code="import/CODEs.csv" --nodes=Term="import/SUIs.csv" --nodes=Definition="import/DEFs.csv" --relationships=ISA_STY="import/TUIrel.csv" --relationships=STY="import/CUI-TUIs.csv" --relationships="import/CUI-CUIs.csv" --relationships=CODE="import/CUI-CODEs.csv" --relationships="import/CODE-SUIs.csv" --relationships=PREF_TERM="import/CUI-SUIs.csv" --relationships=DEF="import/DEFrel.csv" --skip-bad-relationships --skip-duplicate-nodes neo4j start