Chapter 3. TMCore API Programming Kickstart

Table of Contents

Compiling and Running the Examples
APIExample1 : Creating a topic map with topics and associations
Running The Example
APIExample2 : Working With Indexes
Running The Example
APIExample3 : Reading And Writing XTM with IXTMProcessor
Running The Example
APIExample4: Using TMRQL
Running The Example
APIExample5: Using The ApplicationOntology Cache
Running The Example

This chapter presents some easy examples of how to start working with the TMCore API. The following examples are a little bit more than the typical "Hello World" application you find at the start of programming texts. Our first example provides code for creating a topic map from scratch using the TMCore APIs. The second example is a bit more complex, it generates a topic map that represents the directories and files contained in a given directory on the file-system. This second example shows more use of the APIs for creating and modifying topic map data and also shows the use of the indexing system provided by the API. The third example shows how to write a topic map out to an XTM file and the final example shows how to import topic map data from an XTM into the TMCore system.