Skip to main content

How do I point to the files I'm describing with CMDI? How does the resources section work?

Submitted by Dieter Van Uytvanck on

Ok, so how can you refer to an external file from a metadata description? That is where the Resources section is for.

In the example CMDI file, the resources section looks like:

      <!-- List of external resource files and (CMDI) metadata files -->
         <ResourceProxy id="a_photo">
            <ResourceType mimetype="image/jpeg">Resource</ResourceType>
            <!-- note that both a normal URL and a handle Persistent Identifier can be used for the ResourceRef -->
         <ResourceProxy id="a_text">
            <ResourceType mimetype="text/plain">Resource</ResourceType>


As you can see, for each link to an external resource a ResourceProxy (= file) is added to the ResourceProxyList (= file list). For each ResourceProxy you need to specify the ResourceType:

With an optional (but very useful) mimetype attribute you can (surprise!) indicate the file's mime type. The ResourceRef contains either a normal URL or a handle PID.