first commit
This commit is contained in:
commit
52145ecabf
10 changed files with 538 additions and 0 deletions
35
README.md
Normal file
35
README.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Good Bye HIDA
|
||||
Small script to transform XML Documents of the HIDA/MIDAS architecture to a sqlite database.
|
||||
|
||||
## Prerequisites
|
||||
create a virtual environment:
|
||||
```bash
|
||||
python3 -m venv venv
|
||||
```
|
||||
activate the virtual environment:
|
||||
```bash
|
||||
source venv/bin/activate
|
||||
```
|
||||
install requirements:
|
||||
```bash
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
place the XML files in the `docs` folder or for evaluation purposes few files in the `test-docs` folder.
|
||||
|
||||
## Usage
|
||||
To have a test run, place XML-files in a dir named `test-docs`, then type
|
||||
```bash
|
||||
python3 goodByeHida.py --buildSchemas True
|
||||
```
|
||||
You will get a dir `test-schemas` and a sqlite database `test.db` with the imported data.
|
||||
|
||||
If everything looks good you can run the script with the `docs` folder:
|
||||
```bash
|
||||
python3 goodByeHida.py --production True --buildSchemas True
|
||||
```
|
||||
You will get a dir `schemas` and a sqlite database `databse.db` with the imported data.
|
||||
|
||||
If you like to restart the process and delete the database, type:
|
||||
```bash
|
||||
python3 goodByeHida.py --production True --buildSchemas True --deleteDatabase True
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue