|
NAMEstag-diff - finds the difference between two stag filesSYNOPSISstag-diff -ignore foo-id -ignore bar-id file1.xml file2.xml DESCRIPTIONCompares two data trees and reports whether they match. If they do not match, the mismatch is reported.
OUTPUTIf a mismatch is reported, a report is generated displaying the subpart of the tree that could not be matched. This will look like this:REASON: no_matching_node: annotation no_matching_node: feature_set no_matching_node: feature_span no_matching_node: evidence no_matching_node: evidence-id data_mismatch(:15077290 ne :15077291): evidence-id AND evidence-id Due to the nature of tree matching, it can be difficult to specify exactly how trees do not match. To investigate this, you may need to use the -r and -v options. For the above output, I would recommend using stag-diff -r feature_span -v ALGORITHMBoth trees are recursively traversed... see the actual code for how this worksThe order of elements is not important; eg <foo> <bar> <baz>1</baz> </bar> <bar> <baz>2</baz> </bar> </foo> matches <foo> <bar> <baz>2</baz> </bar> <bar> <baz>1</baz> </bar> </foo> The recursive nature of this algorithm means that certain tree comparisons will explode wrt time and memory. I think this will only happen with very deep trees where nodes high up in the tree can only be differentiated by nodes low down in the tree. Both trees are loaded into memory to begin with, so it may thrash with very large documents AUTHORChris Mungall cjm at fruitfly dot orgSEE ALSOData::StagPOD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |