Personal tools

4.4.5. XML Description

Up one level
Creating an XML File to Describe an Application

Application description files are XML files containing metadata about applications deployed on GRIA. These files are essential for GRIA users to discover available applications and use them. To create an XML description file of an application you need to use the following schema to identify the application's main features including name, version number, description, and inputs/outputs (if any). For example, The following code describes the Swirl application:

<application>

    <name>http://it-innovation.soton.ac.uk/2005/gria/tutorial/swirl</name>
    <version>1.0.0</version>
    <description>Application to swirl an image</description>

    <application-inputType>
        <name>image.jpg</name>
        <type>jpg</type>
        <description>image file of any type</description>
    </application-inputType>

    <application-outputType>
        <name>image.jpg</name>
        <type>jpg</type>
        <description>swirled image of the same type as input type</description>
    </application-outputType>

</application>

The following code describes the Paint application:

<application>

    <name>http://it-innovation.soton.ac.uk/2005/gria/tutorial/paint</name>
    <version>1.0.0</version>
    <description>Application to render an image into painting</description>

    <application-inputType>
        <name>image.jpg</name>
        <type>jpg</type>
        <description>image file of any type</description>
    </application-inputType>

    <application-outputType>
        <name>image.jpg</name>
        <type>jpg</type>
        <description>painted image of the same type as input type</description>
    </application-outputType>

</application>

Note that you can add as many inputs/outputs as necessary, according to your application.

Every type of application provided by the Job service must be given a unique name. The ensure they are unique, a URI is used. Note that although these names look like web page addresses, they may not necessarily point to web pages if treated as URL. They are simply unique strings.