Microformatos - juntando as peças do puzzle

79
microformatos André Luís juntado as peças do puzzle [email protected] Codebits / 13 Novembro 2008 http://andr3.net creative commons attribution non-commercial share-alike 3.0 http://creativecommons.org/licenses/by-nc-sa/3.0/

description

Apresentação dada no Codebits 2008. Focada no que são, como usá-los, como publicá-los e como os consumir... para permitir muitas hacks no concurso. A presentation I gave at Codebits 2008, focused on what they are, how to use them, publish them and consume them... to enable hacking at the contest.

Transcript of Microformatos - juntando as peças do puzzle

Page 1: Microformatos - juntando as peças do puzzle

microformatos

André Luís

juntado as peças do puzzle

[email protected]

Codebits / 13 Novembro 2008

http://andr3.netcreative commonsattributionnon-commercialshare-alike 3.0

http://creativecommons.org/licenses/by-nc-sa/3.0/

Page 2: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

Antes de mais...

Page 3: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

Olá!

Page 4: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

As minhas tags!

CSS Javascript XHTML HTML PHP

Microformatos OpenID Mobile

Page 5: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

Page 6: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

Dan Cederholm http://simplebits.com

Page 7: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

Introdução

Como usar?

Como publicar?

Como consumir?

Page 8: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

Introdução

Page 9: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle Introdução

World Wide Web

pixelydixel

TUDO COMEÇOU...“Em 6 de agosto de 1991, ele colocou um resumo[5] no newsgroup alt.hypertext. Essa data marca a estreia da Web como um serviço publicado na Internet.”

TBL @ Campus Party Valencia 2008

Page 10: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle Introdução

Documentos

bitzcelt

No principio, uma teia de documentos.

Page 11: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle Introdução

Dados

fonte: cnn.com

Page 12: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle Introdução

Dados

fonte: everyblock.com

Page 13: Microformatos - juntando as peças do puzzle

HTML (tabelas)1998

Webstandards2003

2008

Introduçãomicroformatos juntando as peças do puzzle

RDF1999

A evolução da Web

Zeldman: Designing with webstandardsPOSHRDF: resource description frameworkSTANDARDS EXISTEM HÁ MAIS TEMPO: html4(1999), xhtml1.0 (2000), css2.0(1998)

Page 14: Microformatos - juntando as peças do puzzle

Webstandards2003

microformatos2005

RDF1999

2008

Introduçãomicroformatos juntando as peças do puzzle

HTML (tabelas)1998

A evolução da Web

Zeldman: Designing with webstandardsPOSHRDF: resource description frameworkSTANDARDS EXISTEM HÁ MAIS TEMPO: html4(1999), xhtml1.0 (2000), css2.0(1998)

Page 15: Microformatos - juntando as peças do puzzle

Estão a ver todas aquelas coisas que vocês já têm nos vossos sites? Os microformatos apenas dizem aos computadores o que essas coisas na realidade são.

Introdução

por Toby Inksterhttp://microformats.org/wiki/what-are-microformats

microformatos juntando as peças do puzzle

Toby Inkster, developer do Cognition

Page 16: Microformatos - juntando as peças do puzzle

Introdução

=

Semântica Estudo da linguagem humana do ponto de vista do significado das palavras e dos enunciados;

microformatos juntando as peças do puzzle

humanos conseguem compreender a igualdade.computadores não conseguem... a menos que ajudemos.definição: estudo da linguagem humana do ponto de vista do significado das palavras e dos enunciados;

Page 17: Microformatos - juntando as peças do puzzle

Introdução

Web Semântica vs. web semântica

RDFOWL, FOAF, etc.

microformatoshcard, hcalendar, etc.

GRDDLRDF: circa 1999 2005

2007

microformatos juntando as peças do puzzle

Gleaning Resource Descriptions from Dialects of Languagesto glean: 1. To gather after a reaper; to collect in scattered or fragmentary parcels, as the grain left by a reaper2. To gather from (a field or vineyard) what is left.3. To collect with patient and minute labor; to pick out; to obtain.

