Hi (soon weekend : ))
As I see it, the 2 topic maps have already been merged so the all the topics
in A would have been added or merged to topic map B. In my implementation,
the mergIn(TopicMap topicmap) first calls the mergeIn(Topic topic) and then
the copyAssociations(TopicMap otherTM, HashTable mergeMap) method. The
method then checks in the mergeMap for roles, players and types. If not
contained in the mergeMap something has gone terribly wrong in the merging
methods : /. So in other words, this should already have been taken care of
: ) The topic.getRolesPlayed() is used in the mergeIn(Topic topic) method to
set/replace the correct roles/types/players in all of the associations. So
all of the associations should have the correct reference to the newly
merged topics :)
Do you agree?
Joril Andersen
Helgesens gate 3
0553 Oslo
Mobil: 95256088
From: Lars Heuer <heuer-0vbsL0CoYrBBDgjK7y7TUQ@xxxxxxxxxxxxxxxx>
To: Murray Altheim <murray06-VpuskFHpX8xBDgjK7y7TUQ@xxxxxxxxxxxxxxxx>
CC: topicmapmail-Zo64W7twoUFWk0Htik3J/w@xxxxxxxxxxxxxxxx
Subject: Re: [topicmapmail] Merging associations
Date: Fri, 15 Sep 2006 14:34:05 +0200
Hi Murray,
hi Joril,
I still suspect that TopicMap.mergeIn(Association) (and
TopicMap.mergeIn(Topic)) is something I like to have in TMAPI. But I
like to understand the semantics of the copy operation.
Think of these topic maps (using [AsTMa2]):
Topic map A:
john isa person
http://en.wikipedia.org/wiki/John_Lennon # Subject identifier
# of john
member-of isa contained-in
member-of(group: the-beatles, member: john)
Topic map B:
john
http://en.wikipedia.org/wiki/John_Lennon # Subject identifier
# of john
Now I like to copy the "member-of" association from topic map A to
topic map B.
Questions:
- Is the topic "contained-in" and that "member-of" is and instance of
"contained-in" also copied to B?
- Is the information that "john isa person" added to B?
- Must the topics "group", "the-beatles", "member", "member-of" exist
in the topic map B to be successfully copied?
[AsTMa2]<http://astma.it.bond.edu.au/astma=-spec-2.0r1.0.dbk>
Best regards,
Lars
--
http://www.semagia.com
http://www.topicgarden.com/mailinglist/ German Topic Maps mailinglist
_______________________________________________
topicmapmail mailing list
topicmapmail-Zo64W7twoUFWk0Htik3J/w@xxxxxxxxxxxxxxxx
http://www.infoloom.com/mailman/listinfo/topicmapmail
|
|