XHTML+RDFa: Difference between revisions
Since August 22 2013, XHTML+RDFa 1.1 is a Recommendation |
m Link to documentation was dead - replaced with new location at http://academia.edu |
||
Line 33: | Line 33: | ||
Version 1.1 of the language is a superset of [[XHTML 1.1]], integrating the attributes according to [[RDFa]] Core 1.1. In other words, it is an [[RDFa]] support through [[XHTML Modularization]]. |
Version 1.1 of the language is a superset of [[XHTML 1.1]], integrating the attributes according to [[RDFa]] Core 1.1. In other words, it is an [[RDFa]] support through [[XHTML Modularization]]. |
||
[[RDFa]] in [[XHTML]] became a [[World Wide Web Consortium]] (W3C) [[W3C recommendation|Recommendation]] on October 14, 2008<ref name="timelinehistory">{{cite web|url=http://www. |
[[RDFa]] in [[XHTML]] version 1.0 became a [[World Wide Web Consortium]] (W3C) [[W3C recommendation|Recommendation]] on October 14, 2008<ref name="timelinehistory">{{cite web|url=http://www.academia.edu/2986178/XML_and_Semantic_Web_W3C_Standards_Timeline |title=XML and Semantic Web W3C Standards Timeline |
||
}}</ref> |
}}</ref> |
||
. |
. |
Revision as of 00:00, 30 October 2013
Filename extension |
.xhtml, .xht, .xml, .html, .htm |
---|---|
Internet media type |
application/xhtml+xml |
Developed by | World Wide Web Consortium |
Initial release | 14 October 2008 |
Latest release | 1.1 3 August 2010 |
Type of format | Host language |
Extended from | XML, HTML |
Standard | 1.0 (Recommendation), 1.1 (Recommendation) |
HTML |
---|
Comparisons |
XHTML+RDFa (Extensible Hypertext Markup Language + Resource Description Framework in attributes) is an extended version of the XHTML markup language for supporting RDF through a collection of attributes and processing rules in the form of well-formed XML documents. Web standardistas consider this combination as one of the most advanced markup codes available today.[1] XHTML+RDFa is one of the techniques used to develop Semantic Web content by embedding rich semantic markup. Version 1.1 of the language is a superset of XHTML 1.1, integrating the attributes according to RDFa Core 1.1. In other words, it is an RDFa support through XHTML Modularization.
RDFa in XHTML version 1.0 became a World Wide Web Consortium (W3C) Recommendation on October 14, 2008[2] .
Overview
Conventional Web documents contain large amounts of structured data that can be rendered in web browsers. This approach works fine for publishing purposes, however, a large amount of data stored in Web documents cannot be processed this way. XHTML+RDFa can provide machine-readable metadata within the markup code which makes additional user functionalities available. Most important of all, actions can be performed automatically that enables up-to-date publishing, structured search and sharing.[3] RDFa can serve as a bridge between the "human and data webs".[4] The potential in web documents enriched with RDFa is increasing since major search engines begin to process them while indexing. Yahoo indexes RDFa and microformats since 2008 and Google since 2009.[5] The RDFa attribute specifications make it possible to describe structured data in any markup language. The RDFa markup in XHTML+RDFa reuses the markup code, thus eliminating the need for unnecessary duplications. XHTML+RDFa is not widely distributed yet, probably due to the lack of support in authoring tools and content management systems.[6] However, there is good tendency. Drupal 7, for example, supports RDFa.[7] Since the “a” in RDFa stands for attributes, it is straightforward to use CSS selectors to style the code.[8]
Document Type Definition
The combination of XHTML 1.1 and RDFa modules is claimed to be an example markup language. The Document Type Definition is published at the W3C website.[9]
According to the document type declaration, the identifiers of an XHTML+RDFa document should look like the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
In order to conform XML syntax, this document type declaration can only appear after the optional XML declaration, and before the document body, i.e.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
"http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html version="XHTML+RDFa 1.0" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>XHTML+RDFa document example</title>
...
</head>
<body>
...
</body>
</html>
Authoring
The RDFa metadata is embedded as an XHTML attribute of the document element, generally the XHTML tag. The annotation syntax provided by RDFa can be used to express RDF statements in XHTML documents.[10]
Validation
XHTML+RDFa documents can be validated individually online at the W3C Markup Validation Service or together with CSS and RSS at W3C Unicorn. The validity of XHTML+RDFa documents can be indicated by the XHTML+RDFa conformance icons of W3C.
Examples
XHTML syntax, additional namespaces and semantic markup.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html version="XHTML+RDFa 1.0" xmlns="http://www.w3.org/1999/xhtml"
xmlns:contact="http://www.w3.org/2000/10/swap/pim/contact#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xml:lang="en">
<head>
<title>XHTML+RDFa example</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="content-language" content="en" />
<meta name="robots" content="index, follow" />
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
<link rel="schema.DCTERMS" href="http://purl.org/dc/terms/" />
<link rel="alternate" type="application/rss+xml" title="Feed channel of XHTML+RDFa example page" href="http://www.example.com/rss.xml" />
<meta name="DC.title" content="XHTML+RDFa example" />
<meta name="DC.subject" content="XHTML+RDFa, semantic web" />
<meta name="DC.description" content="Example for Extensible Hypertext Markup Language + Resource Description Framework – in – attributes." />
<meta name="DC.format" content="application/xhtml+xml" />
<meta name="DC.language" content="en" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="main.css" title="main styles" />
<link rel="foaf:primaryTopic" type="application/rdf+xml" title="FOAF" href="http://www.example.com/metadata/foaf.rdf" />
<script type="text/javascript" src="js/click.js"></script>
</head>
<body>
<div class="content">
<p>
<span property="foaf:name">Jerry Smith</span><br />
<i>Senior developer, QA</i><br />
<a title="More about me" rel="rdfs:seeAlso" href="about.htm">More...</a>
</p>
<p rel="contact:address">
93 Rose Ave <br />
<a property="contact:city" rel="rdfs:seeAlso" title="Adelaide on Wikipedia" resource="http://dbpedia.org/resource/Adelaide"
href="http://en.wikipedia.org/wiki/Adelaide">Adelaide</a>
</p>
<p>
<span rel="foaf:phone" resource="tel:+6112345678">+61 12/345-678</span>
</p>
</div>
</body>
</html>
See also
References
- ^ "Dr. Leslie Sikos IT professional - Web standardization, accessibility, multimedia". Retrieved 2010-09-20.
- ^ "XML and Semantic Web W3C Standards Timeline".
- ^ Jeffrey T. Pollock (2009). Semantic Web for Dummies. Wisley Publishing, Inc. p. 172. ISBN 978-0-470-39679-7.
- ^ Jeffrey Zeldman, Ethan Marcotte (2009). Designing with Web standards (third ed.). New Riders. p. 76. ISBN 978-0-321-61695-1.
- ^ Mark Birbeck (2009). "Introduction to RDFa". Retrieved 2010-09-07.
- ^ Mark Watson (2009). Scripting Intelligence: Web 3.0 Information, Gathering and Processing. Apress, Inc. p. 347. ISBN 978-1-4302-2351-1.
- ^ Ivan Herman, Stéphane Corlosquet, Lin Clark (2010). "Combine the Web of Data and the Web of Documents (RDFa and Drupal 7)". Retrieved 2010-09-07.
{{cite web}}
: CS1 maint: multiple names: authors list (link) - ^ Joseph R. Lewis, Meitar Moscovitz (2009). AdvancED CSS. Friendsof. p. 224. ISBN 978-1-4302-1932-3.
- ^ "XHTML 1.1 + RDFa DTD". World Wide Web Consortium.
- ^ Boualem Benatallah, Fabio Casati, Gerti Kappel, ed. (2010). Proceedings of ICWE 2010, Web Engineering: 10th International Conference. Springer. p. 255. ISBN 978-3-642-13910-9.
{{cite book}}
: CS1 maint: multiple names: editors list (link)