Page 18: Microformatos - juntando as peças do puzzle

Introdução

Web Semântica vs. web semântica

RDFOWL, FOAF, etc.

microformatoshcard, hcalendar, etc.

GRDDLRDF: circa 1999 2005

2007

microformatos juntando as peças do puzzle

infinitos namespaces

Gleaning Resource Descriptions from Dialects of Languagesto glean: 1. To gather after a reaper; to collect in scattered or fragmentary parcels, as the grain left by a reaper2. To gather from (a field or vineyard) what is left.3. To collect with patient and minute labor; to pick out; to obtain.

Page 19: Microformatos - juntando as peças do puzzle

Introdução

Web Semântica vs. web semântica

RDFOWL, FOAF, etc.

microformatoshcard, hcalendar, etc.

GRDDLRDF: circa 1999 2005

2007

microformatos juntando as peças do puzzle

infinitos namespaces número de formatos: < 20

Gleaning Resource Descriptions from Dialects of Languagesto glean: 1. To gather after a reaper; to collect in scattered or fragmentary parcels, as the grain left by a reaper2. To gather from (a field or vineyard) what is left.3. To collect with patient and minute labor; to pick out; to obtain.

Page 20: Microformatos - juntando as peças do puzzle

Introdução

Web Semântica vs. web semântica

RDFOWL, FOAF, etc.

microformatoshcard, hcalendar, etc.

GRDDLRDF: circa 1999 2005

2007

microformatos juntando as peças do puzzle

infinitos namespaces número de formatos: < 20

Gleaning Resource Descriptions from Dialects of Languagesto glean: 1. To gather after a reaper; to collect in scattered or fragmentary parcels, as the grain left by a reaper2. To gather from (a field or vineyard) what is left.3. To collect with patient and minute labor; to pick out; to obtain.

Page 21: Microformatos - juntando as peças do puzzle

semântica

complexidade

RDF

HTML

µf

Introdução

RDFa/eRDF

Linguagens

dadosdocumentosPOSH

microformatos juntando as peças do puzzle

xhtml*

html&xhtml

Page 22: Microformatos - juntando as peças do puzzle

Princípios

Introdução

Resolver um problema

Partir do mais simples possível

Pensados primeiro para humanos e só depois para as máquinas

Reutilizar formatos amplamente adoptados

Modulares e para serem embebidos

Permitir e encorajar desenvolvimento, conteúdo e serviços

descentralizados

1.

2.

3.

4.

5.

6.

microformatos juntando as peças do puzzle

falar do “The Process”.-----------25%---------

Page 23: Microformatos - juntando as peças do puzzle

Introdução

hCard

hCalendar

Que formatos existem?

microformatos juntando as peças do puzzle

VoteLinks

XFN

rel-tag

rel-license

rel-nofollow

Especificações (7)

Page 24: Microformatos - juntando as peças do puzzle

Introdução

hAtom

hResume

hReview

hAudio

Que formatos existem?

microformatos juntando as peças do puzzle

“Drafts” (9)

xfolk

adr

geo

rel-directory

rel-enclosure

rel-home

rel-payment

Page 25: Microformatos - juntando as peças do puzzle

Show! Me! The money!

Introdução

“ ”

microformatos juntando as peças do puzzle

Page 26: Microformatos - juntando as peças do puzzle

Introdução

<p><ahref=”http://andr3.net”>André Luís</a></p>

Antes

microformatos juntando as peças do puzzle

Page 27: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle Introdução

<p class=”vcard”><a class=”fn url”href=”http://andr3.net”>André Luís</a></p>

Depois

Já temos um hCard!

More on this later. :)

Page 28: Microformatos - juntando as peças do puzzle

Imaginemos...

Address Book

2 cliques

http://www.blueflavor.com/people/keith-robinson/

+

Windows Contacts

microformatos juntando as peças do puzzle

Telefones

Introdução

Page 29: Microformatos - juntando as peças do puzzle

