RDFa

RDFa

RDFa (or Resource Description Framework - in - attributes) is a set of extensions to XHTML being proposed by W3C. RDFa uses attributes from XHTML's meta and link elements, and generalises them so that they are usable on all elements. This allows you to annotate XHTML markup with semantics. A simple mapping is defined so that RDF triples may be extracted.

The W3C RDF in XHTML Taskforce is also working on an implementation for non-XML versions of HTML. [ [http://esw.w3.org/topic/RDFa#head-18d04b06c3da5496a98bfccb31f0850dc54e057c RDFa - ESW Wiki ] ] The primary issue for the non-XML implementation is how to handle the lack of XML namespaces.

The RDFa community runs a wiki to host tools, examples, and tutorials. [http://rdfa.info/wiki RDFa community Wiki] ]

History

RDFa was first proposed by Mark Birbeck in the form of a W3C note entitled XHTML and RDF,cite web
url=http://www.w3.org/MarkUp/2004/02/xhtml-rdf.html |title=XHTML and RDF W3C Note 14 February 2004 |publisher=World Wide Web Consortium
date=2004-02-14 |accessdate=2007-12-27
] which was then presented to the Semantic Web Interest Group at the W3C's 2004 Technical Plenary.cite web |url=http://www.xml.com/pub/a/2004/03/03/deviant.html |title=Semantic Web Interest Group |publisher=XML.com |date=2004-03-03 |accessdate=2007-12-27] Later that year the work became part of the sixth public Working Draft of XHTML 2.0.cite web|url=http://www.w3.org/TR/2004/WD-xhtml2-20040722/mod-metaAttributes.html#s_metaAttributesmodule|title=XHTML 2.0 W3C Working Draft 22 July 2004, 19. XHTML Metainformation Attributes Module
publisher=World Wide Web Consortium|date=2004-07-22|accessdate=2007-10-06
] Although it is generally assumed that RDFa was originally intended only for XHTML 2, in fact the purpose of RDFa was always to provide a way to add a metadata to "any" XML language. Indeed, one of the earliest documents bearing the "RDF/A Syntax" name, has the sub-title "A collection of attributes for layering RDF on XML languages".cite web|url=http://www.formsplayer.com/notes/rdf-a.html|title=RDF/A Syntax: A collection of attributes for layering RDF on XML languages|date=2004-10-11|accessdate=2007-12-27] The document was written by Mark Birbeck and Steven Pemberton, and was made available for discussion on October 11, 2004. (Note that although the document bears the logo of a W3C note, it was never actually placed at a W3C URL.)

In April 2007 the XHTML 2 Working Group produced a module to support RDF annotation within the XHTML 1 family.cite web|url=http://www.w3.org/MarkUp/2007/ED-xhtml-rdfa-20070402|title=XHTML RDFa Modules, Modules to support RDF annotation of elements, W3C Editor's Draft 2 April 2007|publisher=World Wide Web Consortium|date=2007-04-02|accessdate=2007-10-06] As an example, it included an extended version of XHTML 1.1 dubbed XHTML+RDFa 1.0. Although described as not representing an intended direction in terms of a formal markup language from the W3C, limited use of the XHTML+RDFa 1.0 DTD did subsequently appear on the public Web.For examples of this, see: http://www.joost.com/09400ax http://weborganics.co.uk/files/hAudio-RDFa.xhtml]

October 2007 saw the first public Working Draft of a document entitled "RDFa in XHTML: Syntax and Processing".cite web|url=http://www.w3.org/TR/2007/WD-rdfa-syntax-20071018|title= RDFa in XHTML: Syntax and Processing, A collection of attributes and processing rules for extending XHTML to support RDF, W3C Working Draft 18 October 2007|publisher=World Wide Web Consortium
date=2007-10-18|accessdate=2007-10-20
] This superseded and expanded upon the April draft; it contained rules for creating an RDFa parser, as well as guidelines for organizations wishing to make practical use of the technology. It reached Proposed Recommendation status in September 2008.cite web |url=http://www.w3.org/TR/2008/PR-rdfa-syntax-20080904/ |title= RDFa in XHTML: Syntax and Processing, A collection of attributes and processing rules for extending XHTML to support RDF, W3C Proposed Recommendation 4 September 2008 |publisher=World Wide Web Consortium |date=2008-09-04 |accessdate=2008-09-05]

An additional "RDFa Primer" document was last updated in June 2008.cite web |url=http://www.w3.org/TR/2008/WD-xhtml-rdfa-primer-20080620 |title= RDFa Primer, Bridging the Human and Data Webs, W3C Working Draft 20 June 2008
publisher=World Wide Web Consortium |date=2008-06-20|accessdate=2008-06-20
] (The first public Working Draft dates back to March 2006.)

Essence

The essence of RDFa is to provide a set of attributes that can be used to carry metadata in an XML language (hence the 'a' in RDFa).

These attributes are:
* about – a URI or CURIE specifying the resource the metadata is about; in its absence it defaults to the current document
* rel and rev – specifying a relationship or reverse-relationship with another resource
* href, src and resource – specifying the partner resource
* property – specifying a property for the content of an element
* content – optional attribute that overrides the content of the element when using the property attribute
* datatype – optional attribute that specifies the datatype of text specified for use with the property attribute
* typeof – optional attribute that specifies the RDF type(s) of the subject (the resource that the metadata is about).

Benefits of RDFa

