Skip to main content

AutoRML

License Python Versions

AutoRML is a system that automatically generates declarative mappings (YARRRML and RML) and constructs RDF knowledge graphs for tabular data. It does so by utilizing third-party semantic table annotation systems, mapping produced semantic annotations to declarative mapping rules.

AutoRML can be used with different semantic table annotation systems. It has been tested with MTab and TorchicTab. UPDATE: MTab has dropped support. Only TorchicTab is currently available.

System Overview

Installation

Python versions 3.9, 3.10, and 3.11 are tested and recommended. In case of conflicts, create a new virtual environment. For example, if you use conda, run:

conda create -n autorml_env python=3.11
conda activate autorml_env

AutoRML installation:

pip install autorml

Usage

Usage: 
python -m autorml <options>

Options:
-h,--help                           Show options information
-i, --input_table                   Input table in CSV format
-sta, --sta_system                  Used semantic table annotation system (default: torchictab)
-m, --materialize                   Enable RDF materialization 
-sa, --save_annotations             Save semantic table annotation system results
-af, --annotations_folder           Output annotations folder (default: annotations)
-oa, --annotations_output           Output annotations file (default: annotations.json)
-mf, --mappings_folder              Output mappings folder (default: mappings)
-oy, --yarrml_output                Output YARRRML mappings file (default: mappings.yml)
-or, --rml_output                   Output RML mappings (default: mappings.rml.ttl)
-rf, --rdf_folder                   Output RDF folder (default: rdf)
-okg, --rdf_output                  Output RDF file (default: kg.nt)
-ds, --delete_sem                   Delete supporting semantically enhanced table after termination
-la, --load_annotations             Load semantic table annotation system results from annotations folder
-ia, --annotations_input            Input annotations file

Example usage

You can find some tables to test AutoRML in the examples folder. To run AutoRML for one of the examples, go to the repository root and run:

python -m autorml -i "examples/tables/cities.csv" -m -sa -af "examples/annotations" -mf "examples/mappings" -rf "examples/rdf" -ds

After AutoRML terminates, explore the examples folder to see the results of AutoRML's automated declarative knowledge graph construction. The examples/annotations folder will include the semantic annotations generated by the used semantic table annotation system. The examples/mappings folder will include the human-readable YARRRML and the RML declarative mappings produced by AutoRML. The examples/rdf folder will include the RDF knowledge graph automatically generated from the input data source, utilizing AutoRML's RML mappings. You can explore and query the generated graph, as well as search for its relationships and entities in Wikidata, TorchicTab's target knowledge base to semantically annotate the tables.

The open-source version of AutoRML currently only supports TorchicTab as a semantic table annotation system, since MTab is no longer available. AutoRML is designed to support different semantic annotation systems, so you can also try hosting your own or contact AutoRML authors to test your tables.

Evaluations

To see AutoRML results for different dataset collections and semantic table annotation systems, unzip and explore evaluations/evaluations_data.zip or visit our dedicated AutoRML Evaluations Zenodo repository: (TODO add Zenodo link when we submit the paper. Currently the Zenodo repository exists but is private). The evaluation files contain semantic annotations, mappings and RDF knowledge graphs automatically generated by AutoRML, using two different semantic table annotations systems: MTab and TorchicTab, and five differnet collections of CSV tables.

Annotation accuracy: Annotation accuracy

Annotation automation: Annotation automation

Contact

Ioannis Dasoulas: ioannis.dasoulas@kuleuven.be

Anastasia Dimou: anastasia.dimou@kuleuven.be

Metadata

Release files for autorml 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autorml 0.1.6
File Size Uploaded Provenance Actions
autorml-0.1.6.tar.gz 17.0 kB Without provenance Details for autorml-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for autorml 0.1.6
File Interpreter ABI Platform Actions
autorml-0.1.6-py3-none-any.whl Python 3 none any Details for autorml-0.1.6-py3-none-any.whl

Total release size: 35.1 kB

Release files / autorml-0.1.6.tar.gz

Download URL autorml-0.1.6.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
bf6c15dc78448ba08b64dde6f8f80c386958c28781eeff8dc544aef31a224b73
BLAKE2b-256 checksum
How to use checksums
68776977ccac1ae3aaca3ad9d04e5139818e48f74ec16cd506f4a5d46ed67054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.19

Release files / autorml-0.1.6-py3-none-any.whl

Download URL autorml-0.1.6-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
675f62a758525eabfdaa3a0d20861050cfdf61024340384fd50e3597f3589dc5
BLAKE2b-256 checksum
How to use checksums
a92fe1a42f6c4ff8244800e92e64fc1c9ce62a2ef20fdafc7784f473373769e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.19

Security for autorml 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page