forked from TommasoPadovano/SKRIDPlatform
-
Notifications
You must be signed in to change notification settings - Fork 1
/
loadAllDB.sh
15 lines (15 loc) · 1.28 KB
/
loadAllDB.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
cypher-shell -u neo4j -p root -d neo4j --format verbose "match (n) detach delete n;"
cypher-shell -u neo4j -p root -d neo4j --format verbose "match (n) return count(distinct n.inputfile);"
echo "********************";
echo "Loading Francois-Marie-Luzel..."
cypher-shell -u neo4j -p root -d neo4j --format verbose -f /home/shaman/Public/DSL/SKRIDPlatform/assets/data/Francois-Marie-Luzel/cmdPopulate_Elaine.cql;
cypher-shell -u neo4j -p root -d neo4j --format verbose "match (n) where n.collection='Francois-Marie Luzel' return count(distinct n.inputfile);"
echo "********************";
echo "Loading Joseph-Mahe-Original..."
cypher-shell -u neo4j -p root -d neo4j --format verbose -f /home/shaman/Public/DSL/SKRIDPlatform/assets/data/Joseph-Mahe-Original/cmdPopulate_Elaine.cql;
cypher-shell -u neo4j -p root -d neo4j --format verbose "match (n) where n.collection='Joseph Mahe Original' return count(distinct n.inputfile);"
echo "********************";
echo "Loading /Joseph-Mahe-TransposedG..."
cypher-shell -u neo4j -p root -d neo4j --format verbose -f /home/shaman/Public/DSL/SKRIDPlatform/assets/data/Joseph-Mahe-TransposedG/cmdPopulate_Elaine.cql;
cypher-shell -u neo4j -p root -d neo4j --format verbose "match (n) where n.collection='Joseph Mahe TransposedG' return count(distinct n.inputfile);"