Powered by Zoomin Software. For more details please contactZoomin

Semaphore Classification Server Rulebase Reference

ID

  • Last Updated: May 13, 2026
  • 2 minute read
    • Semaphore
    • Documentation

Gives the optional ID for a category rule that will be returned if the score is greater than the threshold classification level.

NB the reason for the addition is that most rulenets have both a textual name and an ID - this mechanism allows a single category to be used rather than having to create 2 category rules (in different classes) 1 with the name and 1 with the ID (eg IPSV_UPWARDS and IPSV_ID) The old mechanism will still work and may be useful for systems which do not always add the ID category rules to the rulenet.

Applies to

Values

  • “ID”

Example

<category class="VEHICLES" name="car" id="101">
    <any>
        <text data="car"/>
        <text data="automobile"/>
    </any>
</category>
<any category="1" class="VEHICLES" name="truck" id="102" >
    <text data="truck"/>
    <text data="4x4"/>
    <text data="semi"/>
    <text data="pickup"/>
</any>

In this case either of the category rules would return with the class “VEHICLES” specified if any of the words were found in the classified document with the name “car” or “truck” and the appropriate ID.

Example 2

With the previous example rulebase already part of the rulenet adding the following:

<category class="VEHICLES" name="voiture" id="101">
    <any>
        <text lang="fra" data="voiture"/>
    </any>
</category>

Then this will also link to VEHICLES:101 (in this case the text rule will only be fired in a French document)

In this case when “voiture” is found the name of the category returned will be the name in English, that is:

...
<META class="VEHICLES" name="car" id="101" score="100" />
...

Note that this means that the name returned will depend on the load order for the rulenet.

See also

TitleResults for “How to create a CRG?”Also Available inAlert