A metadata generation script specifically to be used by the OSLO-toolchain
npm install @oslo-flanders/metadata-generator
To use the service from the command line anywhere, you can install it globally.
npm install -g @oslo-flanders/metadata-generator
The service is executed from the CLI and expects the following parameters:
Parameter | Description | Required | Possible values |
---|---|---|---|
--hostname , -h
|
The public hostname/domain on which the HTML is published. The hostname in the input file takes precedence. | ✔️ | |
--documentpath , -r
|
The document path on which the HTML is published | ✔️ | |
--mainlanguage , -m
|
The language to display (a language code string) | ✔️ | |
--primarylanguage , -g
|
The primary language of the publication environment (a language code string) | ✔️ | |
--uridomain , -u
|
The domain of the URIs that should be excluded from this vocabulary | ✔️ | |
--input , -i
|
Input file | ✔️ | |
--output , -o
|
Output file (the metadata file) | ✔️ | |
--prefix , -p
|
Prefix for the logging | No |
metadata-generator --input input.json --output output.json --mainlanguage nl --prefix "[INFO] "
metadata-generator -h example.com -r /docs -i input.json -o output.json -m nl -g nl -u example.com -p "[INFO] "