Skip to content

Database Generation

opcode81 edited this page May 9, 2013 · 1 revision

The database generation tool creates BLOG and/or MLN databases for models based on a Jython generator script, making use of the datagen Python module. The program is run from the command line and expects the following parameters:

  genDB [options] <Jython generator script> <output base filename> [parameters to pass on to generator script]

The options one can pass to genDB include

  • -m to output an MLN database (.db)
  • -b to output a BLOG database (.blogdb)
  • -bm to output a basic MLN model (.basic.mln)
  • -bb to output basic BLN model declarations (.basic.blnd)
At least one such option should be specified. The output base filename is the prefix of all output files (e.g. if it is "foo", then if -m is passed as an option, a file called "foo.db" will be generated).

See also

Clone this wiki locally