logo       

Re: Merging associations: msg#00015

Subject: Re: Merging associations
Hi Joril,

>>Since TMAPI is a collection of Java interfaces you have the freedom to
>>implement anything you want (as long as you fullfil the interface
>>contracts). If you want a TopicMap.mergeIn(Association) method: add it.
>>As said, it would be strange to have something like that in TMAPI.
>>That's implementation specific.

> Yea, I am fully aware of this... I never meant an implementation, merely an
> added method in the Association interface, like the mergin() method in the
> Topic class. To indicate that this method should be realized..

It is not there, because TMAPI is the "user" perspective. TMAPI is not
a tutorial "How to implement a TM engine". I suspect that a user needs
a TopicMap.mergeIn(Association) method.

[...]
>>Maybe it would be nice if tinyTiM provides a utility that removes
>>duplicates, but in "runtime mode" it is too expensive to check for
>>duplicates.

> Yes , I agree, this is also true for the MTV implementation that runs on
> mobile phones. The question is; should it be checked at startup or shutdown?

If I have to write a DuplicateSuppression class I'd let the user
decide when she likes to remove duplicates from the TM. If a user does
not care about duplicates you won't waste her resources and time ;)
Merging topic maps might be another subject, here you can take care
that an association is not added to the topic map if the association
already exist.

> Do you know if other implementations merge associations?

I think [TM4J] takes care that an association is not added to the TM
if it already exist. You can look into the (if I remember right)
TopicMapCopier class.

[TM4J] http://www.tm4j.org/

Best regards,
Lars
-- 
http://www.semagia.com
http://www.topicgarden.com/mailinglist/ German Topic Maps mailinglist


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe