RDFa: Difference between revisions
m (using an external editor) |
No edit summary |
||
(7 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
== Definition == | == Definition == | ||
'''RDFa''' is a syntax for expressing this structured data in XHTML. The rendered, hypertext data of XHTML is reused by the RDFa markup, so that publishers don't repeat themselves. The underlying abstract representation is RDF, which lets publishers build their own vocabulary, extend others, and evolve their vocabulary with maximal interoperability over time. The expressed structure is closely tied to the data, so that rendered data can be copied and pasted along with its relevant structure. ([http://www.w3.org/TR/xhtml-rdfa-primer/ RDFa Primer 1.0 Embedding RDF in XHTML], retrieved | '''RDFa''' is a syntax for expressing this structured data in XHTML. The rendered, hypertext data of XHTML is reused by the RDFa markup, so that publishers don't repeat themselves. The underlying abstract representation is [[RDF]], which lets publishers build their own vocabulary, extend others, and evolve their vocabulary with maximal interoperability over time. The expressed structure is closely tied to the data, so that rendered data can be copied and pasted along with its relevant structure. ([http://www.w3.org/TR/xhtml-rdfa-primer/ RDFa Primer 1.0 Embedding RDF in XHTML], retrieved 15:17, 23 April 2007 (MEST)). | ||
Current web pages, written in HTML, contain significant inherent structured data. When publishers can express this data more completely, and when tools can read it, a new world of user functionality becomes available, letting users transfer structured data between applications and web sites. An event on a web page can be directly imported into a user's desktop calendar. A license on a document can be detected so that the user is informed of his rights automatically. A photo's creator, camera setting information, resolution, and topic can be published as easily as the original photo itself, enabling structured search and sharing. ([http://www.w3.org/2006/07/SWD/RDFa/syntax/ RDFa Syntax], retrieved | Current web pages, written in HTML, contain significant inherent structured data. When publishers can express this data more completely, and when tools can read it, a new world of user functionality becomes available, letting users transfer structured data between applications and web sites. An event on a web page can be directly imported into a user's desktop calendar. A license on a document can be detected so that the user is informed of his rights automatically. A photo's creator, camera setting information, resolution, and topic can be published as easily as the original photo itself, enabling structured search and sharing. ([http://www.w3.org/2006/07/SWD/RDFa/syntax/ RDFa Syntax], retrieved 15:17, 23 April 2007 (MEST)) | ||
RDFa is | RDFa is part of the [[semantic web]] initiative. | ||
As an alternative, see other [[microformat]]s and in particular "[[semantic XHTML]]". | |||
As an alternative, see [[ | |||
== Example == | == Example == | ||
This short example taken from the Primer shows that RDF data can be embedded within "rel" and "property" attributes. | This short example taken from the Primer shows that RDF data can be embedded within '''"rel"''' and '''"property"''' attributes. | ||
; The clueless HTML version | ; The clueless HTML version | ||
<html> | <html> | ||
<head><title>Jo's Blog</title></head> | <head><title>Jo's Blog</title></head> | ||
<body> | <body> | ||
Line 37: | Line 35: | ||
... | ... | ||
</body> | </body> | ||
</html> | </html> | ||
; The RDFa version | ; The RDFa version | ||
As you can see it refers to two well known [[namespace]]s, i.e. ICAL and VCARD. | As you can see it refers to two well known [[XML namespace]]s, i.e. ICAL and VCARD. | ||
<html xmlns:cal="http://www.w3.org/2002/12/cal/ical#" | |||
xmlns:contact="http://www.w3.org/2001/vcard-rdf/3.0#" | xmlns:contact="http://www.w3.org/2001/vcard-rdf/3.0#"> | ||
... | ... | ||
<p class="cal:Vevent" about="#xtech_conference_talk"> | |||
I'm giving | I'm giving | ||
<span property="cal:summary"> | |||
a talk at the XTech Conference about web widgets | a talk at the XTech Conference about web widgets | ||
</span>, | |||
on | on | ||
<span property="cal:dtstart" content="20070508T1000+0200"> | |||
May 8th at 10am | May 8th at 10am | ||
</span>. | |||
</p> | |||
... | ... | ||
<p class="contactinfo" about="http://example.org/staff/jo"> | |||
My name is | My name is | ||
<span property="contact:fn"> | |||
Jo Smith | Jo Smith | ||
</span>. | |||
I'm a | I'm a | ||
<span property="contact:title"> | |||
distinguished web engineer | distinguished web engineer | ||
</span> | |||
at | at | ||
<a rel="contact:org" href="http://example.org"> | |||
Example.org | Example.org | ||
</a>. | |||
You can contact me | You can contact me | ||
<a rel="contact:email" href="mailto:jo@example.org"> | |||
via email | via email | ||
</a>. | |||
</p> | |||
... | |||
Line 86: | Line 84: | ||
cal:summary "a talk at the XTech Conference about web widgets"^^XMLLiteral; cal:dtstart "20070508T1000+0200" . | cal:summary "a talk at the XTech Conference about web widgets"^^XMLLiteral; cal:dtstart "20070508T1000+0200" . | ||
== | == Tools == | ||
* See also: [http://rdfa.info/rdfa-implementations/ RDFa Implementations] (at rdfa.info). Lists various libraries and filters. | |||
=== On line === | |||
* [http://dataviewer.zitgist.com/ Zitgist dataviewer] (a user friendly Semantic Web data viewer). Handles RDF and XHTML+RDFa. | |||
=== Browser extensions === | |||
* [http://www.w3.org/2006/07/SWD/RDFa/impl/js/ RDFa Javascript implementation] (you can install a bookmarklet to activate on given pages). Puts a red box around places with RDFa triples... | |||
* [https://addons.mozilla.org/en-US/firefox/addon/4106 Operator]. (Firefox extension) Quote: "Operator leverages microformats and other semantic data that are already available on many web pages to provide new ways to interact with web services." | |||
=== Filters === | |||
* [http://ns.inria.fr/grddl/rdfa/ RDFA2XSLT] (RDFa to RDF+XML filter) | |||
== Links == | |||
=== Standards === | |||
; Standards | ; Standards | ||
Line 96: | Line 115: | ||
* [http://www.w3.org/2001/sw/BestPractices/ Semantic Web Best Practices and Deployment Working Group] | * [http://www.w3.org/2001/sw/BestPractices/ Semantic Web Best Practices and Deployment Working Group] | ||
[[ | === Introductions === | ||
* [http://en.wikipedia.org/wiki/RDFa RDFa] (Wikipedia) | |||
* [http://www.snee.com/bobdc.blog/2008/02/the_future_of_rdfa.html The future of RDFa], ''bobdc.blog'', by Bob Ducharme, Feb 2008. | |||
* [http://ercim-news.ercim.org/content/view/334/536/ Bridging the Clickable and Semantic Webs with RDFa], ERCIM News, by Ben Adida, 2008 ? | |||
* [http://www.xml.com/lpt/a/1691 Introducing RDFa], By Bob DuCharme, XML.com, February 14, 2007 | |||
* [http://skimstone.x-port.net/introduction-to-rdfa http://skimstone.x-port.net/introduction-to-rdfa] | |||
* [http://esw.w3.org/topic/RDFa RDFa] (ESW Wiki at W3C). | |||
* [http://www.slideshare.net/fabien_gandon/rdfa-in-a-nutshell-v1 RDFa in a nutshell] by fabien gandon, INRIA. | |||
=== Links collections === | |||
* [http://rdfa.info/ RDFa.info] | |||
[[Category: Standards]] | [[Category: Standards]] | ||
[[Category: XML]] | [[Category: XML]][[Category:web standards]] |
Latest revision as of 09:48, 31 July 2009
Definition
RDFa is a syntax for expressing this structured data in XHTML. The rendered, hypertext data of XHTML is reused by the RDFa markup, so that publishers don't repeat themselves. The underlying abstract representation is RDF, which lets publishers build their own vocabulary, extend others, and evolve their vocabulary with maximal interoperability over time. The expressed structure is closely tied to the data, so that rendered data can be copied and pasted along with its relevant structure. (RDFa Primer 1.0 Embedding RDF in XHTML, retrieved 15:17, 23 April 2007 (MEST)).
Current web pages, written in HTML, contain significant inherent structured data. When publishers can express this data more completely, and when tools can read it, a new world of user functionality becomes available, letting users transfer structured data between applications and web sites. An event on a web page can be directly imported into a user's desktop calendar. A license on a document can be detected so that the user is informed of his rights automatically. A photo's creator, camera setting information, resolution, and topic can be published as easily as the original photo itself, enabling structured search and sharing. (RDFa Syntax, retrieved 15:17, 23 April 2007 (MEST))
RDFa is part of the semantic web initiative. As an alternative, see other microformats and in particular "semantic XHTML".
Example
This short example taken from the Primer shows that RDF data can be embedded within "rel" and "property" attributes.
- The clueless HTML version
<html> <head><title>Jo's Blog</title></head> <body> ... <p> I'm giving a talk at the XTech Conference about web widgets, on May 8th at 10am. </p> ... <p class="contactinfo"> My name is Jo Smith. I'm a distinguished web engineer at <a href="http://example.org"> Example.org </a>. You can contact me <a href="mailto:jo@example.org"> via email </a>. </p> ... </body> </html>
- The RDFa version
As you can see it refers to two well known XML namespaces, i.e. ICAL and VCARD.
<html xmlns:cal="http://www.w3.org/2002/12/cal/ical#" xmlns:contact="http://www.w3.org/2001/vcard-rdf/3.0#"> ... <p class="cal:Vevent" about="#xtech_conference_talk"> I'm giving <span property="cal:summary"> a talk at the XTech Conference about web widgets </span>, on <span property="cal:dtstart" content="20070508T1000+0200"> May 8th at 10am </span>. </p> ... <p class="contactinfo" about="http://example.org/staff/jo"> My name is <span property="contact:fn"> Jo Smith </span>. I'm a <span property="contact:title"> distinguished web engineer </span> at <a rel="contact:org" href="http://example.org"> Example.org </a>. You can contact me <a rel="contact:email" href="mailto:jo@example.org"> via email </a>. </p> ...
- The extracted RDF triplet
A RDF parser now could extract for instance the following information from this file:
<http://jo-blog.example.org/blog/?p=123#xtech_conference_talk> rdf:type cal:Vevent; cal:summary "a talk at the XTech Conference about web widgets"^^XMLLiteral; cal:dtstart "20070508T1000+0200" .
Tools
- See also: RDFa Implementations (at rdfa.info). Lists various libraries and filters.
On line
- Zitgist dataviewer (a user friendly Semantic Web data viewer). Handles RDF and XHTML+RDFa.
Browser extensions
- RDFa Javascript implementation (you can install a bookmarklet to activate on given pages). Puts a red box around places with RDFa triples...
- Operator. (Firefox extension) Quote: "Operator leverages microformats and other semantic data that are already available on many web pages to provide new ways to interact with web services."
Filters
- RDFA2XSLT (RDFa to RDF+XML filter)
Links
Standards
- Standards
- Bodies (organizations)
Introductions
- RDFa (Wikipedia)
- The future of RDFa, bobdc.blog, by Bob Ducharme, Feb 2008.
- Bridging the Clickable and Semantic Webs with RDFa, ERCIM News, by Ben Adida, 2008 ?
- Introducing RDFa, By Bob DuCharme, XML.com, February 14, 2007
- RDFa (ESW Wiki at W3C).
- RDFa in a nutshell by fabien gandon, INRIA.