The same information could be expressed as follows: The Title This isn t RSS 1.0, as there are restrictions on that syntax, but like the RSS version it is valid RDF/XML, and the interpretation of RSS comes through RDF/XML. The two different versions meaning the same thing only really make sense when you approach RDF/XML from the point of view of the RDF model. Both of the previous snippets are XML serializations of a graph structure that looks like Figure 20-10. Figure 20-10 You can express this information in a form that can be serialized by treating each relationship as a threepart statement, the legendary RDF triple: subject –property–> object So you can break down the graph into individual statements like this: http://example.org –rdf:type–> rss:item http://example.org –rss:title–> The Title When it comes to expressing this in XML you can do it directly, at the expense of a lot of verbosity: The Title This is very similar to the previous version that uses rdf:Description as a placeholder element for the object of the triples, except in that version, the same rdf:Description is reused. Where the resource being described has a known type, RDF/XML provides another form of syntax that is convenient for a lot of data. The rdf:Description placeholder is replaced by the type of the resource being described, so in the first example rss:item is used instead of rdf:Description (the rss: prefix can be dropped when RSS is specified as the default namespace). http://example.org/here rss:item “The Title” rdf:type rss:title 267 Modeling Feed Data
Visit our web design programs services for an affordable and reliable webhost to suit all your needs.
This entry was posted
on Wednesday, August 29th, 2007 at 12:11 pm and is filed under j2ee.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.