An application for generating RDF representation of data in JSON format.
Clone the repository:
git clone https://github.com/MI-FraunhoferIWM/json2rdf.git
cd json2rdf
Optionally, edit the app port that in defined in the .env
file under the variable name JSON2RDF_PORT
.
Build and run the docker images:
docker compose up -d
Build and run docker by running the following command:
docker compose -f docker-compose.dev.yml up --build
Upon creation of new release in github , packages will be published by github actions.
Check out the published packages: https://github.com/orgs/MI-FraunhoferIWM/packages?repo_name=json2rdf
Go to http://<your-ip-address>:{JSON2RDF_PORT}/docs
.
curl -X 'POST' \
'http://localhost:6001/api/url/tordf' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"data_url": "https://raw.githubusercontent.com/MI-FraunhoferIWM/json2rdf/main/examples/1_data.json",
"mapping_url": "https://raw.githubusercontent.com/MI-FraunhoferIWM/json2rdf/main/examples/1_mapping.yaml"
}'
curl -X 'POST' \
'http://localhost:6001/api/url/yarrrmltorml' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"mapping_url": "https://raw.githubusercontent.com/MI-FraunhoferIWM/json2rdf/main/examples/1_mapping.yaml"
}'
This repository is adapted from https://github.com/Mat-O-Lab/RDFConverter .