@oslo-flanders/sparql-generator
v1.0.2
Published
Generate SPARQL queries.
Downloads
147
Readme
OSLO SPARQL Generator
Given an OSLO-compliant RDF file, this tool generates for each class a SPARQL query for it.
Install
npm install @oslo-flanders/sparql-generatorGlobal install
To use the service from the command line anywhere, you can install it globally.
npm install -g @oslo-flanders/sparql-generatorAPI
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 | :heavy_check_mark: | |
| --output | The name of the output directory to store query files in | No | |
| --language | The language in which the SPARQL must be generated (labels) | No | |
| --silent | Suppress log messages | No | true or false (default) |
Usage
oslo-generator-sparql --input report.jsonld --output queries --language nl