Imaginemos...

iCal

2 cliques

http://shift.pt/page/schedule/

+Outlook

Telefones

microformatos juntando as peças do puzzle Introdução

Page 30: Microformatos - juntando as peças do puzzle

Mais vantagens...

Simplicidade

DRY - Não duplicação

Baixo esforço de implementação

Portabilidade de conteúdos (dados)

Aumento da utilidade dos serviços!

Uniformização do HTML produzido entre projectos

Permite uniformização visual (via folhas de estilo)

Efeitos secundários

microformatos juntando as peças do puzzle Introdução

SIMPLES é possível publicar sem ter conhecimentos de semântica (ontologias, namespaces, rdf, etc.)DRY

Page 31: Microformatos - juntando as peças do puzzle

Beneficiários?

Páginas Públicas Páginas Privadas

Utilizadores ou Visitantes

Serviços Externos

c/ login

microformatos juntando as peças do puzzle Introdução

quem beneficia?Serviços Externos = APIs com fácil deployment

Page 32: Microformatos - juntando as peças do puzzle

Quem Publica?

...etc.

microformatos juntando as peças do puzzle Introdução

SPOT (hcards), Blogs (tags)

Page 33: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

searchmonkeyid:com.yahoo.uf.<format>

Introdução

+MIL MILHOES[ 366, 277, 48, 53 ] milhoes

Page 34: Microformatos - juntando as peças do puzzle

Introdução

Números (21 de Outubro de 2008)

1. hCard2. hAtom3. XFN4. hCalendar5. hReview

1,390,000,000 páginas (!!!!!) 366,000,000 páginas 277,000,000 páginas 48,900,000 páginas 53,900,000 páginas

microformatos juntando as peças do puzzle

searchmonkeyid:com.yahoo.uf.<format>+MIL MILHOES[ 366, 277, 48, 53 ] milhoes

Page 35: Microformatos - juntando as peças do puzzle

Introdução

Utilizador: “Como é que eu uso isso?”

microformatos juntando as peças do puzzle

Page 36: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

Como usar?Como usar no dia-a-dia?

Como usar nos nossos sites?

Page 37: Microformatos - juntando as peças do puzzle

Como usar?

Addon para Firefox: Operatorhttps://addons.mozilla.org/en-US/firefox/addon/4106

microformatos juntando as peças do puzzle

Page 38: Microformatos - juntando as peças do puzzle

Addon para Firefox: Operatorhttps://addons.mozilla.org/en-US/firefox/addon/4106

http://leftlogic.com/lounge/articles/microformats_bookmarklet/Bookmarklet: Firefox, Opera, Safari, IE6, IE7

microformatos juntando as peças do puzzle Como usar?

Page 39: Microformatos - juntando as peças do puzzle

Addon para Firefox: Operatorhttps://addons.mozilla.org/en-US/firefox/addon/4106

Bookmarklet: Firefox, Opera, Safari, IE6, IE7http://leftlogic.com/lounge/articles/microformats_bookmarklet/

Oomph! - Microformats toolkit (Microsoft/MIX online)

http://rhizohm.net/contact.html

http://visitmix.com/Lab/Oomph

Plugin ie7+8.js em jQueryTemas em cssWindows Live Writer

microformatos juntando as peças do puzzle Como usar?

Page 40: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

Addon para Firefox: Operatorhttps://addons.mozilla.org/en-US/firefox/addon/4106

Bookmarklet: Firefox, Opera, Safari, IE6, IE7https://addons.mozilla.org/en-US/firefox/addon/4106

Oomph! - Microformats toolkit (Microsoft/MIX online)http://visitmix.com/Lab/Oomph

IE8 - Webslices/hAtomhttp://microsoft.com/windows/internet-explorer/beta/

Como usar?

-----------50%---------

Page 41: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

Addon para Firefox: Operatorhttps://addons.mozilla.org/en-US/firefox/addon/4106

Bookmarklet: Firefox, Opera, Safari, IE6, IE7https://addons.mozilla.org/en-US/firefox/addon/4106

