[topicmapmail] subject proxies and subject maps

Lars Heuer heuer at semagia.com
Thu Jan 3 08:02:10 EST 2008


Hi Johannes,

> thank you for the answer. The question I wish to answer myself is how to
> implement a creation process. In TMDM-conforming applications there is
[...]

So, your question is more a practical one? How to design an API for
Subject Maps?

You could provide a "createProxy" factory method on your SubjectMap
and provide a "remove" method on your SubjectProxy which takes care
about the constraints. Or you let the user create instances of your
class "SubjectProxy" and check the constrains while adding a proxy to
a SubjectMap instance. It depends on your use cases / preferences /
practical considerations.

TMRM (as the TMDM) does not define any practical advices how to
implement the model, it's up to the developer. It's easier to
implement an API for the TMDM because it looks more object orientated,
though. Additionally, the TMDM has well defined constraints, while the
TMRM mandates only some basic constraints and leaves a lot room for
other user-defined constraints (legends).

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



More information about the topicmapmail mailing list