Skip to content

This repository is the backend part of the Data Mapping Tool Project. 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.

License

Notifications You must be signed in to change notification settings

elskater98/data-mapping-tool-api

Repository files navigation

Data Mapping Tool

This repository is the backend part of the Data Mapping Tool Project.

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.

Getting Started

Prerequisite

  • Python 3.8+ 🐍
  • MongoDB

If you do not have a MongoDB, you can deploy it using docker-compose up -d.

Install Python Dependencies

pip install -r requirements.txt

Run Server

flask run --host=[localhost] --port=[port]

File Format: .env

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=

¿ How to Generate Secret Key ?

$ python -c 'import secrets; print(secrets.token_hex())'
'192b9bdd22ab9ed4d12e236c78afcb9a393ec15f71bbf5dc987d54727823bcbf'

Ontology

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.

Transformations

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

About

This repository is the backend part of the Data Mapping Tool Project. 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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages