org.tm4j.topicmap.utils.XTMUtils .makeConsistent(org.tm4j.topicmap.TopicMap tm)
Description
Creates a "consistent" topic map representation by applying the duplicate suppression rules of XTM 1.0 Annex F (section 6) This means that 1) All topics which are merged together are replaced by a single topic having the characteristics of all the merged ones (XTM 1.0 F.5.1) 2) Duplicate subject indicators on the same topic are collapsed into a single subject indicator (XTM 1.0 F.6.1) 3) Duplicate names in the same scope on the same topic are collapsed into a single name (XTM 1.0 F.6.2) 4) Duplicate role players in associations are removed (XTM 1.0 F.6.4) 5) Duplicate associations are collapsed into a single association (XTM 1.0 F.6.3) Note that F.6.4 is applied before F.6.3 as the XTM definition of a duplicate association uses a definition of equivalence which is affected by the aplication as F.6.4.
Parameters | ||
---|---|---|
org.tm4j.topicmap.TopicMap | tm | The topic map to be processed |
Throws
- java.beans.PropertyVetoException - If a change to the topic map is vetoed during merge or duplicate suppression.
- org.tm4j.topicmap.TopicMapProcessingException - If errors are encountered during merge or duplicate supression.