🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@oslo-flanders/shacl-template-generator

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@oslo-flanders/shacl-template-generator

Generates a SHACL template based on an OSLO JSON-LD file

latest
Source
npmnpm
Version
1.1.5
Version published
Weekly downloads
51
30.77%
Maintainers
3
Weekly downloads
 
Created
Source

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
--outputFormatFormat of the generated fileNo, default application/ld+jsonapplication/ld+json, text/turtle,application/n-triples
--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, nodeKind, codelist. 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
--addRuleNumbersAdd extra entry for rule numbers, allowing editors to add a rule numbers across multiple specsNo, default false
--addShapesContainerCreates a container shape that links to all generated shapes using rdfs:member properties. Useful for tools that need to discover all shapes in a document.no, default true

Usage

oslo-shacl-template-generator --input report.jsonld --language nl
oslo-shacl-template-generator --input report.jsonld --language nl --shapeBaseURI https://data.vlaanderen.be
oslo-shacl-template-generator --input report.jsonld --language nl --shapeBaseURI https://data.vlaanderen.be --mode individual
oslo-shacl-template-generator --input report.jsonld --language nl --shapeBaseURI https://data.vlaanderen.be --constraint uniqueLanguages --constraint nodeKind
oslo-shacl-template-generator --input report.jsonld --language nl --shapeBaseURI https://data.vlaanderen.be --applicationProfileURL https://data.vlaanderen.be/doc/applicatieprofiel/verkeersmetingen
oslo-shacl-template-generator --input report.jsonld --language nl --shapeBaseURI https://data.vlaanderen.be --useUniqueURIs true
oslo-shacl-template-generator --input report.jsonld --language nl --shapeBaseURI https://data.vlaanderen.be --addCodelistRules true
oslo-shacl-template-generator --input report.jsonld --language nl --shapeBaseURI https://data.vlaanderen.be --addConstraintMessages true
oslo-shacl-template-generator --input report.jsonld --language nl --shapeBaseURI https://data.vlaanderen.be --addRuleNumbers true

FAQs

Package last updated on 21 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts