RDFa or Resource Description Framework in Attributes[1] is a W3C Recommendation that adds a set of attribute-level extensions to HTML, XHTML and various XML-based document types for embedding rich metadata within Web documents. The Resource Description Framework (RDF) data-model mapping enables its use for embedding RDF subject-predicate-object expressions within XHTML documents. It also enables the extraction of RDF model triples by compliant user agents.

The RDFa community runs a wiki website to host tools, examples, and tutorials.[2]

History

RDFa was first proposed by Mark Birbeck in the form of a W3C note entitled XHTML and RDF,[3] which was then presented to the Semantic Web Interest Group[4] at the W3C's 2004 Technical Plenary.[5] Later that year the work became part of the sixth public Working Draft of XHTML 2.0.[6][7] 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-based 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.[8] The document was written by Mark Birbeck and Steven Pemberton, and was made available for discussion on October 11, 2004.

In April 2007 the XHTML 2 Working Group produced a module to support RDF annotation within the XHTML 1 family.[9] 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.[10]

October 2007 saw the first public Working Draft of a document entitled RDFa in XHTML: Syntax and Processing.[11] 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.

In October 2008 RDFa 1.0 reached recommendation status.[12]

RDFa 1.1 reached recommendation status in June 2012.[13] It differs from RDFa 1.0 in that it no longer relies on the XML-specific namespace mechanism. Therefore, it is possible to use RDFa 1.1 with non-XML document types such as HTML 4 or HTML 5. Details can be found in an appendix to HTML 5.[14]

An additional RDFa 1.1 Primer document was last updated 17 March 2015.[1] (The first public Working Draft dates back to 10 March 2006.[15])

Versions and variants

There are some main well-defined variants of the basic concepts, that are used as reference and as abbreviation to the W3C standards.

HTML+RDFa

RDFa was defined in 2008 with the "RDFa in XHTML: Syntax and Processing" Recommendation.[16] Its first application was to be a module of XHTML.

The HTML applications remained, "a collection of attributes and processing rules for extending XHTML to support RDF" expanded to HTML5, are now expressed in a specialized standard, the "HTML+RDFa" (the last is "HTML+RDFa 1.1 - Support for RDFa in HTML4 and HTML5"[17]).

RDFa 1.0

The "HTML+RDFa" syntax of 2008 was also termed "RDFa 1.0", so, there is no "RDFa Core 1.0" standard. In general this 2008's RDFa 1.0 is used with the old XHTML standards (as long as RDFa 1.1 is used with XHTML5 and HTML5).

RDFa 1.1

Is the first generic (for HTML and XML) RDFa standard; the "RDFa Core 1.1" is in the Third Edition, since 2015.[18]

RDFa Lite

RDFa Lite is a W3C Recommendation (1.0 and 1.1) since 2009,[19] where it is described as follows:[20]

RDFa Lite is minimal subset of RDFa ... consisting of a few attributes that may be used to express machine-readable data in Web documents like HTML, SVG, and XML. While it is not a complete solution for advanced data markup tasks, it does work for most day-to-day needs and can be learned by most Web authors in a day.

RDFa Lite consists of five attributes: vocab, typeof, property, resource, and prefix.[20] RDFa 1.1 Lite is upwards compatible with RDFa 1.1.[20]

In 2009 the W3C was positioned[21] to retain RDFa Lite as unique and definitive standard alternative to Microdata.[22] The position was confirmed with the publication of the HTML5 Recommendation in 2014.

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
rel and rev
specifying a relationship and reverse-relationship with another resource, respectively
src, href and resource
specifying the partner resource
property
specifying a property for the content of an element or the partner resource
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 or the partner resource (the resource that the metadata is about).

Benefits

There are five "principles of interoperable metadata" met by RDFa.[23]

  • Publisher Independence – each site can use its own standards
  • Data Reuse – data are not duplicated. Separate XML and HTML sections are not required for the same content.
  • Self Containment – the HTML and the RDF are separated
  • Schema Modularity – the attributes are reusable

Additionally RDFa may benefit web accessibility as more information is available to assistive technology.[24]

Usage

There is a growing number of tools for better usage of RDFa vocabularies and RDFa annotation.

HTML+RDFa statistics

2013 survey pizza charts of percentage usage,[25] showing that 79% of URLs and 43% of domains use HTML+RDFa. The average 61% (the other 39% was Microformats) is the usage indicator.

Simplified approaches to semantically annotate information items in webpages were greatly encouraged by the HTML+RDFa (released in 2008) and microformats (since ~2005) standards.

