Skip to main content

An Optimized, RML-engine-agnostic Interpreter for Functional Mappings. It planns the optimized execution of FnO functions integrated in RML mapping rules, interprets and transforms the rules into function-free ones efficiently. Since Dragoman is engine-agnostic it can be adopted by any RML-compliant Knowledge Graph creation framework.

Project description

Dragoman

An Optimized, RML-engine-agnostic Interpreter for Functional Mappings. It planns the optimized execution of FnO functions integrated in RML mapping rules, interprets and transforms the rules into function-free ones efficiently. Since Dragoman is engine-agnostic it can be adopted by any RML-compliant Knowledge Graph creation framework.

You can use Dragoman with your own library of functions! Here is how:

  1. Make a copy of functions.py that is located in ./Interpreter/ and rename it (we consider it as new_function_script.py)
  2. Edit new_function_script.py by adding your functions definitions following the sctructure provided in the script and save the chnages
  3. Go to the connection.py and replace ".functions" with ".new_function_script" at line 6 and save the changes

That's it! You are ready to go :)

Installing and Running the Dragoman

From PyPI (https://pypi.org/project/dragoman-tool/):

python3 -m pip install dragoman-tool
python3 -m Interpreter -c /path/to/config/file

From Docker (https://hub.docker.com/repository/docker/sdmtib/dragoman):

docker run -d -p 4000:4000 -v /path/to/yourdata:/data dragoman

Send a GET request with the configuration file to Dragoman container.
curl localhost:4000/mapping_transformation/data/your-config-file.ini


Get the results from the container (if output folder is inside data folder, results are already in your host)
docker cp CONTAINER_ID:/app/path/to/output .

Version

1.0

License

This work is licensed under Apache 2.0

Authors

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

dragoman_tool-1.1.dev1669825114-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file dragoman_tool-1.1.dev1669825114-py3-none-any.whl.

File metadata

  • Download URL: dragoman_tool-1.1.dev1669825114-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for dragoman_tool-1.1.dev1669825114-py3-none-any.whl
Algorithm Hash digest
SHA256 63ee70e3852a7a8871b06d3803d14f89065b6ebfb19313e8de19352bf6b81521
MD5 cc1843edd59b0f93956dd68fd1bdb823
BLAKE2b-256 88b48b3333c5f676a7081e1527ce27c0aab872a41b5bcdeee495833e3eaaa09e

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