HTML and CSS Reference
In-Depth Information
The xsi:type attribute of the XML element should be applied for implementing encoding schemes. Element
refinements and encoding schemes use the names specified by the DCMI Metadata Terms. The xml:lang attribute
should be applied to provide the language of Qualified Dublin Core values in XML [113]. Listing 7-47 shows a
complex example.
Listing 7-47. Dublin Core in XML
<?xml version="1.0"?>
<metadata
xmlns="http://example.org/myapp/"
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance "
xsi:schemaLocation="http://example.com/xmlapp/ http://example.com/schemata/schema.xsd"
xmlns:dc=" http://purl.org/dc/elements/1.1/ " >
<dc:title>
DC in XML sample document
</dc:title>
<dc:description>
The description of the XML application.
</dc:description>
<dc:publisher>
John Smith
</dc:publisher>
<dc:identifier>
http://www.example.com
</dc:identifier>
</metadata>
Dublin Core Description Sets (DC-DS-XML) can also be expressed in XML [114]. These sets consist of one or
more descriptions containing zero or one described resource URI, and one or more statements. The statements
contain one property URI and one value surrogate. Depending on the type of the value surrogate, it can be one value
string (in case of literal value surrogates) or zero or one value URIs, zero or one vocabulary encoding scheme URI, and
zero or more value strings (in case of nonliteral value surrogates). A value string can be a plain value string or a typed
value string. The first one can optionally be associated with a value string language, while the latter one has a syntax
encoding scheme URI. Nonliteral values can also be described by other descriptions.
A description set element has an expanded name with the pair of the XML namespace name
http://purl.org/dc/xmlns/2008/09/01/dc-ds-xml/ and the local name descriptionSet (Listing 7-48).
Listing 7-48. A Description Set Element
<?xml version="1.0" encoding="UTF-8" ?>
<dcds:descriptionSet
xmlns:dcds=" http://purl.org/dc/xmlns/2008/09/01/dc-ds-xml/ " >
<dcds:description>
<dcds:statement
dcds:propertyURI=" http://purl.org/dc/terms/title " >
<dcds:literalValueString>
Smith and Sons Inc Home Page
</dcds:literalValueString>
</dcds:statement>
</dcds:description>
</dcds:descriptionSet>
Search WWH ::




Custom Search