!ignore docs and add README
This commit is contained in:
parent
52145ecabf
commit
1b566efbab
2 changed files with 10 additions and 4 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -1,8 +1,8 @@
|
||||||
kram
|
kram
|
||||||
docs
|
docs/*
|
||||||
schemas
|
schemas/*
|
||||||
test-docs
|
test-docs/*
|
||||||
test-schemas
|
test-schemas/*
|
||||||
database.db
|
database.db
|
||||||
test.db
|
test.db
|
||||||
venv
|
venv
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,12 @@ pip install -r requirements.txt
|
||||||
```
|
```
|
||||||
place the XML files in the `docs` folder or for evaluation purposes few files in the `test-docs` folder.
|
place the XML files in the `docs` folder or for evaluation purposes few files in the `test-docs` folder.
|
||||||
|
|
||||||
|
## Purpose
|
||||||
|
The program iterates through the docs dir and in a first run, it builds database schemas from the
|
||||||
|
structure of the XML files, which will be used to create a data model for an SQLlite databse.
|
||||||
|
In a second iteration, every node with children or node with a "txt" element will be an entity (beginning with c__)
|
||||||
|
all other elements will be attributes (beginning with f__). Entities will be connected with an uuid
|
||||||
|
foreign key to their parent entity in relational tables (beginning with r__).
|
||||||
## Usage
|
## Usage
|
||||||
To have a test run, place XML-files in a dir named `test-docs`, then type
|
To have a test run, place XML-files in a dir named `test-docs`, then type
|
||||||
```bash
|
```bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue