According to Linked-Data best practices, RDF vocabularies and Shacl shapes are desiderata. This is a component tailored to the current GBFS specification and its json schema structure. It transforms GBFS Json schemas into corresponding RDF vocabularies and Shacl shapes.
The raison d'etre of this prototype was to have a fully general system, that given any Json schema, would transform it into a Turtle vocabulary. The "traverse" script goes in that direction, by recursively checking the content of the Json schema. However, it fails to do that in an universally general way, as underlying assumptions/knowledge about the schema are required.
- Fork on your machine.
- Install dependencies using
npm install
- Build the typescript using
npm run build
- Run by
node JsonSchemaToRDF.js
- mobility data bike sharing system json schemas: https://github.com/MobilityData/gbfs-json-schema
Andrei Popescu andrei.popescu@ugent.be
- Main challenge: How to be fully general with respect to the Json Schema Specification? https://json-schema.org/draft/ 2020-12/json-schema-core.html