This repository is the backend
part of the Data Mapping Tool Project. You can check the front-end side at: https://github.com/jorgechp/data-mapping-tool-client
The project aims to make friendly the process of mapping data using a single ontology or multiple ones. In our case, the project uses the BIGG ontology as background.
- Python 3.8+ 🐍
- MongoDB
If you do not have a MongoDB, you can deploy it using docker-compose up -d
.
pip install -r requirements.txt
flask run --host=[localhost] --port=[port]
FLASK_APP=app
FLASK_ENV=[development | production]
SECRET_KEY=
SERVER_HOSTNAME=
SERVER_PORT=
JWT_SECRET_KEY=
JWT_ACCESS_TOKEN_EXPIRES=
JWT_REFRESH_TOKEN_EXPIRES=
MONGO_URI=
ADMIN_EMAL=
ADMIN_PASSWORD=
$ python -c 'import secrets; print(secrets.token_hex())'
'192b9bdd22ab9ed4d12e236c78afcb9a393ec15f71bbf5dc987d54727823bcbf'
The ontology that the backend use is located in ontology.owl
, in this file you can put yours ontology. By default, it
uses the RDF/XML Syntax
format to represent our ontology.
docker pull rmlio/yarrrml-parser
docker run --rm -it -v $(pwd)/:/data rmlio/yarrrml-parser:latest -i /data/input.yml -o /data/mapping.ttl
docker pull rmlio/rmlmapper-java
docker run --rm -v $(pwd)/:/data rmlio/rmlmapper-java -m mapping.ttl -o /data/out.rdf