NU IT
Northwestern University Information Technology
MorphAdorner Northwestern
 
MorphAdorner Server Services: Compare Adorned Files Service

Service name: teicompareadornedfiles
Service description: Compare two adorned files and generate change log.
HTTP methods allowed: POST, OPTIONS
POST accepts as input: application/x-www-form-urlencoded
HTTP return codes: 200: service succeeded
400: service failed with an error

Query parameters

    media Result format. Only xml allowed.
    origadornedfile Original adorned TEI XML file.
    updatedadornedfile Updated adorned TEI XML file.
    resultsAsAttachedFile Allowed values are true to send the results as an attached file, and false to send the results as a data stream.

Sample POST form

<form accept-charset="UTF-8" method="post" action="teicompareadornedfiles"
      target="_blank"
      enctype="multipart/form-data" name="teicompare">
<table cellpadding="0" cellspacing="5">
<tr>
<td>
<strong>Original adorned TEI XML file:</strong>
</td>
<td>
<input type="file" name="origadornedfile" size="50">
</td>
</tr>
<tr>
<td>
<strong>Updated adorned TEI XML file:</strong>
</td>
<td>
<input type="file" name="updatedadornedfile" size="50">
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input type="checkbox" name="resultsAsAttachedFile" value="true"
       checked="checked"/>
Send results as attached file
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="compare" value="Compare" />
</td>
</tr>
</table>
</form>

Output

The original adorned or tokenized TEI XML file specified by origadornedfile is compared with the updated adorned or tokenized TEI XML file specified by updatedadornedfile. The changes from the original file to the updated file are written to a MorphAdorner change log file. The change log is returned either as an attached file if resultsAsAttachedFile is true or as an XML stream if resultsAsAttachedFile is false. This service produces the same output as the CompareAdornedFiles utility. The change log format is described there.

Home
 
Announcements and News
 
Documentation
 
Download MorphAdorner
 
Glossary
 
Helpful References
 
Licenses
 
Server
 
Talks
 
Tech Talk