From: Conal T. <co...@pa...> - 2005-04-04 09:04:41
|
In your topic map file Topics.xtm there is a topic which is an instance of the class "articles": <topic id="id10.1041_l0001s-2002"> <instanceOf> <topicRef xlink:href="#articles" /> </instanceOf> <!-- ... --> </topic> The uri "#articles" points to a topic in the same map (i.e. in Topics.xtm) which has id = "articles". But there's no such topic in Topics.xtm, so TM4J creates the topic like this: <topic id="articles"/>. You need to refer to the "articles" topic in the ontological topic map "topicTypes.xtm". e.g. <topic id="id10.1041_l0001s-2002"> <instanceOf> <topicRef xlink:href="topicTypes.xtm#articles" /> </instanceOf> <!-- ... --> </topic> NB merging topic maps from 2 files is not the same as concatenating the 2 files. e.g. if you merge these 2 topic map files, the 2 topics do NOT merge: <!-- a.xtm --> <topicMap id="a"> <topic id="foo"/> </topicMap> <!-- b.xtm --> <topicMap id="b"> <topic id="foo"/> </topicMap> Hope that helps. C |