Crates.io | rossete-rdf |
lib.rs | rossete-rdf |
version | 0.1.1 |
source | src |
created_at | 2022-01-30 22:13:56.336446 |
updated_at | 2022-02-01 11:21:37.147669 |
description | This application is intended to generate a rdf file from one or varios datasets in different formats and a RML mapping. |
homepage | |
repository | https://github.com/RubenCid35/rossete-rdf |
max_upload_size | |
id | 524211 |
size | 135,828 |
This application is intended to convert the data stored in a database/CSV/JSON/XML/etc to RDF using a RML mapping file or list of them.
To run this application, you need to run the following CLI command.
rossete-rdf.exe [FLAGS] [OPTIONS] --output <OUTPUT> --MAPPINGS <MAPPINGS>
For more information, you can use the help flag (-h|--help). If you use it, the following prompt will appear with the possible custom usage options and others.
Rossete RDF Generator 0.1.0
Rubén Cid Costa
This application is intended to generate a rdf file from one or varios datasets in different formats and a RML mapping.
USAGE:
rossete-rdf.exe [FLAGS] [OPTIONS] --mappings <MAPPINGS> --output <OUTPUT>
FLAGS:
-w, --clear Delete the database if it was created while reading the databases
-h, --help Displays this message
-V, --version Prints version information
OPTIONS:
--config <FILE> Sets a custom config file to create the main settings of the program
--mappings <MAPPINGS> Used mapping in the process of generated rdf. Values: Folder or a file
--output <OUTPUT> File name where the output file is written
In this repository, there is an example with the mappings that are used in the RML Documentation of the following link: LINK.
To run it, you can run the following command with the application:
rossete-rdf.exe --mappings ./examples/mappings --config config_example.json --output output.ttl
This command will create a Turtle File with the generated RDF.
To use this executable, you need to install rust and cargo in your computer, so you can compile this repository. To check if you have them, use this commands:
rustc --version // To check if you have Rust Programming Language Installed
cargo --version // To check if you have Cargo Package Manager Installed
To compile it, you can use the following command in your terminal and you have Rust and Cargo Installed.
cargo build --release // This will create an executable in the newly created target/release folder
You can take the binary as a standalone binary and move it whereever you want to.
This are the input data files formats and the output formats that are being addeded to the app and the ones that are already in.
Format | Working in Progress | Ready |
---|---|---|
MySQL Database | ☓ | ☓ |
SQLite Database | ☓ | ☓ |
XML Format | ☑ | ☓ |
JSON format | ☑ | ☑ |
CSV Format | ☑ | ☑ |
TSV Format | ☑ | ☑ |
Others | ☓ | ☓ |
Format | Working in Progress | Ready |
---|---|---|
Turttle | ☑ | ☑ |
TriplesMap | ☑ | ☑ |
Yarm | ☓ | ☓ |