Figure 4.

Example generator. MOLGENIS generators are implemented as templates. This example shows the generator for a database component (A). This template is applied to each <entity> in the model to generate many complete DataMappers that would otherwise need to be written by hand. (B) shows an example of the generated source files, in this case for <entity name="Experiment"> as described in Figure 1. The command $Name(entity) translates to the name of the entity (“Experiment”) and command ${csv($entity.Fields, x)} means that command ‘x’ is applied to each field of the entity and returned as a comma separated string (csv).

Swertz et al. BMC Bioinformatics 2010 11(Suppl 12):S12   doi:10.1186/1471-2105-11-S12-S12