The folder structure of the repository cotnaining the tool to convert JSON-LD files to ttl-syntax and/or ttl files is given below.
WATERVERSE-TO-TURTLE
|---examples
|---__init__.py
|---sample_NL_KNMI.json
|---sample_UK_rain.json
|---waterverse_jsonld_to_turtle_deployment
|---src
|---api.py
|---json_to_ttl_converter.py
|---Dockerfile
|---requirements.txt
|---LICENSE.md
|---README.md
|---post_sample_data.py
The components of the tool are packeged to through the use of Docker. Hence, the system that will be used for deploying the tool must have Docker installed. See more information about the installation of Docker over here.
This tool is a docker based service. The api.py contains the API that processes the incoming request (JSON-LD file) and returns the desired Turtle-syntax. A Docker container with this API can be build by first navigating to the directory where the api.py is located:
cd waterverse_jsonld_to_turtle_deploymentBuild the Docker container by calling
docker build -t turtle_converter .Run the Docker container by calling
docker run -p 80:80 turtle_converterThis work is licensed under the MIT License.
Details on the licensing related to this code can be found in the file LICENSE.md
email address: [email protected]
This project has been funded by the WATERVERSE project of the European Union’s Horizon Europe programme under Grant Agreement no 101070262.
WATERVERSE is a project that promotes the use of FAIR (Findable, Accessible, Interoperable, and Reusable) data principles to improve water sector data management and sharing.