As of 2013 these standards were encoding events, contact information, products, and so on. Despite the vCard semantics (only basic items of person and organization annotations) dominance,[25] and some cloning of annotations along the same domain, the counting of webpages (URLs) and domains with annotations is an important statistical indicator for usage of semantically annotated information in the Web.

The statistics of 2017 show that usage[26] of HTML+RDFa is now less than that of Microformats.

RDFa editors

Web-based RDFa editors
There are already a few RDFa editors available online. RDFaCE (RDFa Content Editor) is a WYSIWYM editor based on TinyMCE to support RDFa content authoring. It supports manual and semi-automatic generation of RDFa with the support of annotation services such as DBpedia Spotlight, OpenCalais, Alchemy API, among others.[27] RDFaCE-Lite is a version of RDFaCE also supporting Microdata and available as a WordPress plugin.[28]
Desktop RDFa editors
AutôMeta is an environment for semi-automatic (or automatic) annotation of documents for publishing on the Web using RDFa. It also includes a RDFa extraction tool to provide the user with a view of the annotated triples. It is available in both CLI and GUI interfaces.[29]

Examples

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

<div xmlns:dc="http://purl.org/dc/elements/1.1/"
  about="http://www.example.com/books/wikinomics">
  <span property="dc:title">Wikinomics</span>
  <span property="dc:creator">Don Tapscott</span>
  <span property="dc:date">2006-10-01</span>
</div>

Moreover, RDFa allows the passages and words within a text to be associated with semantic markup:

<div xmlns:dc="http://purl.org/dc/elements/1.1/"
   about="http://www.example.com/books/wikinomics">
  In his latest book
  <span property="dc:title">Wikinomics</span>,
  <span property="dc:creator">Don Tapscott</span>
  explains deep changes in technology,
  demographics and business.
  The book is due to be published in
  <span property="dc:date" content="2006-10-01">October 2006</span>.
</div>

XHTML + RDFa 1.0

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:

<?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 xmlns="http://www.w3.org/1999/xhtml"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    version="XHTML+RDFa 1.0" xml:lang="en">
  <head>
    <title>John's Home Page</title>
    <base href="http://example.org/john-d/" />
    <meta property="dc:creator" content="Jonathan Doe" />
    <link rel="foaf:primaryTopic" href="http://example.org/john-d/#me" />
  </head>
  <body about="http://example.org/john-d/#me">
    <h1>John's Home Page</h1>
    <p>My name is <span property="foaf:nick">John D</span> and I like
      <a href="http://www.neubauten.org/" rel="foaf:interest"
        xml:lang="de">Einstürzende Neubauten</a>.
    </p>
    <p>
      My <span rel="foaf:interest" resource="urn:ISBN:0752820907">favorite
      book is the inspiring <span about="urn:ISBN:0752820907"><cite
      property="dc:title">Weaving the Web</cite> by
      <span property="dc:creator">Tim Berners-Lee</span></span></span>.
    </p>
  </body>
</html>

In the example above, the document URI can be seen as representing an HTML document, but the document URI plus the "#me" string http://example.org/john-d/#me represents the actual person, as distinct from a document about them. The foaf:primaryTopic in the header tells us a URI of the person the document is about. 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.

The foaf:interest inside the second p element is referring to a book by ISBN. 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:

<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
  <rdf:Description rdf:about="http://example.org/john-d/">
    <dc:creator xml:lang="en">Jonathan Doe</dc:creator>
    <foaf:primaryTopic>
      <rdf:Description rdf:about="http://example.org/john-d/#me">
        <foaf:nick xml:lang="en">John D</foaf:nick>
        <foaf:interest rdf:resource="http://www.neubauten.org/"/>
        <foaf:interest>
          <rdf:Description rdf:about="urn:ISBN:0752820907">
            <dc:creator xml:lang="en">Tim Berners-Lee</dc:creator>
            <dc:title xml:lang="en">Weaving the Web</dc:title>
          </rdf:Description>
        </foaf:interest>
      </rdf:Description>
    </foaf:primaryTopic>
  </rdf:Description>
</rdf:RDF>

HTML5 + RDFa 1.1

The above example can be expressed without XML namespaces in HTML5:

