Skip to content
This repository was archived by the owner on Jan 5, 2020. It is now read-only.

Compilation

Marek Suchánek edited this page Oct 4, 2016 · 1 revision

Input

  • DS KM data root (datamodel folder of this repository)
  • List of desired localization names

Process steps

  • Load all DS KM data
  • Create list of to-process namespaces
    • Add "core" to to-process list
    • For each desired localization: add it to to-process list and browse this localization for required localization (via cross references, question extension, precondition, etc.). Each required namespace add to desired if not already in desired or to-process lists.
    • Remove all data from namespaces that are not in the to-process list
    • !!! Order of namespaces in the list matters
  • Make unified chapters
    • Make list of chapters: add "core" chapters, chapters from localization can overwrite attributes if defined
      • If question contains namespace attribute, then insert it into target question (desired namespace, same chapter id, same question id) to the extensions list
      • Else add question to common chapter
  • Apply extensions
  • Reorder questions (insertBefore)
  • Apply preconditions (make tree)

Output

  • (Pre)compiled JSON

Clone this wiki locally