First, clone or download this repository
git clone https://github.com/OP-TED/ted-rdf-mapping-eforms.gitEnsure that Java is installed on your machine.
Download the RML Mapper .jar file from the following link:
This is the engine used to execute the mappings in this repository
The transformation is performed using the rmlmapper.jar file, applying the transformation rules located in the directory:
mappings/package_cn_v1.9/transformation/mappings
This directory contains several Turtle files, with rules grouped roughly by entity. The rules look for a specific input file that contains the notice, called source.xml.
To do a mapping:
- Copy the notice XML file to the
datadirectory with the namesource.xml:
cp path/to/your/notice.xml mappings/package_cn_v1.9/data/source.xmlNavigate to the directory containing the transformation mappings:
Run the RML mapper with the following command:
java -jar rmlmapper-6.2.2-r371-all.jar -m transformation/mappings/** -s turtle -o output.ttl-m transformation/mappings/**specifies that the mappings are used together.- The results will be written to
output.ttl. - from the /workspaces/ted-rdf-mapping-eforms/mappings/package_cn_v1.9 directory
For transforming multiple notices, you can use a script.
@TODO
Feel free to explore the script for a more automated approach to processing multiple notices.