A DSL for some parts of WebGRUD fertilization rule definitions. Generates N3. Built with Langium .
.
├── calculation-environment/sample-1 -----------< Environment for running 'fertilizationN' calculation
│
├── generated ----------------------------------< Generated N3 rules for sample model
│ └── fertilizationN.n3
│
├── grud-def -----------------------------------< The Langium project
│ └── src
│ ├── cli
│ │ └── generator.ts -------------------< Generator for N3 rules
│ └── language
│ └── web-grud-definitions.langium ---< Grammar definition
│
└── sample-model -------------------------------< Sample model of WebGRUD definitions
└── fertilizationN.grud
Generating artifacts derived from the grammar after changing the grammar definition (inside ./grud-def):
$ npm run langium:generate
Main build (inside ./grud-def):
$ npm run build
- Open the Langium project in vscode:
code ./grud-def/
- Press
F5
to launch the extension in a new Extension Development Host window. - Open a folder and create or open a file with file extension
.grud
Start the dev web server (inside ./grud-def):
$ npm run serve
Generate N3 rules from file fertilizationN.grud :
$ node grud-def/bin/cli.js generate -r sample-model sample-model/fertilizationN.grud
N3 rules generated successfully: generated/fertilizationN.n3
See fertilizationN sample environment in ./calculation-environment/sample-1