From: Lars H. <he...@se...> - 2010-08-30 16:04:34
|
Hi Uta, [...] >> say: You may do something like >> >> conn.execute("DELETE * FROM topics WHERE tm_id = mytmid;"); >> >> You don't have to iterate through the topics / assocs via the API. > My problem with this is: of course, MY engine may do this. But I want to > be sure that every other engine I may use, has implemented it this way > as well ... If an engine implementation iterates through the topics / assocs, it would do nothing wrong. It may be ineffective but the result would be the same: The topic map is removed from the TopicMapSystem. The following must hold true for a TMAPI implementation: final Locator loc = tmSys.createLocator("http://example.org/map"); final TopicMap tm = tmSys.createTopicMap(loc); assertNotNull(tm); assertEquals(tm, tmSys.getTopicMap(loc)); tm.remove(); assertNull(tmSys.getTopicMap(loc)); How it's implemented is completely unimportant and outside the scope of TMAPI. And I think it should be possible to create a topic map under the same storage address of the removed topic map (see Sven's objection that this might not be allowed). Best regards, Lars -- Semagia <http://www.semagia.com> <http://www.topicmaps.de/mailinglist/> German Topic Maps mailing list <http://tinytim.sourceforge.net/> Open Source Topic Maps engine |