Database Reference
In-Depth Information
Web pages to be marked up with RDF, making it easier to include structured data
into preexisting Web content publishing workflows.
1 <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML+RDFa 1.0//EN”
2 “ http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd” >
3 <html xmlns = “ http://www.w3.org/1999/xhtml”
4 xmlns:rdf = “ http://www.w3.org/1999/02/22-rdf-syntax-ns#”
5 xmlns:mereaMaps = “ http://Mereamaps.gov.me/topo/”
6 xmlns:dc = “ http://purl.org/dc/elements/1.1/” >
7
8 <head>
9 <meta http-equiv = “Content-Type” content = “application/xhtml+xml;
10 charset = UTF-8”/>
11 <meta property = “dc:creator” content = “CodeMonkey1”/>
12 <title>The Isis Tavern Homepage </title>
13 </head>
14
15 <body>
16 <div about = “mereaMaps:0012” typeof = “mereaMaps:Pub”>
17 <span property = “mereaMaps:has_name” content = “The Isis
Tavern”/>
18 <span property = “mereaMaps:has_longitude” content =
“-1.241712”/>
19 <span property = “mereaMaps:has_latitude” content = “51.730031”/>
20 <h1> Welcome to the Isis Tavern!</h1>
21 </div>
22 </body>
23 </html>
This is an example of an HTML document containing RDFa. This could be a
Web page for the Isis Tavern, which contains the following embedded information:
a. CodeMonkey1 created this page (line 11).
b. There is content about a Merea Maps resource 0012, which is a Pub (line 16).
c. Merea Maps resource 0012 has the name “The Isis Tavern” (line 17).
d. Merea Maps resource 0012 has the longitude -1.241712 and latitude
51.730031 (lines 18 and 19, respectively).
W3C's markup validation service 5 can check that your RDFa is correctly format-
ted. Just as few people these days author HTML directly, it is unlikely that you would
author RDFa by hand. There are a few Web editors that output HTML+RDFa, such
as Topbraid Composer, an XHTML+RDFa parent theme for Wordpress 2.7, 6 and an
RDFa documents extension for Dreamweaver. 7
Search WWH ::




Custom Search