Downloading Rulebase Files
- Last Updated: May 13, 2026
- 2 minute read
- Semaphore
- Documentation
Occassionally you will want to look at the rules that have been generated during the publisher process - and that have been sent to CS.
To do this you can select the menu item “Download Results” from the Publisher section of the model top menu drop down.
Up to version 5.4, by default the published rules are in a proprietory “.pak” format. You will need to use the Marklogic supplied “isUnpack” utility to unpack these into the separate rules. This utility is provided with the CLS server itself.
From 5.4 onwards, you can configure the Publisher to generate the rules in “.tar.gz” format. This is a more standard format. It can be unzipped by default on any Linux system, and there are packages available on-line to unzip these on Windows. From 5.6 onwards, this is the default packaging format but for 5.4 you can add the line
<property name="useGZip" value="true" />
to your rulebase generating module (generally beans based on the RulebaseWriterTemplate or the VelocityWriterTemplate).
If you are unable to install a .tar.gz unpacking utility, you can add to the configuration of the rulebase generating module the property
<property name="useZip" value="true" />
(instead of the line above). If this is set then the rulebases will be packaged using the usual zip method. These can be unzipped using the built in Windows zipping applications. However, this method of generating the rules is slower than the .tar.gz system, so would not be recommended for production systems.
If you are using an instance of CS Semaphore 5.2 or older and a Studio instance of 5.6 or later, you will need to specify that the Pak format is used. You can do this by setting
<property name="usePak" value="true" />
and not setting useZip or useGZip