Five "principles of interoperable metadata" met by RDFa. [http://ben.adida.net/presentations/w3c-2006-04-06/w3c-2006-04-06.pdf]

* Publisher Independence - each site can use its own standards
* Data Reuse - data is not duplicated. You do not need separate XML and HTML sections for the same content.
* Self Containment - The HTML and the RDF are separated
* Schema Modularity - The attributes are reusable
* Evolvability - additional fields can be added and XML transforms can extract the semantics of the data from an XHTML file

Additionally RDFa may benefit web accessibility as more information is available to assistive technology. [http://www.standards-schmandards.com/2007/rdfa-and-accessibility/]

Examples of RDFa

The following is an example of adding Dublin Core metadata to an HTML file. Dublin Core data elements are data typically added to a book or article (title, author, subject etc.)

Wikinomics Don Tapscott 2006-10-01
However, the real power of RDFa is in how it allows you to mark up running text with semantic values:

In his latest book Wikinomics, Don Tapscott explains deep changes in technology, demographics and business. The book is due to be published in October 2006.

XHTML+RDFa 1.0 example

The following is an example of a complete XHTML+RDFa 1.0 document. It uses Dublin Core and FOAF, an ontology for describing people and their relationships with other people and things: John's Home Page

John's Home Page

My name is John D and I like Einstürzende Neubauten.

My favorite book is the inspiring Weaving the Web by Tim Berners-Lee.

In the example above, the document URI can be seen as representing a person. The "foaf:nick" property (in the first span element) contains a nickname for this person, and the "dc:creator" property (in the meta element) tells us who created the document. The hyperlink to the Einstürzende Neubauten website contains rel="foaf:interest", suggesting that John Doe is interested in this band. The URI of their website is a resource. (If it had been rev="foaf:interest" instead, it would have suggested that Einstürzende Neubauten were interested in "him".)

The "foaf:interest" inside the second p element is referring to a book by ISBN number. The resource attribute defines a resource in a similar way to the href attribute, but without defining a hyperlink. Further into the paragraph, a span element containing an about attribute defines the book as another resource to specify metadata about. The book title and author are defined within the contents of this tag using the "dc:title" and "dc:creator" properties.

Here are the same triples when the above document is automatically converted to RDF/XML: Jonathan Doe John D Tim Berners-Lee Weaving the Web

ee also

* microformats, a simplified approach to semantically annotate data in websites
* eRDF, an alternative to RDFa
* GRDDL, a way to extract (annotated) data out of XHTML and XML documents and transform it into an RDF graph

Notes

References

* [http://www.w3.org/TR/xhtml-rdfa-primer/ RDFa Primer]
* [http://www.w3.org/TR/xhtml-rdfa-scenarios/ RDFa Use Cases: Scenarios for Embedding RDF in HTML]
* [http://www.w3.org/TR/rdfa-syntax/ RDFa Syntax]
* [http://www.w3.org/2006/07/SWD/RDFa/testsuite/ RDFa Test Suite]
* [http://esw.w3.org/topic/RDFa#FAQ RDFa FAQ]
* [http://www.w3.org/2006/07/SWD/wiki/hGRDDL_Example hGRDDL]
* [http://www.standards-schmandards.com/2007/rdfa-and-accessibility/ RDFa - Implications for Accessibility]
* [http://www.youtube.com/watch?v=mxE3FeOyS-E Mark Birbeck presenting RDFa at Google in May 2008]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • RDFa — est une syntaxe qui permet de décrire des données structurées dans une page web. Ainsi formellement décrites, les données peuvent alors faire l objet de traitements automatisés complexes, via des outils adaptés. Le code RDFa est invisible pour l… …   Wikipédia en Français

  • RDFa — Saltar a navegación, búsqueda RDFa es un conjunto de extensiones de XHTML propuestas por W3C para introducir semántica en los documentos. RDFa aprovecha atributos de los elementos meta y link de XHTML y los generaliza de forma que puedan ser… …   Wikipedia Español

  • Semantic Sensor Web — Sensors are distributed across the globe leading to an avalanche of data about our environment. The rapid development and deployment of sensor technology involves many different types of sensors, both remote and in situ, with such diverse… …   Wikipedia

  • Document Type Declaration — A Document Type Declaration, or DOCTYPE, is an instruction that associates a particular SGML or XML document (for example, a webpage) with a Document Type Definition (DTD) (for example, the formal definition of a particular version of HTML). In… …   Wikipedia

  • Ramm.x — (RDFa deployed Multimedia Metadata) is an initiative to deploy multimedia metadata on the Semantic Web using RDFa.Many multimedia metadata formats (as ID3, Exif, MPEG 7, etc.) are available to describe, on various levels, what a multimedia asset… …   Wikipedia

  • Microformat — For the photographic miniaturization of documents, see Microform. For details of microformats used on Wikipedia, see Wikipedia:Microformats. A microformat (sometimes abbreviated μF) is a web based approach to semantic markup which seeks to re use …   Wikipedia

  • Gleaning Resource Descriptions from Dialects of Languages — GRDDL ou Gleaning Resource Descriptions from Dialects of Languages signifiant littéralement Récolte de descriptions de ressources à partir des dialectes de langages est un langage de marquage permettant d extraire des données RDF à partir de… …   Wikipédia en Français

  • Семантическая паутина — Не следует путать с Семантическая сеть. Пожалуйста, актуализируйте данные В этой статье данные предоставлены преимущественно за 2005 2008 гг. Семантическая паутина (англ.  …   Википедия

  • Resource Description Framework — (RDF, «среда описания ресурса»[1]) это разработанная консорциумом Всемирной паутины модель для представления данных, в особенности метаданных[2]. RDF представляет утверждения о ресурсах в виде, пригодном для машинной обработки. RDF является… …   Википедия

  • Microdata (HTML) — HTML HTML and HTML5 Dynamic HTML XHTML XHTML Mobile Profile and C HTML Canvas element Character encodings Document Object Model Font family HTML editor HTML element HTML Frames HTML5 video HTML scrip …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”