The merge tool is a command-line utility for merging two or more topicmaps and outputting the result. The source of the topic maps must be XML files using XTM 1.0 syntax. The output is also in XTM 1.0 syntax and may be written either to a file or the standarad output stream.
Both the subject-base merging constraint and the name-based merging constraint are honoured. Two topics will be determined as mergeable if one of the following apply:
<topicRef>
in <subjectIdentity>
).For the purposes of matching, all http protocol URLs are normalised, forcing domain names to lower case, stripping the port number if it is the default port (80) and correclty encoding all path elements and fragment identifiers. All strings are compared using Java's internal string comparison function.
java org.tm4j.topicmap.cmd.Merge {options} input_file [-b
{input_file_base_uri}] [input_file [-b {input_file_base_uri]...]
or, if using the scripts provided in the bin
directory:
merge {options} input_file [-b {input_file_base_uri}]
[input_file [-b {input_file_base_uri]...]
-v | -verbose
-o | -output {output-file-name}
-d | --include-doctype
-S | --system-id {system-identifier}
-d
option is not also specified on the command line.-P | --public-id {public-identifier}
-d
option is not also specified on the command line.-e | --encoding {encoding-name}
-I | --indentation {indent}
-F | --factory {topicmap-provider-factory-name}
-B | --output-base-uri {output-topicmap-baseuri}
-n | --nomerge
mergeMap
elements in the input files. If this
option is not specified, the processor will attempt to retrieve and merge in
topic maps references by a mergeMap
element or any
topic map which contains a topic referenced by a read topic map.-c | --consistent
-? | --help
-b