-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcreate_all.sh
More file actions
16 lines (13 loc) · 987 Bytes
/
create_all.sh
File metadata and controls
16 lines (13 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DATA_DIR=$1
DB=$2
python3 $DIR/src/create_sqlite.py --input $DATA_DIR/light.json --name $DB --tablename light
python3 $DIR/src/create_sqlite.py --input $DATA_DIR/dark.json --name $DB --tablename dark
python3 $DIR/src/create_sqlite.py --input $DATA_DIR/concept.json --name $DB --tablename concepts
python3 $DIR/src/create_sqlite.py --input $DATA_DIR/events.json --name $DB --tablename events
python3 $DIR/src/create_sqlite.py --input $DATA_DIR/authors.json --name $DB --tablename authors
python3 $DIR/src/create_sqlite.py --input $DATA_DIR/cited.json --name $DB --tablename cited
python3 $DIR/src/create_sqlite.py --input $DATA_DIR/topics.json --name $DB --tablename topics
python3 $DIR/src/create_sqlite.py --input $DATA_DIR/perspectives.json --name $DB --tablename perspectives
#python3 $DIR/src/create_queries_table.py --name $DB