@oslo-flanders/json-webuniversum-generator
v0.0.19-alpha.0
Published
Generates a JSON file which is used to generate an HTML template using Webuniversum 3
Downloads
391
Readme
oslo-generator-json-webuniversum
OSLO JSON Webuniversum Generator
This package transforms an OSLO JSON-LD file into a JSON configuration file which will be used by the Nuxt.JS Service to render vocabularies and application profiles
Install
npm install @oslo-flanders/json-webuniversum-generator
Global install
npm install -g @oslo-flanders/json-webuniversum-generator
API
The service is executed from the CLI and expects the following parameters:
| Parameter | Description | Required | Possible values |
| ---------- | ----------------------------------------------------------- | --------------------------------- | --------------- |
| --input
| The URL or local file path of an OSLO stakeholders csv file |:heavy_check_mark: | |
| --output
| Name of the output file | No, default webuniversum-config.json
| |
| --language
| The language in which the config must be generated | :heavy_check_mark: | |
| --applyFiltering
| Wether or not to apply filters on the generated output. The filters limit the generated classes, datatypes, entities and properties that will be shown. If you just want all possible values, you can set the value to false
. | No, default true
| true
or false
|
| --publicationEnvironment
| The base URI of environment where the document will be published | :heavy_check_mark: | |
| --specificationType
| The type of specification | No, defaults to Vocabulary
| ApplicationProfile
or Vocabulary
|
Usage
oslo-webuniversum-json-generator --input report.jsonld --language nl --publicationEnvironment https://data.vlaanderen.be
oslo-webuniversum-json-generator --input report.jsonld --language nl --applyFiltering false --publicationEnvironment https://data.vlaanderen.be
oslo-webuniversum-json-generator --input report.jsonld --language nl --applyFiltering false --publicationEnvironment https://data.vlaanderen.be --specificationType ApplicationProfile