Oomph! - Microformats toolkit (Microsoft/MIX online)http://visitmix.com/Lab/Oomph

Mas não só.

IE8 - Webslices/hAtomhttp://microsoft.com/windows/internet-explorer/beta/

Como usar?

Page 42: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

X2V (Brian Suda)http://suda.co.uk/projects/X2V/

X2Vlink

http://suda.co.uk/projects/microformats/hcalendar/get-cal.php?uri=<endereço web>

Como usar?

Page 43: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

X2V (Brian Suda)http://suda.co.uk/projects/X2V/

X2Vlink

Magiatidy+xsl

http://suda.co.uk/projects/microformats/hcalendar/get-cal.php?uri=<endereço web>

Como usar?

Page 44: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

X2V (Brian Suda)http://suda.co.uk/projects/X2V/

X2Vlink

http://suda.co.uk/projects/microformats/hcalendar/get-cal.php?uri=<endereço web>

Magia

iCal(.ics)

tidy+xsl

Como usar?

Page 45: Microformatos - juntando as peças do puzzle

X2V (Brian Suda)http://suda.co.uk/projects/X2V/

X2Vlink

http://suda.co.uk/projects/microformats/hcalendar/get-cal.php?uri=<endereço web>

Magia

iCal(.ics)

tidy+xsl

microformatos juntando as peças do puzzle Como usar?

Page 46: Microformatos - juntando as peças do puzzle

X2V (Brian Suda)http://suda.co.uk/projects/X2V/

Análogo para hCards.

hCard(s) vCards (.vcf)

http://suda.co.uk/projects/microformats/hcard/get-contact.php?uri=<endereço web>

microformatos juntando as peças do puzzle Como usar?

Page 47: Microformatos - juntando as peças do puzzle

http://suda.co.uk/projects/microformats/hcalendar/get-cal.php?uri=http://shift.pt/page/schedulewebcal://suda.co.uk/projects/microformats/...

QR Codehttp://reader.kaywa.com

X2V (Brian Suda)http://suda.co.uk/projects/X2V/

microformatos juntando as peças do puzzle Como usar?

Ajudamos o resto dos utilizadores com links para ficheiros transformados.Apenas se altera o HTML.

Page 48: Microformatos - juntando as peças do puzzle

code.google.com/apis/socialgraph/

blog

Interligação de perfis

Google Social Graph API

microformatos juntando as peças do puzzle Como usar?

quem beneficia?Serviços Externos = APIs com fácil deployment

Page 49: Microformatos - juntando as peças do puzzle

Interligação de perfis

microformatos juntando as peças do puzzle

http://workshop.andr3.net/xfnexplorer

XFN Explorer

Como usar?

quem beneficia?Serviços Externos = APIs com fácil deployment

Page 50: Microformatos - juntando as peças do puzzle

Portabilidade dos Dados

dopplr.com

microformatos juntando as peças do puzzle Como usar?

Page 51: Microformatos - juntando as peças do puzzle

Portabilidade dos Dados

http://slideshare.net/andr3/

O Fim dos utilizadores tabula rasa?

7 de Setembro de 2008

microformatos juntando as peças do puzzle Como usar?

Page 52: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

Como publicar?

Page 53: Microformatos - juntando as peças do puzzle

Plain Old Semantic HTML

POSH

Código Validado http://validator.w3.org

Deixar de usar tabelas por motivos de apresentação, GIFs transparentes e HTML de apresentação.

Corrigir <B>ed & <BR>eakfast

1.

2.

3.

Remover links anorécticos <a name=”noticia”></a>

Usar classes com valor semântico

4.

5.

Como publicar?microformatos juntando as peças do puzzle

Page 54: Microformatos - juntando as peças do puzzle

Design Patterns

class

reldatetime

abbr

grdloizaga

Como publicar?microformatos juntando as peças do puzzle

class - o mais usualrel - usando no xfn, rel-*abbr, que engloba o polémico datetimeinclude, não vamos abordar

