Example “Top Concept”

Introduction

This example, slightly improbable in practice, is intended to test the treatment of top terms/concepts. Just three of its top terms are included in the extract, namely fruits, wines and hardware. To check out how the top terms perform alongside node labels, I’ve included some of them too. For simplicity, other features such as notation have been omitted from the displays. The tags in the displays are as in previous examples, with a new one: TT stands for Top Term, as set out in DD 8723-2 Clause 10.2.

For this example, testing includes:

  • Checking that all features can be represented adequately in the DD8723-5 model and the corresponding XML schema. The XML data should include the attribute “TopConcept”, even though this is not shown in any of the displays for humans.
  • Checking that data expressed in the XML format can be interpreted correctly to re-create the alphabetical, classified and hierarchical displays.

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 the alphabetical 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 here.
AlphabeticalDisplay.txt

Hierarchical display

The following XSL transformation was written to demonstrate that it is possible to recreate the hierarchical 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

Classified display

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

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *