Recent Changes - Search:

About

Users

Internal

Other Info (External)

edit SideBar

Tutorials

Main.Tutorials History

Show minor edits - Show changes to output

June 15, 2010, at 07:59 PM by 67.193.200.143 -
Added lines 125-129:



\\
[[Main/HomePage | Home]]
June 15, 2010, at 12:25 PM by 192.12.69.138 -
Deleted line 91:
myRepSchema.xsd
June 15, 2010, at 02:00 AM by 192.12.69.138 -
Added lines 3-16:
We have provided several test cases within the source code distribution package.
These test cases can be found at

%box% [@
$ /home/johndoe/tXSchema/test_suites
@]

assuming the source code directory is
%box% [@
$ /home/johndoe/tXSchema
@]

We will be using the provided test cases throughout the tutorials.
Changed lines 19-21 from:
* The [[ Main/Tutorials1 | first]] tutorial walks through the simplest possible case for Squash. It is a great way to make sure you have your complete scenario setup correctly for running ##XSchema.
* [[ Main/TestCase3 | Test Case 3]] walks through another (slightly more complicated) scenario. It was created by the original implementor of ##XSchema.
to:
To run squash, please first go to the executable directory
%box% [@
$ /home/johndoe/tXSchema/executable
@]

We will use the cardinality test case. Let's first take a look at what are the contents
in the cardinality test.
%box% [@
$ ls /home/johndoe/tXSchema/test_suites/cardinality
Annotations.xml
company.xsd
data1.xml
data2.xml
data3.xml
data4.xml
data5.xml
data6.xml
temporalDocument.xml
tempschema.xml
@]

The temporalDocument.xml is the original temporal document file containing the
slice information. The data1.xml through data6.xml files are the actual slice data
files each representing a time period.

To squash this temporal document and the slices, please execute
%box% [@
$ ./squash /home/johndoe/tXSchema/test_suites/cardinality/temporalDocument.xml
@]

Now to see the output of running squash, please do

%box% [@
$ ls /home/johndoe/tXSchema/test_suites/cardinality
Annotations.xml
company.xsd
data1.xml
data2.xml
data3.xml
data4.xml
data5.xml
data6.xml
temporalDocument_squashed.xml
temporalDocument.xml
tempschema.xml
@]

Note that the new file named temporalDocument_squashed.xml has been created.
This is the result of squashing.
Deleted lines 70-75:
!! Temporal Validator

* (Under construction) The [[ Main/TemporalValidatorTutorial1 | first]] TemporalValidator tutorial walks continues where the first Squash tutorial left off.

\\
Changed lines 73-74 from:
* (Under construction) Tutorial 1
to:
The unsquash tool takes the newly created squashed file as input and produces
the sliced XML files identical to the data1.xml through data6.xml files.

To run unsquash, please execute the following.
%box% [@
$ ./unsquash /home/johndoe/tXSchema/test_suites/cardinality/temporalDocument_squashed.xml
@]

To see the results, please execute
%box% [@
$ ls /home/johndoe/tXSchema/test_suites/cardinality
Annotations.xml
company.xsd
data1.xml
data2.xml
data3.xml
data4.xml
data5.xml
data6.xml
myRepSchema.xsd
slice_20080101_20090317.xml
slice_20090317_20091001.xml
slice_20091001_20100128.xml
slice_20100128_20100227.xml
slice_20100227_20110101.xml
temporalDocument_squashed.xml
temporalDocument.xml
tempschema.xml
@]

The XML files prefixed with "slice_" are the slices extracted from the squashed file.
Each slice file is suffixed with its time period. The content of each file can be
identically matched to its peer from data1.xml to data6.xml in the above example.

\\

!! Temporal Validator

With the temporalDocument_squashed.xml file generated by the squash tool,
we now can run the temporal constraint validator to check against the squashed
temporal document.

Note that we have provided the cardinality type constraints in the Annotation.xml
file. The test case was purposely designed to violate the specified constraints.
So running the validator against the temporal document will produce error messages
indicating the document fails to validate. This is the expected and proper outcome.

To run the validator, please execute
%box% [@
$ ./txmllint /home/johndoe/tXSchema/test_suites/cardinality/temporalDocument_squashed.xml
In period [2009-01-01 - 2009-12-31] [suppliersSeq] seq cardinality violation: max is 3 actual is 5[[ipad, joystick, keyboard, mouse, xbox]]
/home/johndoe/tXSchema/test_suites/cardinality/temporalDocument_squashed.xml fails to validate
@]
Changed lines 6-7 from:
* [[ Main/TestCase3 | Test Case 2]] walks through another (slightly more complicated) scenario. It was created by the original implementor of ##XSchema.
to:
* [[ Main/TestCase3 | Test Case 3]] walks through another (slightly more complicated) scenario. It was created by the original implementor of ##XSchema.
Changed lines 12-13 from:
* The [[ Main/TemporalValidatorTutorial1 | first]] TemporalValidator tutorial walks continues where the first Squash tutorial left off.
to:
* (Under construction) The [[ Main/TemporalValidatorTutorial1 | first]] TemporalValidator tutorial walks continues where the first Squash tutorial left off.
Changed lines 18-19 from:
* Tutorial 1
to:
* (Under construction) Tutorial 1
Changed lines 6-7 from:
* [[ Main/TestCase3 | Test Case 3]] walks through another (slightly more complicated) scenario. It was created by the original implementor of ##XSchema.
to:
* [[ Main/TestCase3 | Test Case 2]] walks through another (slightly more complicated) scenario. It was created by the original implementor of ##XSchema.
Changed lines 6-7 from:
* [[ Main/TestCase3 | Test Case 3]] walks through another (more complicated) scenario.
to:
* [[ Main/TestCase3 | Test Case 3]] walks through another (slightly more complicated) scenario. It was created by the original implementor of ##XSchema.
Added lines 12-17:
* The [[ Main/TemporalValidatorTutorial1 | first]] TemporalValidator tutorial walks continues where the first Squash tutorial left off.

\\

!! Unsquash
Changed lines 6-7 from:
* [[ Main/TestCase3 | Test Case 3]] walks through another scenario.
to:
* [[ Main/TestCase3 | Test Case 3]] walks through another (more complicated) scenario.
Changed line 5 from:
* The [[ Main/Tutorials1 | first]] tutorial walks through the simplest possible case for Squash.
to:
* The [[ Main/Tutorials1 | first]] tutorial walks through the simplest possible case for Squash. It is a great way to make sure you have your complete scenario setup correctly for running ##XSchema.
Changed line 5 from:
* The [[ Main/Tutorials1]| first] tutorial walks through the simplest possible case for Squash.
to:
* The [[ Main/Tutorials1 | first]] tutorial walks through the simplest possible case for Squash.
Changed line 5 from:
* [[ Main/Tutorials1]] walks through a simple scenario when Squash is useful.
to:
* The [[ Main/Tutorials1]| first] tutorial walks through the simplest possible case for Squash.
Changed lines 6-7 from:
to:
* [[ Main/TestCase3 | Test Case 3]] walks through another scenario.
Changed lines 1-2 from:
The following tutorials assume that you have already [[ Main/Downloads | obtained ]] and [[ Main/InstallationGuide | installed ]] the system.
to:
The following tutorials assume that you have already [[ Main/Downloads | obtained ]] and [[ Main/InstallationGuide | installed ]] the ##XSchema.
Added lines 1-2:
The following tutorials assume that you have already [[ Main/Downloads | obtained ]] and [[ Main/InstallationGuide | installed ]] the system.
Added lines 5-6:
\\
Changed lines 1-8 from:
* [[ Main/Tutorials1]] walks through a simple scenario when Squash is useful.
to:
!! Squash

*
[[ Main/Tutorials1]] walks through a simple scenario when Squash is useful.

!! Temporal Validator

* Tutorial 1
Changed line 1 from:
TODO
to:
* [[ Main/Tutorials1]] walks through a simple scenario when Squash is useful.
Added line 1:
TODO
Edit - History - Print - Recent Changes - Search
Page last modified on June 15, 2010, at 07:59 PM