version 1.1.1 (9.1.2019)
Build instructions:
mvn clean installjava -jar target/validation-service-1.1-SNAPSHOT-jar-with-dependencies.jar
Swagger documentation: https://api-docs.ownyourdata.eu/semcon-validation/
Semantic Containers enable secure and traceable data exchange between multiple parties.
more infos and documentation: https://ownyourdata.eu/en/semcon
The service is available at:
https://semantic.ownyourdata.eu/api/validate/inithttp://localhost:2806/api/validate/init
Example usage: curl -s -o /dev/null -w "%{http_code}" -H "Content-Type: application/json" -d "$(< src/test/resources/init/example-init.trig.json)" -X POST https://semantic.ownyourdata.eu/api/validate/init
The input file is of type application/json to wrap a TRIG file using JSON key "base-config".
The TRIG file should:
- follow the template provided in the
test/resources/init/example-init.trig, and the subsequenttest/resources/init/example-init.trig.jsonfile that wrap up the TRIG file as JSON. - and will be tested against the base constraints
main/resources/init/image-constraints.ttl.
The output is 200 if the init file conform to the template, or 500 otherwise.
The service is available at
https://semantic.ownyourdata.eu/api/validate/usage-policyhttp://localhost:2806/api/validate/usage-policy
Example usage: curl -s -o /dev/null -w "%{http_code}" -H "Content-Type: application/json" -d "$(< src/test/resources/usage-policy/template.ttl.json)" -X POST https://semantic.ownyourdata.eu/api/validate/usage-policy
The input file is of type application/json to wrap a turtle file using JSON key "usage-policy".
The turtle file should have two classes below:
sc:DataSubjectPolicythat represent usage policy of user, andsc:DataControllerPolicythat represent usage policy of data controller. There are four example turtle files in thetest/resources/usage-policydirectory for your references, and the subsequent*.ttl.jsonfiles that wrap up the turtle files as JSON.
The output is 200 if the policy of controllers is not violating the policy of users, or 500 otherwise.
The service is available at
https://semantic.ownyourdata.eu/api/validate/datahttp://localhost:2806/api/validate/data
Example usage: curl -s -o /dev/null -w "%{http_code}" -H "Content-Type: application/json" -d "$(< src/test/resources/data/zamg-data.json)" -X POST https://semantic.ownyourdata.eu/api/validate/data
The input file is of type application/json to wrap data and constraints (both in turtle format) using JSON keys "content-data" and "content-constraints".
There are multiple example files in the test/resources/data directory for your references,
and the subsequent *.ttl.json files that wrap up the turtle files as JSON.
The output is 200 if the data complies to the given constraints, or 500 otherwise.
Contact [email protected] for further questions.