rNews 1.0: The Audio / Image / Video Object Classes

ImageObject
AudioObject
VideoObject
associatedArticle height
width
encodingFormat
transcript
duration
Figure 1: Attributes of the ImageObject, AudioObject, and VideoObject classes.

The ImageObject, VideoObject and AudioObject classes are the three distinct classes in the rNews data model that allow you to describe the attributes of images, video and audio objects, respectively. The following tables summarize these attributes.

 

ImageObject Attribute Summary
The following attributes are available for describing the relevant properties of images in rNews.

 

Attribute Type Definition
associatedArticle Article An Article associated with the ImageObject.
encodingFormat xsd:string | xsd:anyURI | owl:thing The encoding of the ImageObject. The value must be drawn from the IPTC NewsCodes for image formats available at http://cv.iptc.org/newscodes/format/
height xsd:integer Height of the ImageObject (in pixels).
width xsd:integer Width of the ImageObject (in pixels).
associatedMedia ImageObject | AudioObject | VideoObject An image, audio or video object associated with the ImageObject.

 

 

AudioObject Attribute Summary
The following attributes are available for describing the relevant properties of audio objects in rNews.

 

Attribute Type Definition
associatedArticle Article An Article associated with the AudioObject.
encodingFormat xsd:string | xsd:anyURI | owl:thing The encoding of the AudioObject. The value must be drawn from the IPTC NewsCodes for audio codecs available at http://cv.iptc.org/newscodes/audiocodec/
duration xsd:duration The duration of the AudioObject, expressed in ISO 8601 date format (http://en.wikipedia.org/wiki/ISO_8601).
transcript xsd:string | xsd:anyURI | owl:thing The transcript of the AudioObject.
associatedMedia ImageObject | AudioObject | VideoObject An image, audio or video object associated with the AudioObject.

 

 

VideoObject Attribute Summary
The following attributes are available for describing the relevant properties of video objects in rNews.

 

Attribute Type Definition
associatedArticle Article An article associated with the VideoObject.
encodingFormat xsd:string | xsd:anyURI | owl:thing The encoding of a VideoObject. The value must be drawn from the IPTC NewsCodes for video codecs available at http://cv.iptc.org/newscodes/videocodec/
duration xsd:duration The duration of the VideoObject, expressed in ISO 8601 date format (http://en.wikipedia.org/wiki/ISO_8601).
transcript xsd:string | xsd:anyURI | owl:thing The transcript of the VideoObject.
height xsd:integer Height of the VideoObject (in pixels).
width xsd:integer Width of the VideoObject (in pixels).
associatedMedia ImageObject | AudioObject | VideoObject An image, audio or video object associated with the VideoObject.

 

 

Applying the ImageObject, VideoObject and AudioObject Classes
Below is an RDF/Turtle representation of portions our sample article modeled using the attributes specified in both the NewsItem and ImageObject classes. Please note that we've borrowed certain metadata values from the original Times Article (such as the name of the image) to demonstrate the appropriate use of these attributes.
      @prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
      @prefix rnews: <http://iptc.org/std/rNews/2011-10-07#> .
      <http://dev.iptc.org/files/rNews-Sample-Story/libya_sample_reuters.jpg>
        a rnews:ImageObject ;
        rnews:description "Rebel fighters take cover during a shelling  near Ajdabiyah, Libya on Thursday." ;
        rnews:sourceOrganization <http://reuters.com> ;
        rnews:copyrightHolder <http://reuters.com> ;
        rnews:encodingFormat <http://cv.iptc.org/newscodes/format/JPEG_Baseline> ;
        rnews:height "326" ;
        rnews:width "600"  . 

 

Want to comment on rNews: we invite you to post your comment to the rNews Forum.