spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / xml / column5

Weaving the Web of News

Technical Lead
Thomson Reuters (Markets) LLC
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?


Open Content Syndication (OCS)

With the proliferation of channel definitions arose the need for a format-transcending listing of syndications. From the InternetAlchemy.org Web site: "The Open Content Directory Format is intended to provide a concise, machine readable-listing of a set of syndicated channels. The directory format is capable of supporting multiple sites, each with multiple channels. Each channel can have muliple formats such as RSS (Rich Site Summary) versions 0.90 or 0.91, Plain Text, Avantgo, WML or Scripting News format format as well as separate publishing schedules or languages."

The format uses RDF for expressing the relationship between items, and Dublin Core (DC), a set of well-defined subjects such as title and creator to describe attributes of channels. Note that this format describes a directory of channels rather than a single channel, so this example is not equivalent to the above, but compliments them:

<?xml version="1.0"?>

<rdf:RDF
  xmlns:rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:ocs = "http://alchemy.openjava.org/ocs/directory#"
  xmlns:dc  = "http://purl.org/metadata/dublin_core#">

  <!-- This is information about this channel listing -->
  <!-- The about attribute points to the directory file,
   usually the same file as the one being parsed -->
  <rdf:description about="http://www.webref.com/xml/column5/ocs.rdf">        
    <!-- This section contains information about the channel directory listing 
-->
    <dc:title>Michael's XML Channel Directory</dc:title>
    <dc:creator>Michael Classen(mailto:mclassen@internet.com)/dc:creator>
    <dc:description>This is a list of channels about XML</dc:description>
  
    <!-- This is the first channel available -->
    <rdf:description about="http://www.exploringxml.com">        
      <!-- Information about the channel -->
      <dc:title>eXploringXML Channel</dc:title>
      <dc:creator>Michael Classen (mailto:mclassen@internet.com)/dc:creator>
      <dc:description>This is a channel about eXploringXML at WebReference: 
Free tutorials, examples, and tools for XML</dc:description>
      <dc:subject>Technology, XML, Web, tutorials, examples, 
tools</dc:subject>
      <ocs:image>http://www.webref.com/xml/art/logo.gif</ocs:image>
    
      <!-- This is the first format for this channel -->
      <!-- Information about the RSS version -->
      <rdf:description about="http://www.webref.com/xml/column5/ocs.rss">
        <dc:language>en</dc:language>
        <ocs:format>http://my.netscape.com/rdf/simple/0.9/</ocs:format>
        <ocs:updatePeriod>hourly</ocs:updatePeriod>
        <ocs:updateFrequency>2</ocs:updateFrequency>
        <ocs:updateBase>2000-01-25T00:00</ocs:updateBase>
      </rdf:description>
  
      <!-- This is the second format for this channel -->
      <!-- Information about a plain text version -->
      <rdf:description about="http://alchemy.openjava.org/plain.txt">
        <dc:language>en</dc:language>
        <ocs:contentType>text/plain</ocs:contentType>
        <ocs:updatePeriod>daily</ocs:updatePeriod>
        <ocs:updateFrequency>1</ocs:updateFrequency>
        <ocs:updateBase>2000-01-25T00:00</ocs:updateBase>
      </rdf:description>
    
    </rdf:description>        
  
    <!-- This is the second channel available -->
    <rdf:description about="http://xml.org/channel">        
     ...
    </rdf:description>        
  </rdf:description>        
</rdf:RDF>
Here are some sites that use OCS for their channel directory:

next page

http://www.internet.com

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business

Produced by Michael Claßen
All Rights Reserved. Legal Notices.

URL: http://www.webreference.com/xml/column5/3.html
Created: Jan. 30, 2000
Revised: Jan. 30, 2000