From: <ha...@us...> - 2003-10-26 14:13:14
|
Update of /cvsroot/tm4j/tm4j/resource/tests In directory sc8-pr-cvs1:/tmp/cvs-serv31613 Added Files: merge1.xml merge2.xml merge3.xml merge4.xml Log Message: Added test resources for TopicMapMergerTest and TopicMapSerializerTest. --- NEW FILE: merge1.xml --- <?xml version="1.0"?> <!DOCTYPE topicMap PUBLIC "-//TopicMaps.Org//DTD XML Topic Map (XTM) 1.0//EN" "http://www.topicmaps.org/xtm/1.0/xtm1.dtd"> <topicMap xmlns="http://www.topicmaps.org/xtm/1.0/" xmlns:xlink='http://www.w3.org/1999/xlink'> <topic id="a"> <baseName><baseNameString>A</baseNameString></baseName> </topic> <topic id="b"> <baseName><baseNameString>B</baseNameString></baseName> </topic> <association id="assoc"> <member><topicRef xlink:href="#a"/></member> <member><topicRef xlink:href="#b"/></member> </association> </topicMap> --- NEW FILE: merge2.xml --- <?xml version="1.0"?> <!DOCTYPE topicMap PUBLIC "-//TopicMaps.Org//DTD XML Topic Map (XTM) 1.0//EN" "http://www.topicmaps.org/xtm/1.0/xtm1.dtd"> <topicMap xmlns="http://www.topicmaps.org/xtm/1.0/" xmlns:xlink='http://www.w3.org/1999/xlink'> <topic id="c"> <baseName><baseNameString>C</baseNameString></baseName> </topic> <topic id="d"> <baseName><baseNameString>D</baseNameString></baseName> </topic> <topic id="a-alias"> <baseName> <baseNameString>A</baseNameString> </baseName> <occurrence> <resourceData>I have the same name as a, so I should be merged.</resourceData> </occurrence> </topic> <association> <member><topicRef xlink:href="#c"/></member> <member><topicRef xlink:href="#d"/></member> </association> </topicMap> --- NEW FILE: merge3.xml --- <?xml version="1.0"?> <!DOCTYPE topicMap PUBLIC "-//TopicMaps.Org//DTD XML Topic Map (XTM) 1.0//EN" "http://www.topicmaps.org/xtm/1.0/xtm1.dtd"> <topicMap xmlns="http://www.topicmaps.org/xtm/1.0/" xmlns:xlink='http://www.w3.org/1999/xlink'> <topic id="another-alias-a"> <baseName><baseNameString>A</baseNameString></baseName> <baseName> <scope> <topicRef xlink:href="#g"/> </scope> <baseNameString>I'm another name for A</baseNameString> </baseName> </topic> <topic id="g"> <baseName><baseNameString>B</baseNameString></baseName> <occurrence> <resourceData>I have the same name as B, so I should be merged.</resourceData> </occurrence> </topic> <association> <member> <topicRef xlink:href="merge4.xml#extref"/> </member> <member> <topicRef xlink:href="#g"/> </member> </association> </topicMap> --- NEW FILE: merge4.xml --- <?xml version="1.0"?> <!DOCTYPE topicMap PUBLIC "-//TopicMaps.Org//DTD XML Topic Map (XTM) 1.0//EN" "http://www.topicmaps.org/xtm/1.0/xtm1.dtd"> <topicMap xmlns="http://www.topicmaps.org/xtm/1.0/" xmlns:xlink='http://www.w3.org/1999/xlink'> <topic id="extref"> <baseName><baseNameString>Extref</baseNameString></baseName> <occurrence> <resourceData>I'm a topic in a remote topic map, so I should only be merged in if the merger is configured to merge the topic maps of externally referenced topics.</resourceData> </occurrence> </topic> <topic id="extref2"> <baseName><baseNameString>extref2</baseNameString></baseName> <occurrence> <resourceData>I'm a topic in a remote topic map that's not being referenced directly, but another topic in the same topic map is. So I should be merged along with the directly referenced topic, but only if the merger is configured to merge the topic maps of externally referenced topics.</resourceData> </occurrence> </topic> </topicMap> |