<html prefix="dc: http://purl.org/dc/elements/1.1/" lang="en">
  <head>
    <title>John's Home Page</title>
    <link rel="profile" href="http://www.w3.org/1999/xhtml/vocab" />
    <base href="http://example.org/john-d/" />
    <meta property="dc:creator" content="Jonathan Doe" />
    <link rel="foaf:primaryTopic" href="http://example.org/john-d/#me" />
  </head>
  <body about="http://example.org/john-d/#me">
    <h1>John's Home Page</h1>
    <p>My name is <span property="foaf:nick">John D</span> and I like
      <a href="http://www.neubauten.org/" rel="foaf:interest"
        lang="de">Einstürzende Neubauten</a>.
    </p>
    <p>
      My <span rel="foaf:interest" resource="urn:ISBN:0752820907">favorite
      book is the inspiring <span about="urn:ISBN:0752820907"><cite
      property="dc:title">Weaving the Web</cite> by
      <span property="dc:creator">Tim Berners-Lee</span></span></span>.
    </p>
  </body>
</html>

Note how the prefix foaf is still used without declaration. RDFa 1.1 automatically includes prefixes for popular vocabularies such as FOAF.[30]


The minimal [31] document is:

<html lang="en">
  <head>
    <title>Example Document</title>
  </head>
  <body vocab="http://schema.org/">
    <p typeof="Blog">
      Welcome to my <a property="url" href="http://example.org/">blog</a>.
    </p>
  </body>
</html>

That is, it is recommended that all of these attributes are used: vocab, typeof, property; not only one of them.

RDFa Structured Data Example

Person Schema in RDFa.[32]

<div vocab="http://schema.org/" typeof="Person">
  <a property="image" href="http://manu.sporny.org/images/manu.png">
    <span property="name">Manu Sporny</span></a>, 
  <span property="jobTitle">Founder/CEO</span>
  <div>
    Phone: <span property="telephone">(540) 961-4469</span>
  </div>
  <div>
    E-mail: <a property="email" href="mailto:(your emailid)">msporny@digitalbazaar(.)com</a>
  </div>
  <div>
    Links: <a property="url" href="http://manu.sporny.org/">Manu's homepage</a>
  </div>
</div>

See also

  • eRDF, an alternative to RDFa (now obsolete)
  • GRDDL, a way to extract (annotated) data out of XHTML and XML documents and transform it into an RDF graph
  • Microdata - another approach at embedding semantics in HTML using additional attributes
  • Microformats, a simplified approach to semantically annotate data in web pages
  • Open Graph protocol, a way to use RDFa to integrate web pages into the Facebook social graph
  • Schema.org, search-engine supported schemas for structured data markup on web pages that can be expressed as RDFa

