Html data guide
Upcoming SlideShare
Loading in...5

Like this? Share it with your network

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads


Total Views
On Slideshare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide
  • SEO and good visualization on search engines
  • Microformats -> others are: @id, @title or @rev Microdata -> itemid ... Must be a valid URL -> itemscope ... Boolean value that starts new item -> itemtype ... The type of the new started item -> itemref ... List of tokens


  • 1. HTML Data Guide W3C Interest Group Note 08 March 2012 OC Working Group – 09.07.2012 by Alex Oberhauser© Copyright 2008 STI INNSBRUCK
  • 2. 2 Motivation • Click to edit Master text styles – Second level • Third level – Fourth level » Fifth level
  • 3. 3 Syntaxes for data embedding in HTML Syntax Attributes for data Vocabularies (most-used) encoding Microformats @class, @rel (and others) hCard, hCalendar, hReview RDFa @href, @rel, @property Different RDFS/OWL vocabularies, e.g. DublinCore, Geo, FOAF Microdata Itemid, itemprop, itemref,, DublinCore itemscope, itemtype
  • 4. 4 Microformat – Example (hCard and geo) <ul class="vcard"> <li class="fn">Joe Doe</li> <li class="org">The Example Company</li> <li class="tel">604-555-1234</li> <li><a class="url" ref=""></a></li> </ul> <span class="geo"> <span class="latitude">52.48</span> <span class="longitude">-1.89</span> </span>
  • 5. 5 RDFa – Example (DublinCore) <div xmlns:dc="" about=""> <span property="dc:title">Wikinomics</span> <span property="dc:creator">Don Tapscott</span> <span property="dc:date">2006-10-01</span> </div>
  • 6. 6 Microdata – Example ( <div itemscope itemtype=""> <span itemprop="name">Jane Doe</span> <img src="janedoe.jpg" itemprop="image" /> <span itemprop="jobTitle">Professor</span> <div itemprop="address" itemscope itemtype=""> <span itemprop="streetAddress">20341 Whitworth Institute</span> <span itemprop="addressLocality">Seattle</span> <span itemprop="addressRegion">WA</span> <span itemprop="postalCode">98052</span> </div>
  • 7. 7 What do use? What is recommended? • Possible to use all three syntaxes on one page (for one item) • For SEO Microdata is recommended • For easy extraction to RDF use RDFa • Microformat and Microdata can be mapped to the same JSON data model (see
  • 8. 8 Personal Recommendation • Microdata for search engine optimization (relative easy to use) • If RDF is needed provide a (REST) API – Justification: RDFa is not easier than plain RDF, but RDF/ (XML/N3/N-Triple) is easier parsable.
  • 9. 9 Questions? • Click to edit Master text styles – Second level • Third level – Fourth level » Fifth level