Chapter 2 An Introduction To XML Applications: Listing 2-11: An RDF Description of The Cafe Con Leche Home

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

3236-7 ch02.F.

qc

6/29/99

1:03 PM

Page 41

Chapter 2 An Introduction to XML Applications

An RDF vocabulary defines a set of elements and their permitted content thats
appropriate for meta-data in a given domain. RDF enables communities of interest to
standardize their vocabularies and share those vocabularies with others who may
extend them. For example, the Dublin Core is an RDF vocabulary specifically designed
for meta-data about Web pages. Educoms Instructional Metadata System (IMS) builds
on the Dublin Core by adding additional elements that are useful when describing
school-related content like learning level, educational objectives, and price.
Of course, although RDF can be used for print-publishing systems, video-store
catalogs, automated software updates, and much more, its likely to be adopted
first for embedding meta-data in Web pages. RDF has the potential to synchronize
the current hodge-podge of <META> tags used for site maps, content rating,
automated indexing, and digital libraries into a unified collection that all of these
tools understand. Once RDF meta-data becomes a standard part of Web pages,
search engines will be able to return more focused, useful results. Intelligent
agents can more easily traverse the Web to find information you want or conduct
business for you. The Web can go from its current state as an unordered sea of
information to a structured, searchable, understandable store of data.
As the name implies, RDF describes resources. A resource is anything that can be
addressed with a URI. The description of a resource is composed of a number of
properties. Each property has a type and a value. For example, <DC:Format>HTML
</DC:Format> has the type DC:Format and the value HTML. Values may be text
strings, numbers, dates, and so forth, or they may be other resources. These other
resources can have their own descriptions in RDF. For example, the code in Listing
2-11 uses the Dublin Core vocabulary to describe the Cafe con Leche Web site.

Listing 2-11: An RDF description of the Cafe con Leche home


page using the Dublin Core vocabulary
<RDF:RDF
xmlns:RDF=http://www.w3.org/1999/02/22-rdf-syntax-ns#
xmlns:DC=http://purl.org/DC/>
<RDF:Description about=http://metalab.unc.edu/xml/>
<DC:Creator>Elliotte Rusty Harold</DC:Creator>
<DC:Language>en</DC:Language>
<DC:Format>HTML</DC:Format>
<DC:Date>1999-08-19</DC:date>
<DC:Type>home page</DC:Type>
<DC:Title>Cafe con Leche</DC:Title>
</RDF:Description>
</RDF:RDF>

41

You might also like