0.0.6-alpha.0 • Published 10 months ago
@oslo-flanders/shacl-template-generator v0.0.6-alpha.0
OSLO SHACL Template Generator
Generates a SHACL template based on an OSLO JSON-LD file
Install
npm install @oslo-flanders/shacl-template-generator
Global install
npm install -g @oslo-flanders/shacl-template-generator
API
Parameter | Description | Required | Possible values |
---|---|---|---|
--input | The path of an OSLO JSON-LD file | :heavy_check_mark: | |
--output | Name of the output file | No, default shacl.jsonld | |
--language | The language in which to generate the SHACL template | :heavy_check_mark: | |
--shapeBaseURI | The base URI to be used for the HTTP URIs of the SHACL shapes | No, default http://example.org | |
--mode | The generation mode | No, default grouped | grouped or individual |
--constraint | Additional constraints to add to the SHACL shapes | No | uniqueLanguages or nodeKind . Multiple constraint are allowed |
--applicationProfileURL | The URL on which the application profile is published, to create cross-references | No | |
--useUniqueURIs | Create unique HTTP URIs for the individual SHACL shapes using the labels | No, default false | |
--addCodelistRules | Add rules for codelists, if present | No, default false | |
--addConstraintMessages | Add additional messages in the configured language to the SHACL shapes | No, default false | |
--addConstraintRuleNumbers | Add extra entry for rule numbers, allowing editors to add a rule numbers across multiple specs | No, default false |
Usage
oslo-shacl-template-generator --input report.jsonld --language en
oslo-shacl-template-generator --input report.jsonld --language en --shapeBaseURI https://data.vlaanderen.be
oslo-shacl-template-generator --input report.jsonld --language en --shapeBaseURI https://data.vlaanderen.be --mode individual
oslo-shacl-template-generator --input report.jsonld --language en --shapeBaseURI https://data.vlaanderen.be --constraint uniqueLanguages --constraint nodeKind
oslo-shacl-template-generator --input report.jsonld --language en --shapeBaseURI https://data.vlaanderen.be --applicationProfileURL https://data.vlaanderen.be/doc/applicatieprofiel/verkeersmetingen
oslo-shacl-template-generator --input report.jsonld --language en --shapeBaseURI https://data.vlaanderen.be --useUniqueURIs true
oslo-shacl-template-generator --input report.jsonld --language en --shapeBaseURI https://data.vlaanderen.be --addCodelistRules true
oslo-shacl-template-generator --input report.jsonld --language en --shapeBaseURI https://data.vlaanderen.be --addConstraintMessages true
oslo-shacl-template-generator --input report.jsonld --language en --shapeBaseURI https://data.vlaanderen.be --addConstraintRuleNumbers true
0.0.6-alpha.0
10 months ago
0.0.5-alpha.0
10 months ago
0.0.4-alpha.0
12 months ago
0.0.3-alpha.0
1 year ago
0.0.2-alpha.0
1 year ago