Skip to content

Commit

Permalink
Add tools to manage datamodel based on NGSI-LD, JSON-Schema and SHACL
Browse files Browse the repository at this point in the history
This PR builds the foundation of the NGSI-LD Datamodel. It contains 3 tools:
- validate.js: This tool allow to validate a concise NGSI-LD model with a Schema
- jsonldConverter.js: This tool converts between normalized, concise and expanded NGSI-LD models
- jsonschema2shacl.js: This tool converts a jsonschema to a SHACL description

In addition the PR provides a Makefile with the targets
- setup: Install npm and pip packages
- lint: Lint all node.js scripts and shells
- test: Unit Tests and Script tests

Related Epic: #427
Related User story: #433, #434, #435, #436

Signed-off-by: marcel <[email protected]>
  • Loading branch information
wagmarcel committed Nov 15, 2023
1 parent 064f0ab commit 102c240
Show file tree
Hide file tree
Showing 71 changed files with 3,276 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ jobs:
- name: Build shacl2flink
run: |
sudo apt install sqlite3 sqlite3-pcre
cd semantic-model/shacl2flink && make setup && make lint test build test-kms
cd semantic-model/shacl2flink && make setup && make lint test build test-kms
- name: Build datamodel tools
run: |
cd semantic-model/datamodel/tools && make setup && make lint test
Loading

0 comments on commit 102c240

Please sign in to comment.