Create a tool that transforms relational data to RDF based on arbitrary R2RML mappings
make setup
Installs all dependecies and creates python3.5 virtual environmentsource r2ml/bin/activate
activates virtual environmentmake setup_env
Run following commands after installation. Always remember to activate the virtual environment by typing source r2ml/bin/activate
.
make start_docker
source r2ml/bin/activate
make setup_env
to reproduce the state of your virtual python environmentmake fill_db
make freeze_env
to update the requirements.txt. Then upload the changed file, such that others can reproduce your state of the python environmentdeactivate
to deactivate virtual python environentmodel
will be added to SQL-DBPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
For awesome Mac users (1) and (2) has probably be executed
eval "$(docker-machine env default)"
export COMPOSE_TLS_VERSION=TLSv1_2
docker-compose -f docker-my-sql.yml up
mysql -h 127.0.0.1 -P 3306 -u root -D mysql-development
In case this ip does not work have a look to the IP of the docker container:
docker-machine ip
mysql -h 127.0.0.1 -P 3306 -u root -D mysql-development < python/sql/fillDatabases.sql
cd R2ML_Project/python/sample
python3 TransformationRules.py