From: Kal A. <ka...@te...> - 2001-07-18 21:56:16
|
Hi Thomas, The way that the TM4J parser works means that some topics that aren't represented by <topic> element will get created in the data model held internally by TM4J. Typically, these get created when a <topic> element has a <subjectIndicatorRef> element anywhere in it other than inside a <subjectIdentity> element. These <subjectIndicatorRef> elements are references to subjects which TM4J automatically turns into topics. On the new topics being created, is there a <subjectIdentity>/<subjectInidicatorRef> element ? If so, then this is the reason. Also, TM4J creates the XTM-specified class-instance association type and class and instance role types by default - these are needed because TM4J attempts to honour the XTM requirement that <instanceOf> on a topic is actually equivalent to an association between the topic containing the <instanceOf> and the topic referenced from the <instanceOf>. I'm not sure why the name did not get updated properly (I take it that you mean that you changed the baseNameString in the <topic> element which specifies the <topicMap> element as its <subjectIndicatorRef> ?). I'll try and track that problem down and let you know what I find. Cheers, Kal > -----Original Message----- > From: tm4...@li... > [mailto:tm4...@li...]On Behalf Of Thomas > Schwotzer > Sent: 17 July 2001 13:28 > To: tm4...@li... > Subject: [TM4J-users] problems during writing xtm files with tm4j > > > Hi, > yesterday I downloaded version 0.4.3. > > I plan to generate a VRML scenario > from a topic map. I would like > to use tm4j to read and write xtm files. > > Reading works fine. I could read a topic > map, count some topics etc. I used two > XTM files from Ontopia (opera.xtm and jill.xtm) > for testing. > > Writing was more difficult. > I simply changed the name of the topic map > and used XTMWriter and Walker for writing. > I could produce another xtm file... > > But this new copy did not contain the new > name but it contained 11 additional topics. > I run the small program several times - every > time 11 topics were added. > > My question is: Is it a known bug? > What could I have done wrong? > Are there some examples? > > Thanks in advance, thomas > > ps: Despite these problems: as far as I > can see your class lib is currently the best free > Java TM lib world wide. > -- > Thomas Schwotzer > Technische Universität Berlin > Intelligente Netze und Management verteilter Systeme > http://ivs.tu-berlin.de/~thsc > fon: +49-30-314-25102 mobile: +49-172-8719509 > > _______________________________________________ > Tm4j-users mailing list > Tm4...@li... > http://lists.sourceforge.net/lists/listinfo/tm4j-users > > |