FW: Metadata source example

Dear Chris,
I was discussing methods to indicate the original metadata format (or source format) with Werner. We suggest adding the following example:


(add to example in 3.1.1 MR methods to show how to use metadata sources)

     <p id='example-construct'>Example of creating an object implementing this interface through the constructor, specifying different metadata sources:</p>
     <pre class="example sh_javascript">
      metadataSources = new MetadataSource[2];
      metadataSources[0] = new MetadataSource("http://www.w3.org/2008/WebVideo/Annotations/wiki/MAWG-Stockholm-20090626.xml","dc");
      metadataSources[1] = new MetadataSource("http://www.w3.org/2008/WebVideo/Annotations/wiki/images/9/93/MAWG-Stockholm-20090626.JPG","exif");
      mediaResource = new MediaResource("http://www.w3.org/2008/WebVideo/Annotations/wiki/images/9/93/MAWG-Stockholm-20090626.JPG",metadataSources);
      //mediaResource provides access to the metadata of the media resource
      mediaResource.getMediaProperty("title", title);
      ...
      </pre>

Received on Saturday, 6 November 2010 09:09:02 UTC