Skip to content
David Chaves edited this page Jul 26, 2020 · 12 revisions

Q: What data formats can the SDM-RDFizer convert?

A: The SDM-RDFizer can convert the following data formats:

  • CSV
  • JSON
  • XML
  • MySQL
  • Postgres

Q: How are the transformation rules defined?

A: The SDM-RDFizer follows the transformation rules defined by RML. (https://rml.io/specs/rml/)

Q: How is the SDM-RDFizer configured?

A: The SDM-RDFizer requires a configuration file. The description of each parameter of the configuration file: https://github.com/SDM-TIB/SDM-RDFizer/wiki/The-Parameters-of-the-Configuration-file

Example of a configuration file: https://github.com/SDM-TIB/SDM-RDFizer/wiki/Install&Run

Q:How can I run the SDM-RDFizer?

A: We have two ways of running the SDM-RDFizer:

  • From the terminal: python3 rdfizer/run_rdfizer.py /path/to/configfile
  • Docker container:
  1. Building the docker container. Note: All documents in the same folder of the Dockerfile will be copied to the container. docker build -t rdfizer .
  2. To run the application, you need to map your data volume to “/data” folder of the container where data, mappings, and config files should be located: docker run -d -p 4000:4000 -v /path/to/yourdata:/data rdfizer
  3. Send a POST request with the configuration file to RDFizer the file curl localhost:4000/graph_creation/data/your-config-file.ini
  4. Get the results from the container (if output folder is inside the data folder, results are already in your host) docker cp CONTAINER_ID:/app/path/to/output .
  5. Instead of installing from scratch, you can use the docker image we have created.

Q: Where can I take a look at the experimental evaluations ran over SDM-RDFizer?

A: The experimental evaluation can be seen here: https://github.com/SDM-TIB/SDM-RDFizer-Experiments/

Q: What happened if the output folder wasn't generated from the docker container?

A: Since the output wasn't generated automatically this could mean that one of the following could have happened:

  • The files weren't properly uploaded to the docker container. To check this please run docker logs CONTAINER_ID. If the log says that your files don't exist, that means the files weren't properly uploaded. As a simpler way to upload the files, you can copy the files to the example folder in the root directory of the SDM-RDFier and upload the data from there. Please note that configuration and mapping files must reflect the fact that they're in the container. Also, when uploading the data, please use the complete path to the data.
  • The other case is that you might have to download the output folder from the container by executing this command: docker cp CONTAINER_ID:/app/path/to/output.
Clone this wiki locally