Powered by Zoomin Software. For more details please contactZoomin

Semaphore Publisher Template Reference

pathlist

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

The pathlist rule will generate a set of category rules with the category name set as the full path to root of that concept. If there are multiple paths to root for a concept, then a category rule will be created for each path.

Note: If anywhere along the path to root, a concept is not in the rulebase scope (e.g. excluded because of its class or metadata property value), the full path will not be returned.

Attributes

The pathlist rule has the following attributes:

  • link
  • delimiter - if not specified, defaults to ‘/’.
  • pathvalue - defines what representation of the concept will be returned. Valid values are: name (default) or zthesid, which will return the GUIDs of the concepts
  • class - specifies the value for the rulebase class attribute on the generated category rules. Variables of current concept context type can be used.

Example 1

For a model that contains the following hierarchies under the Concept Scheme, “Justice System” (id: 0):

Courts of Law (id: 1):
   NT: County Courts (id: 2)
   NT: Appellate Courts (id: 3)    

Courts by Jurisdiction (id: 4):
   NT: State Courts (id: 5)
   
State Courts (id: 5):
   NT: County Courts (id: 2)

Using the following template rule:

<pathlist class="${rulebaseClass}_PATH" link="link.${rulebaseClass}.${resource.label}.${language.iso_code}.${resource.guid}_FINAL" />

The rule generated for ‘Courts of Law’ will be expanded to:

<category class="Topic_PATH" name="Justice System/Courts of Law">
   <link label="link.Topic.Courts of Law.en.1_FINAL" />
</category>  

Using the same model definition as above the rule generated for “County Courts” will be expanded to:

<category class="Topic_PATH" name="Justice System/Courts of Law/County Courts">
   <link label="link.Topic.County Courts.en.2_FINAL" />
</category> 

<category class="Topic_PATH" name="Justice System/Courts by Jurisdiction/State Courts/County Courts">
   <link label="link.Topic.County Courts.en.2_FINAL" />
</category> 

Example 2

Using pathvalue and delimiter functionality:

<pathlist pathvalue="zthesid" delimiter=":" class="${rulebaseClass}_GUID_PATH" link="link.${rulebaseClass}.${resource.label}.${language.iso_code}.${resource.guid}_FINAL" />

The rule generated for “Courts of Law” would be:

<category class="Topic_GUID_PATH" name="0:1">
   <link label="link.Topic.Courts of Law.en.1_FINAL" />
</category>  

The rule generated for “County Courts” would be:

<category class="Topic_GUID_PATH" name="0:1:2">
   <link label="link.Topic.County Courts.en.2_FINAL" />
</category> 

<category class="Topic_GUID_PATH" name="0:4:5:2">
   <link label="link.Topic.County Courts.en.2_FINAL" />
</category> 
TitleResults for “How to create a CRG?”Also Available inAlert