Try It Out Yet Another Syntax 1. Open your Web browser at the W3C RDF Validator: http://www.w3.org/RDF/Validator. 2. Type the following into the edit box: 3. Under Display Result Options, select Triples and Graph. 4. Click the Parse RDF button. The results page should look similar to Figure 20-11. Figure 20-11 How It Works As you may have guessed, the XML listing is simply one more possible way of expressing those two statements in RDF/XML. If you take the earlier examples and surround them with the tags and namespace declarations you will find that they all mean the same thing. Once more this chapter has drifted a little away from modeling as such, but there s a good reason for that. Because RSS 1.0 is defined as RDF/XML, it inherits the modeling language of RDF. That is to say, RSS 1.0 has a well-defined data model in RDF through which the entities and relationships found in a feed are expressed. Apart of this model is inherent in the RDF/XML syntax, it unambiguously states some of the basic information: what is an entity, what is its type, what are the relationships. The type (class) and relationship names are all given as URIs using XML namespaces, so for example the element found in an RSS 1.0 feed is actually the property with the URI http://purl.org/rss/1.0/title. Most RDF vocabularies, RSS 1.0 included, are defined as more than just named classes and properties. This extra information pertaining to the model is provided in another set of RDF statements, usually available in an RDF/XML document on the Web at or near the namespace URI. This describes the classes and properties of a specific vocabulary generally using terms from another vocabulary, that of the RDF Schema. RSS 1.0 RDF Schema Schemas in RDF have a slightly different meaning and intention than those of XML. XML Schemas describe the way things should appear in the code, what can go where, and some more meaningful items such as the kind of data (type) that can appear. RDF Schemas on the other hand provide a way of talking about RDF data, by defining vocabularies. Where an XML Schema might say book elements contain author elements which each contain a person element, an RDF Schema might say an author of a book is a person. 268 Chapter 20
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.
This entry was posted
on Thursday, August 30th, 2007 at 10:13 am 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.