References

  1. ^ a b "RDFa 1.1 Primer" (3rd ed.). W3C. 17 March 2015. Retrieved 2016-09-02.
  2. ^ "RDFa / Tools".
  3. ^ "XHTML and RDF W3C Note 14 February 2004". World Wide Web Consortium. 2004-02-14. Retrieved 2007-12-27.
  4. ^ "W3C Semantic Web Interest Group (SWIG)".
  5. ^ "Semantic Web Interest Group". www.xml.com. 2004-03-03. Retrieved 2007-12-27.
  6. ^ "XHTML 2.0 W3C Working Draft 22 July 2004, 19. XHTML Metainformation Attributes Module". World Wide Web Consortium. 2004-07-22. Retrieved 2007-10-06.
  7. ^ "XML and Semantic Web W3C Standards Timeline" (PDF). Archived from the original (PDF) on 2013-04-24. Retrieved 2013-06-28.
  8. ^ "RDF/A Syntax: A collection of attributes for layering RDF on XML languages". 2004-10-11. Retrieved 2009-05-14.
  9. ^ "XHTML RDFa Modules, Modules to support RDF annotation of elements, W3C Editor's Draft 2 April 2007". World Wide Web Consortium. 2007-04-02. Retrieved 2007-10-06.
  10. ^ For examples of this, see: "CBS: NCIS - Joost Link". Archived from the original on 2007-10-11. Retrieved 2007-10-06. "WebOrganics :: HAudio RDFa". Archived from the original on 2007-12-14. Retrieved 2007-10-06.
  11. ^ "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". World Wide Web Consortium. 2007-10-18. Retrieved 2007-10-20.
  12. ^ "RDFa in XHTML: Syntax and Processing, A collection of attributes and processing rules for extending XHTML to support RDF, W3C Recommendation 14 October 2008". World Wide Web Consortium. 2008-10-14. Retrieved 2008-10-15.
  13. ^ "RDFa Core 1.1 - Syntax and processing rules for embedding RDF through attributes". World Wide Web Consortium. 2012-06-07. Retrieved 2012-08-25.
  14. ^ "HTML+RDFa 1.1 - Support for RDFa in HTML4 and HTML5". World Wide Web Consortium. 2012-03-29. Retrieved 2012-08-25.
  15. ^ "RDF/A Primer 1.0". W3C. 10 March 2006. Retrieved 2016-09-02.
  16. ^ "RDFa in XHTML: Syntax and Processing - A collection of attributes and processing rules for extending XHTML to support RDF", W3C Recommendation 14 October 2008. http://www.w3.org/TR/2008/REC-rdfa-syntax-20081014/
  17. ^ "HTML+RDFa 1.1 - Support for RDFa in HTML4 and HTML5", W3C Recommendation 22 August 2013. http://www.w3.org/TR/html-rdfa/
  18. ^ "RDFa Core 1.1 - Third Edition - Syntax and processing rules for embedding RDF through attribute", W3C Recommendation 17 March 2015. https://www.w3.org/TR/2015/REC-rdfa-core-20150317/
  19. ^ first draft 1.1.
  20. ^ a b c "RDFa Lite 1.1, W3C Recommendation 07 June 2012. http://www.w3.org/TR/rdfa-lite/ (second edition at 2015)
  21. ^ Final W3C position (ISSUE-76), establishing that Microdata syntax simply duplicates what RDFa Lite already does.
  22. ^ "Mythical Differences: RDFa Lite vs. Microdata - The Beautiful, Tormented Machine".
  23. ^ Building Interoperable Web Metadata
  24. ^ "RDFa – Implications for Accessibility – Standards Schmandards".
  25. ^ a b "Web Data Commons – RDFa, Microdata, and Microformat Data Sets". section 3.1, "Extraction Results from the November 2013 Common Crawl Corpus". 2013. Retrieved 2015-02-21.
  26. ^ "Web Data Commons – RDFa, Microdata, and Microformat Data Sets". section 3.1, "Extraction Results from the November 2017 Common Crawl Corpus". 2017. Retrieved 2019-01-09.
  27. ^ "RDFaCE — Agile Knowledge Engineering and Semantic Web (AKSW)".
  28. ^ "RDFaCE — Agile Knowledge Engineering and Semantic Web (AKSW)".
  29. ^ "Google Code Archive - Long-term storage for Google Code Project Hosting".
  30. ^ "RDFa Core Initial Context - Vocabulary Prefixes". World Wide Web Consortium. 2012-05-27. Retrieved 2012-08-25.
  31. ^ "Example of an HTML+RDFa 1.1 document" at www.w3.org
  32. ^ Murari, Krishna (19 January 2023). "Person Schema in RDFa". The Seo Today. Archived from the original on 19 January 2023. Retrieved 19 January 2023.