Page 55: Microformatos - juntando as peças do puzzle

Padrão class

This attribute assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters.(HTML 4)

Como publicar?microformatos juntando as peças do puzzle

Este atributo estipula um ou mais nomes para a classe de um elemento.A mesma classe pode exisitir em mais que um elemento e cada elemento pode ter mais do que uma classe, separadas por espaços.

Page 56: Microformatos - juntando as peças do puzzle

Padrão class

<p class=”vcard”><a class=”url fn”href=”http://andr3.net”>André Luís</a></p>

Como publicar?microformatos juntando as peças do puzzle

Page 57: Microformatos - juntando as peças do puzzle

Padrão rel

This attribute describes the relationship from the current document to the anchor specified by the href attribute. The value of this attribute is a space-separated list of link types.(HTML 4)

<a> <link>

Como publicar?microformatos juntando as peças do puzzle

Page 58: Microformatos - juntando as peças do puzzle

Padrão rel

<p class=”vcard”><a class=”fn url” rel=”me”href=”http://andr3.net”>André Luís</a></p>

Como publicar?microformatos juntando as peças do puzzle

Page 59: Microformatos - juntando as peças do puzzle

Padrão abbr

The content of the ABBR and ACRONYM elements specifies the abbreviated expression itself, as it would normally appear in running text. The title attribute of these elements may be used to provide the full or expanded form of the expression.(HTML4)

Como publicar?microformatos juntando as peças do puzzle

Page 60: Microformatos - juntando as peças do puzzle

Padrão abbr

<p class=”vcard”><a class=”url” rel=”me”href=”http://andr3.net”><abbr class=”fn” title=”André Luís”>André</abbr></p>

Como publicar?microformatos juntando as peças do puzzle

Page 61: Microformatos - juntando as peças do puzzle

Padrão datetime

<p class=”vevent”><span class=”fn”>SHiFT</span><abbr class=”dtstart” title=”2008-10-15”>15 de Outubro</abbr></p>

data em formato ISO 86012008-10-15200810152008-10-15T10:002008-10-15T10:00+052008-10-15T10:00Z

exemplos

Como publicar?microformatos juntando as peças do puzzle

hatom, hcalendar, hcard e hreviewoverview: http://www.cl.cam.ac.uk/~mgk25/iso-time.html+5 => GMT+5Z => Zero Meridian = UTC (Coordinated Universal Time/Temps Universel Coordonné)

Page 62: Microformatos - juntando as peças do puzzle

Padrão datetime

<abbr class=”dtstart” title=”20070312T1700-06”>12 de Março de 2007, a partir das17h</abbr>

Twenty million seventy-thousand three-hundred twelve tee seventeen-hundred dash zero six.

“”

Jaws 8 + IE 7

20 070 312 T 1700 - 06

fonte: hAccessibility @ Webstandards.orghttp://www.webstandards.org/2007/04/27/haccessibility/

Como publicar?microformatos juntando as peças do puzzle

hatom, hcalendar, hcard e hreview(NÃO ESQUECER: click! para ouvir mp3)problema existe também no email type=”work” e duração do hAudio.

Page 63: Microformatos - juntando as peças do puzzle

Padrão datetime

<abbr class=”dtstart” title=”20070312T1700-06”>12 de Março de 2007, a partir das17h</abbr>

Twenty million seventy-thousand three-hundred twelve tee seventeen-hundred dash zero six.

“”

Jaws 8 + IE 7

20 070 312 T 1700 - 06

fonte: hAccessibility @ Webstandards.orghttp://www.webstandards.org/2007/04/27/haccessibility/

Como publicar?microformatos juntando as peças do puzzle

hatom, hcalendar, hcard e hreview(NÃO ESQUECER: click! para ouvir mp3)problema existe também no email type=”work” e duração do hAudio.

Page 64: Microformatos - juntando as peças do puzzle

BBC

http://www.bbc.co.uk/blogs/radiolabs/2008/06/removing_microformats_from_bbc.shtml

