This repository contains the files employed to transform the source files of the VedaWeb project into the TEI format and validate them.
Requirements: conda
After installing conda, follow these steps to transform and validate the data
- Create the virtual environment and install the needed dependencies:
conda env create -f environment.yml
- Activate the virtual environment:
conda activate vedaweb_transformations
- Clone the vedaweb-data repository
git clone https://github.com/VedaWebProject/vedaweb-data.git
- Transform the source data to TEI
python transform.py <path_to_vedaweb-data> <path_to_vedaweb-data/rigveda/TEI>
(The second argument is the path to the output directory) - Validate the generated TEI files
python validate.py <path_to_vedaweb-data/rigveda/TEI>
- Deactivate the virtual environment when you are done
conda deactivate
If you want to apply changes (installed/uninstalled depenencies) in the environment to the environment.yml
, run...
conda env export --from-history --channel conda-forge > environment.yml
Important: After doing this, delete the line starting with prefix: ...
from the environment.yml
!
There will be a code and TEI update in 2025.