Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Microformats

 Microformats

Orbitz IDEAS - October, 2007

Mark Meeker

October 31, 2007
Tweet

More Decks by Mark Meeker

Other Decks in Technology

Transcript

  1. • What are microformats? • Why are they important? •

    Where can they be found? • How are they created?
  2. API

  3. <rsp stat="ok" version="1.0"> <event id="262789" name="JavaOne 2008" tags="" description="" start_date="2008-05-06"

    end_date="2008-05-09" start_time="" end_time="" personal="0" selfpromotion="0" metro_id="2" venue_id="1398" user_id="75537" category_id="5" url="http://java.sun.com/javaone/sf/index.jsp" date_posted="2007-09-06" latitude="37.7841" longitude="-122.401" geocoding_precision="address" geocoding_ambiguous="0" venue_name="Moscone Center" venue_address="747 Howard Street" venue_city="San Francisco" venue_state_name="California" venue_state_code="ca" venue_state_id="5" venue_country_name="United States" venue_country_code="us" venue_country_id="1" venue_zip="94103" venue_url="http:// www.moscone.com/" venue_phone="(415) 974-4000"/> </rsp>
  4. <rsp stat="ok" version="1.0"> <event id="262789" name="JavaOne 2008" tags="" description="" start_date="2008-05-06"

    end_date="2008-05-09" start_time="" end_time="" personal="0" selfpromotion="0" metro_id="2" venue_id="1398" user_id="75537" category_id="5" url="http://java.sun.com/javaone/sf/index.jsp" date_posted="2007-09-06" latitude="37.7841" longitude="-122.401" geocoding_precision="address" geocoding_ambiguous="0" venue_name="Moscone Center" venue_address="747 Howard Street" venue_city="San Francisco" venue_state_name="California" venue_state_code="ca" venue_state_id="5" venue_country_name="United States" venue_country_code="us" venue_country_id="1" venue_zip="94103" venue_url="http:// www.moscone.com/" venue_phone="(415) 974-4000"/> </rsp>
  5. <div class=”adr”> <p class=”street-address”>747 Howard St.</p> <p class=”locality”>San Francisco </p>

    <p class=”region”>California</p> <p class=”postal-code”>94103</p> </div>
  6. Designed for humans first and machines second, microformats are a

    set of simple, open data formats built upon existing and widely adopted standards. Instead of throwing away what works today, microformats intend to solve simpler problems first by adapting to current behaviors and usage patterns (e.g. XHTML, blogging). source: http://microformats.org/about
  7. Information Broker • Building blocks of information • Introduce consistent

    way to identify common pieces of data • Build, own and share your information on the web • Support aggregation sites • Provide an API for your website
  8. Discoverability • What if everyone started to mark-up pages with

    microformats? • How easy would it be to tie data on un-connected sites together? • What kind of mash-ups would result?
  9. “Planting seeds” But that’s the beauty of it! Something I’m

    calling “oblivious development”. I’ve always looked at microformats as “planting seeds” that later grow into things you never even thought of. - Dan Cederholm, simplebits.com & cork’d.com
  10. “Planting seeds” I’m not interested in the ideas I can

    think of, but instead of all the possible ideas I can’t. - Brian Suda
  11. hCard • Represents: • people • organizations • companies •

    places • Parallels the values in the vCard standard
  12. hCard <div class="vcard"> <p class="org fn">Fairmont San Jose</p> <div class="adr">

    <p class="street-address">170 S Market St</p> <p> <span class="locality">San Jose</span>, <span class="region">CA</span> <span class="postal-code">95113</span> </p> </div> <div class="tel">1-800-346-5550</div> </div>
  13. hCard <div class="vcard"> <p class="org fn">Fairmont San Jose</p> <div class="adr">

    <p class="street-address">170 S Market St</p> <p> <span class="locality">San Jose</span>, <span class="region">CA</span> <span class="postal-code">95113</span> </p> </div> <div class="tel">1-800-346-5550</div> </div>
  14. hCalendar • Represents calendar items and events • Mirrors the

    iCalendar specification, used by iCal and Outlook
  15. hCalendar <div class="vevent"> <p class="summary">The Rich Web Experience</p> <p> <abbr

    class="dtstart" title="2007-09-06"> Sept. 6, 2007 </abbr> - <abbr class="dtend" title="2007-09-09"> Sept. 8, 2007 </abbr> </p> <p class="location">San Jose, CA</p> </div>
  16. hCalendar <div class="vevent"> <p class="summary">The Rich Web Experience</p> <p> <abbr

    class="dtstart" title="2007-09-06"> Sept. 6, 2007 </abbr> - <abbr class="dtend" title="2007-09-09"> Sept. 8, 2007 </abbr> </p> <p class="location">San Jose, CA</p> </div>
  17. Upcoming.com Upcoming.com uses hCal for events. With a browser plugin

    you can export directly from the webpage to your calendar.
  18. hReview • Encourage sharing, distribution, and aggregation of reviews •

    Represents a review of something (item, event, location, website, etc) • item being reviewed • date of review (hCal) • reviewer (hCard) • description • tags (rel-tag)
  19. Yahoo Tech (http://tech.yahoo.com) Yahoo Tech marks up all of the

    product reviews on their site with hReview
  20. hResume • Represents a resume • Contact details • Education

    • Experience • Skills • Affilliations • Publications
  21. hListing • Represents an item being listed for exchange. •

    Listing action [sell, rent, trade, ...] • Lister (hCard) • Price • Summary • Description • Tags (rel-tag)
  22. • hCalendar (events) • hCard (people/orgs) • hListing (classifieds) •

    hResume (resumes) • hReviews (reviews) • hAtom (syndication) • adr & geo (locations) • rel-license (license links) • rel-tag (content tags) • XOXO (lists) • VoteLinks (voting) • XFN (social networking) and more (see microformats.org)
  23. Operator • Allows for interacting with microformats on the page

    via toolbar • Firefox extension • https://addons.mozilla.org/en-US/firefox/addon/4106 • Extensible via ‘user scripts’ • http://www.kaply.com/weblog/operator-user-scripts/
  24. Tails • Allows for interacting with microformats on the page

    via sidebar • Firefox extension • https://addons.mozilla.org/en-US/firefox/addon/2240
  25. Webcards • Offers in-page notification of and interaction with microformats

    • Firefox extension • http://www.whymicroformats.com/webcards
  26. Bookmarklet • Calls out hCards and hCalendars • Bookmarklet targeted

    for Safari • http://leftlogic.com/lounge/articles/microformats_bookmarklet
  27. Converters • X2V • http://suda.co.uk/projects/X2V/ • Technocrati • http://technorati.com/events/ •

    http://technorati.com/contacts/ Tools to convert from hCard to vCard and hCal to iCal for easy importing
  28. What’s next? • New formats in draft • Tools integration

    / plug-ins • Microformat generators • Microformat support in Firefox 3 • Dreamweaver Plug-in
  29. Getting started... • Add an hCard to your blog •

    Install Operator/Tails and start discovery • Geo-tag your photos on flickr • Build a mash-up • Write a Greasemonkey script • Subscribe to microformats-discuss
  30. Resources Websites: http://microformats.org - wiki - email discussion lists http://microformatique.com

    http://planetmicroformats.com http://microformats.co.uk http://whymicroformats.com Cheetsheet: http://suda.co.uk/projects/microformats/cheatsheet/
  31. Resources Title: Microformats: Empowering Your Markup for Web 2.0 Author:

    John Allsopp Title: Using Microformats (O’Reilly Shortcut Series) Author: Brian Suda
  32. Based on the work of: John Allsopp / Dan Cederholm

    / Tanktek Çelik /Alex Faaborg Michael Kaply / Jeremy Keith / Drew McLellan / Chris Messina / Brian Suda Attribution-Share Alike 3.0 http://creativecommons.org/licenses/by-sa/3.0/