External links

  1. Live @ Isle Of Wight Festival, UK 15 06 2019 - Fatboy Slim 01:12:50
  2. Live @ S2O Festival, Bangkok, Thailand 13 04 2019 - Fatboy Slim 01:08:38
  3. UK TOUR 2019 - Birmingham, UK [EXTRACTS] 22 02 2019 - Fatboy Slim 42:48
  4. Brighton Rooftop B2B Set 30 11 2018 - Fatboy Eats 01:40:26
  5. Live @ Creamfields 2018, UK 26 08 2018 - Fatboy Slim 31:37
  6. Live @ Tomorrowland, Freedom Stage (Week End 2) , Belgium 28 07 2018 - Fatboy Slim 01:27:45
  7. Live @ British Airways i360, Brighton, UK 30 07 2018 - Fatboy Slim 01:29:55
  8. Live @ Tomorrowland, Belgium 21 07 2018 - Fatboy Slim 01:26:30
  9. Live @ Tuesdays On Mars, Pacha Ibiza, Spain 03 07 2018 - Fatboy Slim 03:04:03
  10. All Night Long - Pacha Ibiza 19 05 2018 - Fatboy Slim 05:16:00
  11. Record Store Day Desert Island Disco Mix, BBC 6 Music, UK 15 04 2016 - Fatboy Slim 28:31
  12. Beat Up The NME 60 Knockout Minutes (1997) Fatboy Slim 01:00:47
  13. Live @ Electric Gardens, Serafino Winery, Adelaide, Australia [EXTRACTS] 26 01 2018 - Fatboy Slim 01:04:05
  14. Live @ Hultsfred, Sweden 14 06 1997 - Fatboy Slim 01:03:14
  15. Live @ Personal Fest '17, Buenos Aires, Argentina 12 11 2017 - Fatboy Slim 01:34:54
  16. Live @ Beats for Love 2017 Festival in Ostrava, Czech Republic 05 07 2017 - Fatboy Slim 01:14:04
  17. Live @ Ultra Music Festival 2012, Miami, USA 24 03 2012 - Fatboy Slim 58:51
  18. Live @ Float Your Boat, Ibiza, Spain 21 09 2017 - Fatboy Slim 01:30:48
  19. Live @ Brixton Academy, London, UK [EXTRACTS] 20 12 2014 - Fatboy Slim 01:00:00
  20. Live @ Creamfields 2017, Liverpool, UK 27 08 2017 - Fatboy Slim 01:31:43
  21. Live @ Café Mambo, Ibiza, Spain 05 08 2017 - Fatboy Slim 38:21
  22. Live @ Tomorrowland Festival 2017,Lost Frequencies & Friends Stage,Belgium 29 07 2017 - Fatboy Slim 01:25:04
  23. Live At National Cardiff 01 01 2000 - Fatboy Slim 01:13:23
  24. Live @ Super Bock Super Rock Festival, Lisbon, Portugal 15 07 2017 - Fatboy Slim 01:30:31
  25. Live @ Kappa Futur Festival, Torino, Italy 08 07 2017 - Fatboy Slim 01:29:26
  26. Live @ Electric Daisy Carnival, Tokyo, Japan 29 04 2017 - Fatboy Slim 30:25
  27. EDC Japan 2017 Mix Fatboy Slim 01:00:00
  28. Live @ Santa Cruz Boat Party, Ibiza, Spain 15 09 2016 - Fatboy Slim 01:40:46
  29. Live @ The O² Arena, London, UK 17 12 2016 - Fatboy Slim 01:28:37
  30. Beats 1 Radio Show #8 16 12 2016 - Fatboy Slim 01:58:20
  31. Beats 1 Radio Show #7 02 12 2016 - Fatboy Slim 01:58:56
  32. Beats 1 Radio Show #6 18 11 2016 - Fatboy Slim 01:58:33
  33. Beats 1 Radio Show #5 04 11 2016 - Fatboy Slim 01:58:25
  34. Beats 1 Radio Show #4 21 10 2016 - Fatboy Slim 01:58:43
  35. Beats 1 Radio Show #3 07 10 2016 - Fatboy Slim 01:51:05
  36. Beats 1 Radio Show #2 23 09 2016 - Fatboy Slim 01:58:05
  37. Beats 1 Radio Show #1 09 09 2016 - Fatboy Slim 01:49:55
  38. DJ SET WMF, Berlin, Germany 29 09 2000 - Fatboy Slim 01:49:50
  39. BACK TO THE ODD SCHOOL feat. FATBOY SLIM's Desert Eagle Disc top ten 27 11 2016 03:00:42
  40. Essential Millennium 1999 (Disc 2) Fatboy Slim 01:16:05
  41. Live @ Boiler Room, Brighton, UK 11 10 2016 - Fatboy Slim 02:55:40
  42. One Mix: Fatboy Slim - Ep27 20 01 2016 - Beats 1 59:55
  43. Live @ Bestival 2016, Essential Mix, BBC Radio 1, UK 17 09 2016 - Fatboy Slim 01:59:48
  44. Celebrating 20 years of Better Living @ The Social, London, UK 13 09 2016 - Fatboy Slim 29:09
  45. Live At Carl Cox: Music Is Revolution, Space, Ibiza, Spain 10 08 2016 - Fatboy Slim 01:57:43
  46. Live On A Night with Annie Nightingale, Maida Vale Studio, BBC Radio 1,UK 09 09 2010 - Fatboy Slim 21:29
  47. Live @ The House Of Blues, New Orleans, USA 25 03 2000 - Fatboy Slim 02:00:03
  48. Live @ Glastonbury 2016, UK 25 06 2016 - Fatboy Slim 01:25:32
  49. From Punk Get Funk, BBC Radio 2, UK 06 06 2016 - Norman Cook 56:20
  50. Live @ The Metro, Chicago, USA 03 03 1998 – Fatboy Slim 02:03:33
  51. Live @ Club Cream 10th Birthday Special, Liverpool, UK 12 10 2002 - Fatboy Slim 41:51
  52. Live @ The Ultimate FSTVL House Party, Brighton, UK 21 04 2016 - Fatboy Slim 01:30:20
  53. Live @ HARD Haunted Mansion, Shrine Expo Hall, Los Angeles, USA 28 10 2011 - Fatboy Slim 01:11:55
  54. We Are 30 Mixed By Fatboy Slim (2013) Mixmag 01:05:29
  55. Fatboy Slim - The Legend Returns (2010) Mixmag 50:59
  56. Live At Newquay Beach, Essential Selection, BBC Radio 1, UK 21 06 2002 - Fatboy Slim & Eric Morillo 01:29:08