Skip to content

ThiagoCComelli/JS2SHACL-JSON-Schema-to-SHACL-conversor

Repository files navigation

JS2SHACL - JSON Schema to SHACL conversor

JS2Shacl is a document conversor, makes conversions from JSON Schema to SHACL Schema (Turtle format).

Installation

JS2Schacl requires Node.js to run. Install the dependencies fs and perf_hooks. For the web app intall express.

Executation

# Convert the especified file in /inputSchemas
# example: $ node app.js CaseStudy-GlobalSchema.json
$ node app.js <filename in /inputSchemas>

or

# Convert all files in /inputSchemas
$ node app.js -a

or if you want the tool running on a website on your computer (localhost:8080)

# Start the server in localhost:8080
$ node app.js

Output

All analyzed files will be saved in the /outputSchemas folder, and a conversion log in the /outputLog folder.