0.0.6-alpha.0 • Published 10 months ago

@oslo-flanders/shacl-template-generator v0.0.6-alpha.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

ParameterDescriptionRequiredPossible values
--inputThe path of an OSLO JSON-LD file:heavy_check_mark:
--outputName of the output fileNo, default shacl.jsonld
--languageThe language in which to generate the SHACL template:heavy_check_mark:
--shapeBaseURIThe base URI to be used for the HTTP URIs of the SHACL shapesNo, default http://example.org
--modeThe generation modeNo, default groupedgrouped or individual
--constraintAdditional constraints to add to the SHACL shapesNouniqueLanguages or nodeKind. Multiple constraint are allowed
--applicationProfileURLThe URL on which the application profile is published, to create cross-referencesNo
--useUniqueURIsCreate unique HTTP URIs for the individual SHACL shapes using the labelsNo, default false
--addCodelistRulesAdd rules for codelists, if presentNo, default false
--addConstraintMessagesAdd additional messages in the configured language to the SHACL shapesNo, default false
--addConstraintRuleNumbersAdd extra entry for rule numbers, allowing editors to add a rule numbers across multiple specsNo, 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