Differences between revisions 1 and 12 (spanning 11 versions)
Revision 1 as of 2008-06-26 12:26:08
Size: 364
Editor: kfc
Comment: Created by the PackagePages action.
Revision 12 as of 2010-03-17 13:08:50
Size: 1495
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= File characterization API here = = File characterization API =
Line 3: Line 3:
A webservice will be provided, that given a URL will provide output of characterization tools, and a file format ID. This API is yet to be defined. A webservice is provided, that given a URL will provide output of characterization tools, and a file format ID.
Line 6: Line 6:



=== File Characterization API ===

WSDL: [[attachment:DOMSFileCharacterizer.xml]]

The following describes those methods of the File Characterization API that may be called by the GUI.

==== characterizeFile ====
Generates characterization output from analysis of file.

Input parameters:
 * {{{org.apache.axis.types.URI fileURI}}} URL to the file to be characterized.

Returns:
 * {{{FileCharacterization}}} Characterisation message and a format ID. Data structure summarized below.

Throws:
 * {{{IOException}}} If the characterizer failed downloading the file.
 * {{{NoSuchAlgorithmException}}} This exception should never be thrown.


=== Data structures ===

==== FileCharacterization ====
Returned by characterizeFile.

Characterisation response.
Contains the following private fields. Each has corresponding getter and setter methods.

 * {{{byte[] characterizationOutput}}} The output of the characterization tool.
 * {{{String pronomID}}} The PRONOM file format ID.
 * {{{String validationStatus}}} Whether or not the format of the file is valid. Value "VALID" or "INVALID".
 * {{{String md5CheckSum}}} Checksum of the file.

File characterization API

A webservice is provided, that given a URL will provide output of characterization tools, and a file format ID.

The concept is that the output of this webservice must be included in a technical datastream for the file object. Also, the format ID must be provided in technical metadata.

File Characterization API

WSDL: DOMSFileCharacterizer.xml

The following describes those methods of the File Characterization API that may be called by the GUI.

characterizeFile

Generates characterization output from analysis of file.

Input parameters:

  • org.apache.axis.types.URI fileURI URL to the file to be characterized.

Returns:

  • FileCharacterization Characterisation message and a format ID. Data structure summarized below.

Throws:

  • IOException If the characterizer failed downloading the file.

  • NoSuchAlgorithmException This exception should never be thrown.

Data structures

FileCharacterization

Returned by characterizeFile.

Characterisation response. Contains the following private fields. Each has corresponding getter and setter methods.

  • byte[] characterizationOutput The output of the characterization tool.

  • String pronomID The PRONOM file format ID.

  • String validationStatus Whether or not the format of the file is valid. Value "VALID" or "INVALID".

  • String md5CheckSum Checksum of the file.

File characterization API (last edited 2010-03-17 13:08:50 by localhost)