If you want to translate XML data to RDF data, you come to the right place. This Web UI provides a fast and automated way of interactively converting XML data to RDF data. It is a frontend providing XML to RDF conversion using the XML2RDF-converter web service. Alternative approaches require manual mappings between the XML and RDF data, which is time-consuming and error-prone. In contrast, this tool uses the corresponding Document Type Definition (DTD) to automatically generate the RDF data (i.e., the structure of the RDF properties is derived from the DTD file). However, please note that due to the nature of the implemented approach, our automated process has no capabilities for changing the structure of the generated RDF data. Instead, the generated RDF data is a direct representation of the XML data. Concluding, this Web UI can be used for straight-forward conversion of XML to RDF if DTDs are available.
The online demo is available at https://demos.swe.htwk-leipzig.de/xml-to-rdf-converter-web-ui/.
The following command installs Streamlit and the required packages.
pip install -r requirements.txt
streamlit run --server.port=8501 xml-to-rdf-converter-web-ui.py
Thereafter, the Streamlit application will be available at http://localhost:8501 in your browser if you are running Python on your local machine.
docker run -p 8501:8501 --name xml2rdf-converter-web-ui xml2rdf-converter-web-ui:latest
Thereafter, the application will be available at http://localhost:8501 in your browser if you are running Docker locally.
The releases of this tool are available as Docker images on Dockerhub.
The project already contains reasonable configurations.
They are integrated into the application using the Python Decouple package.
If you want to change the configuration parameters, then you might change the values in the .env
file that is stored in this project.
We are happy to receive your contributions. Please create a pull request or an issue. As this tool is published under the MIT license, feel free to fork it and use it in your own projects.