Migration 1.1 to 1.2

From cbwiki.net
Revision as of 16:16, 1 February 2011 by Mike Eltsufin-FRBNY (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The substantial changes from RSS-CB 1.1 to 1.2 bring the specification into conformance with RDF. There are two basic changes:

  1. For cb: elements with subelements, the addition of parseType="Resource" to the elements and the inclusion of an rdf:type element identifying an rdf:resource. <cb:event>, for example, is now <cb:event rdf:parseType="Resource">, and the first child element of it is <rdf:type rdf:resource="http://www.cbwiki.net/wiki/index.php/RSS-CB_1.2_RDF_Schema#Event"/>. This change applies throughout.
  2. For cb:elements with both text children and attributes, the transformation of both text children and attributes into subelements, and the creation of a new parent element. <cb:value decimals="4">1.1240</cb:value>, for example, is now
<cb:observation rdf:parseType="Resource">
   <rdf:type rdf:resource="http://www.cbwiki.net/wiki/index.php/RSS-CB_1.2_RDF_Schema#Observation"/>

This change applies to both value (now observation) and observationPeriod in all statistical elements (exchangeRate, interestRate, transaction, and otherStatistic), and to baseCurrency in exchangeRate.

One other change was made for conformity to RDF, the elimination of the attribute 'cb:type' from cb:person.

There are also a number of minor changes.