Como publicar?microformatos juntando as peças do puzzle

Page 65: Microformatos - juntando as peças do puzzle

Atenção

<div class=”vevent”> <h3 class=”category”>Brasileira</h3> <h1> <a class=”summary” href="/detalhe_evento.aspx?id=48568">

Adriana Calcanhotto - «Maré»</a></h1>

<h2><a class=”location” href="detalhe_local.aspx?id=146">Coliseu do Porto</a></h2>

<h3><abbr class=”dtstart” title=”2008-05-29”>29-05-2008</abbr> a <abbr class=”dtend” title=”2008-05-31”>30-05-2008</abbr></h3></div>

!

Como publicar?microformatos juntando as peças do puzzle

From SAPO Cultura

dtend é exclusivo, isto é, o evento acaba imediatamente ANTES do dtend.Sem hora, assume 0:00.

Page 66: Microformatos - juntando as peças do puzzle

Atenção

<div class=”vevent”> <h3 class=”category”>Brasileira</h3> <h1> <a class=”summary” href="/detalhe_evento.aspx?id=48568">

Adriana Calcanhotto - «Maré»</a></h1>

<h2><a class=”location” href="detalhe_local.aspx?id=146">Coliseu do Porto</a></h2>

<h3><abbr class=”dtstart” title=”2008-05-29T21:00+01”>29-05-2008</abbr>a <abbr class=”dtend” title=”2008-05-30T21:00:+01”>30-05-2008</abbr></h3></div>

Como publicar?microformatos juntando as peças do puzzle

From SAPO Cultura

dtend é exclusivo, isto é, o evento acaba imediatamente ANTES do dtend.Sem hora, assume 0:00.

Page 67: Microformatos - juntando as peças do puzzle

hCard

Como publicar?microformatos juntando as peças do puzzle

Page 68: Microformatos - juntando as peças do puzzle

Propriedades

fnn*

obrigatórias

nicknameurlemailadrgeophotologosoundbday

facultativas

titleroleorgcategorynoteclasskey...

Sujar as mãos

raíz:

vcard

microformatos juntando as peças do puzzle

n (family-name, given-name, additional-name, honorific-prefix, honorific-suffix)* Ver n-optimization na wiki oficial. n pode ser deixado de fora. valor de fn for 2 palavras separadas por um espaço: - 1st word: given-name - last word: family-name - se 1st word acabar com “,”, então inverte.

Page 69: Microformatos - juntando as peças do puzzle

Exemplo

Sujar as mãos

<div class="outLine"> <div class="inBoxUtilizador"> <div class="topoUtilizador"><strong>andr3</strong></div>

<div class="info"> <div id="infopics"><a href="perfilamigo.html?uid=75"><img src="http://social.imgs.sapo.pt/8a/0b/df/75/pro_n733982142_189405_9522.jpg" border="0" /> </a></div>

...

microformatos juntando as peças do puzzle

from SAPO Spot

Page 70: Microformatos - juntando as peças do puzzle

Exemplo

Sujar as mãos

<div class="outLine vcard"> <div class="inBoxUtilizador"> <div class="topoUtilizador fn nickname"><strong>andr3</strong></div>

<div class="info"> <div id="infopics"><a class= "url" href="perfilamigo.html?uid=75"><img class="photo" src="http://social.imgs.sapo.pt/8a/0b/df/75/pro_n733982142_189405_9522.jpg" border="0" /> </a></div>

...

microformatos juntando as peças do puzzle

from SAPO Spot

Page 71: Microformatos - juntando as peças do puzzle

microformatos juntando as peças do puzzle

Como consumir?

Page 72: Microformatos - juntando as peças do puzzle

HTML Scraping?

Como consumir?microformatos juntando as peças do puzzle

