Importing XML Topic Maps (XTM)ΒΆ

To import topic maps encoded in XTM, TMAPIX I/O offers the XTMTopicMapReader. If the topic maps should be checked for validity, the jing.jar is needed in the classpath.

Basic usage of the XTMTopicMapReader:

import org.tmapix.io.TopicMapReader;
import org.tmapix.io.XTMTopicMapReader;

// ``tm`` is an instance of org.tmapi.core.TopicMap

File source = new File("./mymap.xtm");
TopicMapReader reader = new XTMTopicMapReader(tm, source);
reader.read();