Given an OSLO-compliant RDF file, this tool generates an RDF vocabulary
npm install @oslo-flanders/rdf-vocabulary-generator
To use the service from the command line anywhere, you can install it globally.
npm install -g @oslo-flanders/rdf-vocabulary-generator
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-compliant RDF file | ✔️ | |
--output |
The name of the output file | ✔️ | |
--language |
The language in which the rdf vocabulary must be generated (labels) | ✔️ | |
--contentType |
Prefix every attribute with its domain | No |
text/turtle , application/n-quads , application/n-triples , application/ld+json
|
--silent |
Suppress log messages | No |
true or false (default) |
oslo-generator-rdf --input report.jsonld --output report.ttl --language nl --contentType text/turtle
oslo-generator-rdf --input report.jsonld --output report.ttl --language nl --contentType application/n-quads