Microformats - PowerPoint PPT Presentation

1 / 23
About This Presentation
Title:

Microformats

Description:

... style ... p class='street-address' 1806 T St NW /p p span class='locality' ... appearance is controlled by the style sheet used. http://ian.mckellar. ... – PowerPoint PPT presentation

Number of Views:111
Avg rating:3.0/5.0
Slides: 24
Provided by: michae413
Category:

less

Transcript and Presenter's Notes

Title: Microformats


1
Microformats
  • Scraping by design

A session at NTC07, Washington DC Facilitated by
(the east coast) Michael Stein michael_at_membersonly
software.com http//michaelatmo.blogspot.com
2
3 principal takeaways
  • What are microformats?
  • How are they in use today?
  • How can microformats can be valuable to
    non-profit orgs?

3
INTRODUCTIONS
4
Official Definition -
  • Designed for humans first and machines second,
    microformats are a set of simple, open data
    formats built upon existing and widely adopted
    standards.

5
My definition
  • Microformats are transformations of prior widely
    used standards.
  • Using pure xhtml as a data transfer mechanism,
    microformats provide a way for both humans and
    programs to read the same screen displays.

6
Screen-scraping 20 years ago
  • In 1987, we were hired by a small investment firm
    to download stock data from Compuserve displays.
  • We had to trust the data would be displayed in
    the same format from day to day.

7
Screen-scraping conundrum
  • Even today, most web displays are designed for
    humans only. Only with careful programming can
    data be extracted from them for computer use.

8
Screen-scraping 2007 style
  • Scraping by design What if we introduce elements
    into the web page that identify the semantics of
    individual text strings?

9
Screen-scraping by design
  • Whats so clever about microformats is that use
    the same tags to add this semantic information as
    to provide the visual formatting!

10
The idea
INSTEAD OF CLASSIC XML ltNAMEgt
ltFIRSTNAMEgtCharleslt/FIRSTNAMEgt
ltLASTNAMEgtWindsorltLASTNAMEgt lt/NAMEgt
11
The idea
USE xHTML with semantics specified as
CLASS ltdiv classNAMEgt ltspan
classFIRSTNAMEgtCharleslt/spangt ltspan
classLASTNAMEgtWindsorlt/spangt lt/divgt And let
CSS handle the visuals.
12
An example
  • hCard

13
an example - source
ltdiv class"vcard"gt ltp class"fn" gtStein,
Michaellt/pgt ltdiv class"photo" style"floatleft"gt
ltimg src"images\00003971.jpg"
alt"Michael" /gtlt/divgt ltp class"org"gtMembers
Only Software, Inc lt/pgt ltdiv class"adr"gt ltp
class"street-address"gt 1806 T St NWlt/pgt ltpgtltspan
class"locality"gtWashingtonlt/spangt ltspan
class"region" gtDClt/spangt ltspan
class"postal-code"gt20009lt/spangt lt/pgt ltp
class"country-name"gtlt/pgt lt/divgt ltdiv
class"telecommunications"gt ltp class"tel"gtltspan
class"tel"gtltspan class"type"gtOffice
Phonelt/spangt ltspan class"value"gt(202)
328-1785lt/spangtlt/pgt ltp class"email"gtEmail lta
class"value" href"mailtomichaelatmo_at_gmail.com"gt
michaelatmo_at_gmail.comlt/agtlt/pgt lt/divgtlt/divgt
14
an example visual styling
  • hCard- phyisical appearance is controlled by the
    style sheet used.

http//ian.mckellar.org/
15
Existing Microformats
  • hCard
  • hCalendar
  • votelinks
  • hreview
  • XFN
  • rel-license
  • rel-tag

The official microformats site Microformats.org Is
a repository of information on these And
emerging microformat standards
16
Micro-micro formats
  • Its all done with the rel attribute
  • Used for tag, licence, xfn, etc

lta hrefhttp//michaelatmo.blogspot.com
relfriendgtMichael Stein lt/agt
17
Microformats in Action
  • Technorati builds its tagged blog index by
    looking for the reltag microformat on claimed
    blogs. A major use of a micro-micro-format.

18
Microformat in Action
  • OPERATOR is a FIREFOX extension that detects
    microformats in each page you veiw and enables
    actions on them.
  • Developed by Michael Kaply at IBM
  • http//labs.mozilla.com/2006/12/introducing-operat
    or

19
Other microformat extractors
  • TAILS an open source project.
  • http//blog.codeeg.com/tails-firefox-extension-03/
  • Allows custom scripting of the actions taken when
    a microformat is found.

20
Microformat creators
  • These are little applets that let you type in the
    information in a form and generate a microformat
    for including in on a site. The Microformats.org
    site has links to many such creators.

21
Uses in the npTech context?
  • Information sharing between npo sites
  • Social Networking Community Building
    applications?
  • Data Integration Applications?
  • Are there new microformats we need to evolve to
    meet specifucu npo reuirements.

22
Some online resources
  • microformats.org
  • Jeremy Keiths site http//adactio.com/extras/get
    tingmicroformats/

23
New book Im eager to read
  • MicroformatsEmpowering Your Markup for Web 2.0
    By John Allsopp
Write a Comment
User Comments (0)
About PowerShow.com