legalthesaurus.org

Example “Simple”

Example “Simple”

Introduction

This example is drawn from a thesaurus having only the most basic relationship types, and scope notes. There is no classified display, but a hierarchical display is possible as well as the normal alphabetical one. Each term also has an identifier, tagged “TNR” in the alphabetical display. (Normally the identifier would not be shown in an alphabetical display for end-users, but it is shown here to facilitate checking).

For this example, testing includes:

  • Checking that all features can be represented adequately in the DD8723-5 model and the corresponding XML schema.
  • Checking that data expressed in the DD8723-5 XML format can be interpreted correctly to re-create the alphabetical display.
  • Checking that data expressed in the DD8723-5 XML format can be interpreted correctly to re-create the hierarchical display.

This example is based on the sample data given by the following file.
Source.doc

DD8723-5 XML Format

The following example illustrates how this Thesaurus can be recorded in the DD8723-5 format.
Example.xml

Alphabetical display

The following XSL transformation was written to demonstrate that it is possible to recreate thealphabetical display of the Thesaurus from the DD8723-5 format.

The transformation is available at the following location.
DD8723-5ToAlphabeticalDisplay.xsl

The result of the transformation is available at the following location.
AlphabeticalDisplay.txt

Hierarchical display

The following XSL transformation was written to demonstrate that it is possible to recreate thehierarchical display of the Thesaurus from the DD8723-5 format.

The transformation is available at the following location.
DD8723-5ToHierarchicalDisplay.xsl

The result of the transformation is available here.
HierarchicalDisplay.txt