Skip to content

Conversion and validation of YARRRML and Chowlk files to RDF. Applied to Material Sciences Methods

License

Notifications You must be signed in to change notification settings

Mat-O-Lab/RDFConverter

Repository files navigation

RDFConverter Publish Docker image TestExamples

Available online here: http://rdfconverter.matolab.org/

A service for joining and converting meta data documents based on YARRRML mapping files to RDF, optionally a validiation can be conducted using SHACL Shapes..

RDFConverter_Concept drawio

Requirements

  • Docker should be running! - IT'S MANDATORY!
    • Our RML parser also depends on another docker instance.

Input: A json file containing two URLs:

An example of this json file is available here

Output: A string answering if the triples are successfully included on the triple store or not.

The RDF content is validated according to the constraints defined on the SHACL Shapes (If provided). The validation will not occur on the RDF content from CHOWLk, because it does not contain instances to be validated.

Example of how to use the API/service on the web:

create a .env file with

PARSER_PORT=3001
MAPPER_PORT=4000
YARRRML_URL=http://yarrrml-parser:${PARSER_PORT}
MAPPER_URL=http://rmlmapper:${MAPPER_PORT}
CONVERTER_PORT=6000
APP_PORT=5003
SSL_VERIFY=<True or False> #default is True

Run flask app

docker-compose up

Go to http://localhost:5003/api/docs for a Simple UI

Try the api at http://localhost:5003/api/docs

Acknowledgments

The authors would like to thank the Federal Government and the Heads of Government of the Länder for their funding and support within the framework of the Platform Material Digital consortium. Funded by the German Federal Ministry of Education and Research (BMBF) through the MaterialDigital Call in Project KupferDigital - project id 13XP5119.