Skip to main content

Mapeathor is a simple spreadsheet parser able to generate mapping rules in three mapping languages: R2RML, RML (with extension to functions from FnO) and YARRRML.

Project description

forthebadge made-with-python
Generic badge License version

workflow

Mapeathor

Mapeathor translates your mapping rules specified in spreadsheets to a mapping language.

Mapeathor is a simple spreadsheet parser able to generate mapping rules in three mapping languages: R2RML, RML (with extension to functions from FnO) and YARRRML. It takes the mapping rules expressed in a spreadsheet and transforms them into the desired language. The spreadsheet template is designed to facilitate the mapping rules' writting, with the aim of being language independent, and thus, lowering the barrier of generating mappings for non-expert users.

workflow

Example:

First Step: Fill the xlsx template with your own information.

The template has five mandatory sheets, Prefixes, Source, Subject PredicateObjectMap and Functions. The last one can be left blank in case there are no functions. The spreadsheet can be in XLSX format or a Google Spreadsheet.

Prefixes:

prefixes

Source:

source

Subject:

subject

PredicateObjectMaps:

pom

Functions:

function

Second Step: Choose the output language that you prefer.

Here you can see the Available Languages.

Third Step: Run Mapeathor:

With python:

# Install
$ python3 -m pip install mapeathor

# How to execute it. You can use a local XLSX file or a shared Google Spreadsheet URL
$ python3 -m mapeathor -i [PATH or URL] -l [RML | R2RML | YARRRML] [-o PATH]

# Help Menu
$ python3 main.py -h 

With docker:

# Clone the repository
$ git clone https://github.com/oeg-upm/Mapeathor

# Install the docker image with docker-compose
$ docker-compose up -d

# Copy the XLSX files to data repository
$ cp yourfiles ./data/

# Execute it. You can use a local XLSX file or a shared Google Spreadsheet URL
$ docker exec -it mapeathor ./run.sh [/Mapeathor/data/YOURFILE or URL ] [RML | R2RML | YARRRML] result/outputfile

# Results will appear in result folder

Publications

Iglesias-Molina, A., Chaves-Fraga, D., Priyatna, F., & Corcho, O. (2019). Towards the Definition of a Language-Independent Mapping Template for Knowledge Graph Creation. In Proceedings of the Third International Workshop on Capturing Scientific Knowledge co-located with the 10th International Conference on Knowledge Capture (K-CAP 2019) (pp. 33-36). Online version

Authors and contact

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mapeathor-1.0.0.1596154001.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

mapeathor-1.0.0.1596154001-py3-none-any.whl (26.5 kB view details)

Uploaded Python 3

File details

Details for the file mapeathor-1.0.0.1596154001.tar.gz.

File metadata

  • Download URL: mapeathor-1.0.0.1596154001.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.1

File hashes

Hashes for mapeathor-1.0.0.1596154001.tar.gz
Algorithm Hash digest
SHA256 02c83f7d6d23822c3d867c11131f8959dd89c3af7331e266d862a4d4e617a9c1
MD5 4d22650f0ba1df51c4e4740fad6a45f6
BLAKE2b-256 2246c6c4df8be9c50a721f06bad4fa5863550537cc11e1a05b0c44ef2905fc2e

See more details on using hashes here.

File details

Details for the file mapeathor-1.0.0.1596154001-py3-none-any.whl.

File metadata

  • Download URL: mapeathor-1.0.0.1596154001-py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.1

File hashes

Hashes for mapeathor-1.0.0.1596154001-py3-none-any.whl
Algorithm Hash digest
SHA256 909ff3dcd380dc9706f39916f0a6c87b9d02f8e417174bb26e6b5e8c17f0c5a2
MD5 83147d33c3cfcedc544649b37a8f52bb
BLAKE2b-256 ff9ca78f13bc5fd5a8d11fbcbc5b4b2937f5f9fb8b81c3906ed59555b265f6e5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page