WSE-research / XML2RDF-converter-Web-UI

Frontend for XML to RDF conversion using the web service from https://github.com/WSE-research/XML2RDF-converter

Home Page:https://wse-rearch.org/xml-to-rdf-converter-web-ui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web Frontend for XML2RDF converter using XML DTD files

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 UI was implemented using Python and Streamlit.



Installation and running

Python

Installation

The following command installs Streamlit and the required packages.

pip install -r requirements.txt

Run the Python app

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 locally

Build the Docker image

docker build -t xml2rdf-converter-web-ui:latest .

Run the Docker image

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.

Docker image from Dockerhub

Pull the prepared Docker image

docker pull wseresearch/xml2rdf-converter-web-ui:latest

Run the prepared Docker image

docker run -p 8501:8501 --name xml2rdf-converter-web-ui wseresearch/xml2rdf-converter-web-ui:latest

Configuration

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.

Contribute

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.

Disclaimer

This tool is not storing any data. All data is processed in memory and is not persisted. This tool is provided "as is" and without any warranty, express or implied.

About

Frontend for XML to RDF conversion using the web service from https://github.com/WSE-research/XML2RDF-converter

https://wse-rearch.org/xml-to-rdf-converter-web-ui/

License:MIT License


Languages

Language:Python 63.0%Language:CSS 26.6%Language:JavaScript 8.5%Language:Dockerfile 1.9%