retornam objectos extraídos das páginashkit - jan 2008 - hcard+xfncognition - adr, geo, hatom, haudio, hcalendar, hcard, hrecipe, hresume, hreview, rel-enclosure, rel-license,rel-tag, xfn, xfolk, ... + RDFa, eRDF, GRDDL, RDF. Também html title meta e link tags,figure, doc outline of html5, xoxo, xhtml @role. Output em: turtle, rdf/xml, rdf/json, trix, vcard, jcard, icalendar, atom, kml, m3u, recipebook xml,Optimus: xml, json, json-p, rss. hcal, hentry, hreview, haudio, adr, xfn, rel-nofollow, rel-license, hcard, hresume, hlisting, xfolkentry, geo, votelinks, rel-tag

Page 73: Microformatos - juntando as peças do puzzle

Parsers/Scrapers

Perl Cognition http://buzzword.org.uk/cognition/Toby Inkster

WS Optimus http://microformatique.com/optimus/Dmitry Baranovskiy (hcard, hcalendar, hreview, hatom, hresume, xfolk, geo, adr, xfn, vote-links, hlisting, haudio, rel-nofollow, rel-license, rel-tag)

Ruby mofo http://mofo.rubyforge.org/Chris Wanstrath (hcard, hcalendar, hreview, hatom, hresume, geo, adr, xfn)

(adr, geo, hatom, haudio, hcalendar, hcard, hrecipe, hresume, hreview, measure,rel-enclosure, rel-license, rel-tag, species, xfn, xfolk) + RDFa, eRDF, GRDDL, RDF/XML...

Como consumir?microformatos juntando as peças do puzzle

retornam objectos extraídos das páginashkit - jan 2008 - hcard+xfncognition - adr, geo, hatom, haudio, hcalendar, hcard, hrecipe, hresume, hreview, rel-enclosure, rel-license,rel-tag, xfn, xfolk, ... + RDFa, eRDF, GRDDL, RDF. Também html title meta e link tags,figure, doc outline of html5, xoxo, xhtml @role. Output em: turtle, rdf/xml, rdf/json, trix, vcard, jcard, icalendar, atom, kml, m3u, recipebook xml,Optimus: xml, json, json-p, rss. hcal, hentry, hreview, haudio, adr, xfn, rel-nofollow, rel-license, hcard, hresume, hlisting, xfolkentry, geo, votelinks, rel-tag

Page 74: Microformatos - juntando as peças do puzzle

WS Optimus http://microformatique.com/optimus/Dmitry Baranovskiy (hcard, hcalendar, hreview, hatom, hresume, xfolk, geo, adr, xfn, vote-links, hlisting, haudio, rel-nofollow, rel-license, rel-tag)

Como consumir?microformatos juntando as peças do puzzle

retornam objectos extraídos das páginashkit - jan 2008 - hcard+xfncognition - adr, geo, hatom, haudio, hcalendar, hcard, hrecipe, hresume, hreview, rel-enclosure, rel-license,rel-tag, xfn, xfolk, ... + RDFa, eRDF, GRDDL, RDF. Também html title meta e link tags,figure, doc outline of html5, xoxo, xhtml @role. Output em: turtle, rdf/xml, rdf/json, trix, vcard, jcard, icalendar, atom, kml, m3u, recipebook xml,Optimus: xml, json, json-p, rss. hcal, hentry, hreview, haudio, adr, xfn, rel-nofollow, rel-license, hcard, hresume, hlisting, xfolkentry, geo, votelinks, rel-tag

Page 75: Microformatos - juntando as peças do puzzle

WS Optimus http://microformatique.com/optimus/Dmitry Baranovskiy (hcard, hcalendar, hreview, hatom, hresume, xfolk, geo, adr, xfn, vote-links, hlisting, haudio, rel-nofollow, rel-license, rel-tag)

Como consumir?microformatos juntando as peças do puzzle

