This package requires Node version 10 or higher
npm install --silent git://github.com/sdevalk/rdf-ontology-to-html.git
Create a template file, e.g. by copying and pasting the contents of the example file.
The generator accepts the following arguments:
Argument | Data type | Required | Description |
---|---|---|---|
ontologyUrl |
URI | Yes | URL of the ontology, pointing to a Turtle file |
templateFile |
Text | Yes | File containing the Handlebars-compliant template |
debug |
Boolean | No | Print debug messages |
Example calls:
npx rdf-ontology-to-html docs:generate --ontologyUrl http://www.w3.org/ns/prov --templateFile ./templates/example01.html > ./example01.html
Or:
npx rdf-ontology-to-html docs:generate --ontologyUrl http://www.w3.org/ns/prov --templateFile ./templates/example01.html --debug > ./example01.html
docker-compose build --no-cache
docker-compose run --rm node /bin/bash
npm test
bin/run docs:generate --ontologyUrl http://www.w3.org/ns/prov --templateFile ./templates/example01.html > ./example01.html
bin/run docs:generate --ontologyUrl http://www.w3.org/ns/prov --templateFile ./templates/example01.html --debug > ./example01.html
./node_modules/.bin/pkg .