spacer

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

home / experts / xml / column5

Weaving the Web of News

Oracle Report Developer (IL)
Next Step Systems
US-IL-Elk Grove Village

Justtechjobs.com Post A Job | Post A Resume
Developer News
ActiveState Debuts Open Source Business Suite
Salesforce Offers Visual App Builder
Codesion Steps Out From CVS's Shadow


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


The Network for Technology Professionals

Search:

About Internet.com

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

webref The latest from WebReference.com Browse >
Use Web Caching to Make Your Web Site Faster · Creating an Online Shopping Cart Mechanism in PHP · Log JavaScript Errors Using an AJAX-driven Web Service
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Configuring Granular Settings for a Database Level Audit · The Perils of a Web 2.0 Transition on Your Business Processes · Facebook Redesigns Site —Again — Nears 400M Mark

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