retornam objectos extraídos das páginashkit - jan 2008 - hcard+xfncognition - adr, geo, hatom, haudio, hcalendar, hcard, hrecipe, hresume, hreview, rel-enclosure, rel-license,rel-tag, xfn, xfolk, ... + RDFa, eRDF, GRDDL, RDF. Também html title meta e link tags,figure, doc outline of html5, xoxo, xhtml @role. Output em: turtle, rdf/xml, rdf/json, trix, vcard, jcard, icalendar, atom, kml, m3u, recipebook xml,Optimus: xml, json, json-p, rss. hcal, hentry, hreview, haudio, adr, xfn, rel-nofollow, rel-license, hcard, hresume, hlisting, xfolkentry, geo, votelinks, rel-tag

Page 76: Microformatos - juntando as peças do puzzle

WS Optimus http://microformatique.com/optimus/Dmitry Baranovskiy (hcard, hcalendar, hreview, hatom, hresume, xfolk, geo, adr, xfn, vote-links, hlisting, haudio, rel-nofollow, rel-license, rel-tag)

Como consumir?microformatos juntando as peças do puzzle

retornam objectos extraídos das páginashkit - jan 2008 - hcard+xfncognition - adr, geo, hatom, haudio, hcalendar, hcard, hrecipe, hresume, hreview, rel-enclosure, rel-license,rel-tag, xfn, xfolk, ... + RDFa, eRDF, GRDDL, RDF. Também html title meta e link tags,figure, doc outline of html5, xoxo, xhtml @role. Output em: turtle, rdf/xml, rdf/json, trix, vcard, jcard, icalendar, atom, kml, m3u, recipebook xml,Optimus: xml, json, json-p, rss. hcal, hentry, hreview, haudio, adr, xfn, rel-nofollow, rel-license, hcard, hresume, hlisting, xfolkentry, geo, votelinks, rel-tag

Page 77: Microformatos - juntando as peças do puzzle

Got Cache?

http://workshop.andr3.net/cache/?url=<target-url>

http://workshop.andr3.net/cache/?url=<target-url>&ttl=<time-to-live>http://workshop.andr3.net/ufs/

http://workshop.andr3.net/ufs/?uri=http%3A%2F%2Fworkshop.andr3.net%2Fcache%2F%3Furl%3Dhttp%3A%2F%2Ftwitter.com%2Fandr3%26ttl%3D60&format=json&function=&filter=xfn

microformatos juntando as peças do puzzle Como consumir?

retornam objectos extraídos das páginashkit - jan 2008 - hcard+xfncognition - adr, geo, hatom, haudio, hcalendar, hcard, hrecipe, hresume, hreview, rel-enclosure, rel-license,rel-tag, xfn, xfolk, ... + RDFa, eRDF, GRDDL, RDF. Também html title meta e link tags,figure, doc outline of html5, xoxo, xhtml @role. Output em: turtle, rdf/xml, rdf/json, trix, vcard, jcard, icalendar, atom, kml, m3u, recipebook xml,Optimus: xml, json, json-p, rss. hcal, hentry, hreview, haudio, adr, xfn, rel-nofollow, rel-license, hcard, hresume, hlisting, xfolkentry, geo, votelinks, rel-tag

Page 78: Microformatos - juntando as peças do puzzle

Obrigado.

<p class=”vcard”>

<a class=”fn url” href=”http://andr3.net”>André Luís</a>

<a class=”email” href=”mailto:[email protected]”> [email protected]</a>

</p>

creative commonsattributionnon-commercialshare-alike 3.0

That’s all, Folks!

http://microformats.org/wiki/ http://talks.andr3.net/2008/ufs_codebits.pdfhttp://slideshare.net/andr3

microformatos juntando as peças do puzzle

http://creativecommons.org/licenses/by-nc-sa/2.5/pt/

Page 79: Microformatos - juntando as peças do puzzle

Créditos

Teia - http://www.flickr.com/photos/bitzcelt/2903751010/

Tim Berners-Lee - http://www.flickr.com/photos/pixelydixel/2712988953/

Lego - http://flickr.com/photos/grdloizaga/817443503/

Calendário - http://flickr.com/photos/pyrii/2400515074/

Etiqueta - http://flickr.com/photos/peskymac/1217139213/

microformatos juntando as peças do puzzle