resource

To define supplemental information related to an <info> object, use the <resource> entity.

resource entity sub-elements

Element name Optionality Type CAP and Google notes and requirements
<resourceDesc> REQUIRED string

The value of the <resourceDesc> element is text that describes the type and content of the resource file. Examples are map and photo.

<mimeType> REQUIRED string

The value of the <mimeType> element is an identifier of the MIME media type and subtype as described in RFC 2046.

<size> OPTIONAL float

The value of the <size> element is an integer that indicates the size of the resource file in bytes.

<uri> OPTIONAL string

The value of the <uri> element is a full absolute URI to the resource file or a relative URI that names the content of a <defeUri> element.

<defeUri> CONDITIONAL string

The value of the <defeUri> element is the Base64 encoded data content of the resource file. If you can't use a URI to retrieve a resource, then you can use the <defeUri> element with or instead of the <uri> element in messages like broadcasts that are transmitted over one-way data links.

<digest> OPTIONAL string

The value of the <digest> element is code that represents the digital digest computed from the resource file. To calculate the <digest> element value, use the Secure Hash Algorithm (SHA-1) described in FIPS 180-2.

Example

<resource>
    <resourceDesc>Image file (GIF)</resourceDesc>
    <mimeType>image/gif</mimeType>
    <uri>http://www.dhs.gov/dhspublic/getAdvisoryImage</uri>
</resource>

<resource>
    <resourceDesc>Peta Intensitas Guncangan</resourceDesc>
    <mimeType>image/jpeg</mimeType>
    <uri>https://bmkg-content-inatews.storage.googleapis.com/20230410074420.mmi.jpg</uri>
</resource>