SlideShare a Scribd company logo
Microdata
Extending Semantics
          jacobtan@2011-11
  http://www.hotels2map.com/blog/
Semantics
Why?
• Clean - read / edit / reuse
• More accessible - devices
• Search engine friendly - content / code / understand

What?
• Text-Level Semantics Elements - a / em / strong (inline)
• Structural Semantic Elements - p / h1… / article / header (block)
• Interactive Semantics - detail / summary / command / menu

Semantics web
• data’s common formats and integration
• the data relates to real world objects
Extending Semantics
Why? - Limited Html labels and attributes/infinite objects of the world

• Mark up a Object?           person/event/review/product/movie
  <person> <name>your name<name></person>


• Web’s Data?        for script / machines
  <div yourData=“data for machine”>visible content</div>
Extending Semantics
• custom data attribute
Data-*   private for your page or app
<div data-name-alice="fake name">your name</div>
elementNode.dataset.nameAlice(); (firefox/chrome/safari/opera)


• WAI-ARIA?
Extending Semantics
Mark up a Object : person/movie /product …

public for your page or app and other machines
•   Microformats
•   RDFa
•   Microdata
•   …
Microformats
<div class="vcard">
 My name is
 <span class="fn">Bob Smith</span>,
 Here is my home page:
 <a href="http://www.example.com" class="url">www.example.com</a>.
</div>

Calss

Designed for humans first and machines second, data formats
http://microformats.org/about

Dom API
document.getElementsByClassName("className")
document.querySelectorAll(".className")
RDFa
<div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Person">
 My name is <span property="v:name">Bob Smith</span>,
 Here is my homepage:
 <a href="http://www.example.com" rel="v:url">www.example.com</a>.
</div>

Bridging the Human and Data Webs
a set of XHTML attributes to augment visual data with machine-readable hints
http://www.w3.org/TR/xhtml-rdfa-primer/


vocabulary & property
Dom API
document.getItemsByType("http://xmlns.com/foaf/0.1/Person");
document.getItemByProperty("foaf:name", "Albert Einstein");
RDFa Lite
<p vocab="http://schema.org/" typeof="Person">
   My name is<span property="name">Manu Sporny</span>
   and you can give me a ring via<span property="telephone">1-800-555-
   0155</span>.
   <img rel="image" src="http://manu.sporny.org/images/manu.png" />
</p>

schema

http://www.w3.org/2010/02/rdfa/sources/rdfa-lite/#about
Microdata
<div itemscope itemtype="http://data-vocabulary.org/Person">
 My name is <span itemprop="name">Bob Smith</span>,
 Here is my homepage:
 <a href="http://www.example.com" itemprop="url">www.example.com</a>.
</div>

allows machine-readable data to be embedded in HTML documents
in an easy-to-write manner
http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html
Choose your way
•   Easy?
•   Bonus?
•   Forward?
•   Standard?
Microdata

 • Easy (simplicity & extensibility)
 • HTML5 (forward & standard)
 • Schema.org (search engine bonus)
Microdata semantic-extend
Microdata & Schema
<div itemscope itemtype="http://schema.org/Person">
 My name is <span itemprop="name">Bob Smith</span>
 Here is my homepage:
 <a href="http://www.example.com" itemprop="url">www.example.com</a>.
</div>

Itemscope    声明数据
Itemtype     指定数据类型        http://schema.org/Person http://schema.org/Movie ....
Itemprop     指定数据某个属性

DOM API     document.getItems("http://schema.org/Person") opera11.60+

详细文档
http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html#the-basic-syntax
统一词汇库 schema.org
data-vocabulary.org VS schema.org
schema.org
<meta itemprop="priceCurrency" content="CNY" />
<div itemscope itemtype="http://schema.org/WebPage">
     <div itemprop="breadcrumb">
       <a href="#">数码家电</a> > <a href="#">手机</a> > <a href="#">Htc</a>
     </div>
</div>

data-vocabulary.org
<meta itemprop="currency" content="CNY" />
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
     <a href="#" itemprop="url"><span itemprop="title">数码家电</span></a>
</div>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
     <a href="#" itemprop="url"><span itemprop="title">手机</span></a>
</div>
Google富网摘( Rich snippets)
http://www.google.com/support/webmasters/bin/topic.py?hlrm=en&topic=21997

•   Microformats
•   RDFa
•   Microdata
Rich Snippets Testing Tool
http://www.google.com/webmasters/tools/richsnippets?url=https%3A%2F%2Fblue-sea-697d.quartiers047.workers.dev%3A443%2Fhttp%2Fwww.hotels2map.com%2Fblog%2Fd11004%2F&view=



<div itemscope itemtype="http://schema.org/Product">
       <span itemprop="name">Kenmore White 17" Microwave</span>
       <img src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' />
       <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
                 Rated <span itemprop="ratingValue">3.5</span>/5
                 based on <span itemprop="reviewCount">11</span> customer reviews
       </div>
       <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
                 <span itemprop="price">$55.00</span>
                 <link itemprop="availability" href="http://schema.org/InStock" />In stock
       </div>
       Product description:
       <span itemprop="description">0.7 cubic feet countertop microwave. Has six preset cooking categories and convenience features like
       Add-A-Minute and Child Lock.</span>
</div>
THX Q&A

More Related Content

What's hot (19)

PPT
SES Toronto 2008; Joe Dolson
Joseph Dolson
 
PPTX
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Bastian Grimm
 
PDF
Real World Web Standards
gleddy
 
ODP
Moving from Web 1.0 to Web 2.0
Estelle Weyl
 
ZIP
Design Tips & Development with jQuery Mobile and PhoneGap
GO Ohtani
 
PPTX
Seo and analytics basics
Sreekanth Narayanan
 
PDF
SEO Tools of the Trade - Barcelona Affiliate Conference 2014
Bastian Grimm
 
PPTX
Structured Data in WordPress
randyhoyt
 
PPTX
JavaScript SEO Ungagged 2019 Patrick Stox
patrickstox
 
PDF
Seo Cheat Sheet
Anchal Thakur
 
PDF
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Nicholas Zakas
 
PDF
Microformats HTML to API
elliando dias
 
PPTX
Seozone - 5 tips
Anna Morrison
 
PPT
prestiva_blackhat
Murali Venkatesh
 
PDF
How I learned to stop worrying and love the .htaccess file
Roxana Stingu
 
PPTX
Structured Data & Schema.org - SMX Milan 2014
Bastian Grimm
 
PPTX
Data Visualization for SEO
Ahrefs
 
PPT
Overview of how to do SEO
Chris Finne
 
PPTX
On-Page SEO EXTREME - SEOZone Istanbul 2013
Bastian Grimm
 
SES Toronto 2008; Joe Dolson
Joseph Dolson
 
Technical SEO: Crawl Space Management - SEOZone Istanbul 2014
Bastian Grimm
 
Real World Web Standards
gleddy
 
Moving from Web 1.0 to Web 2.0
Estelle Weyl
 
Design Tips & Development with jQuery Mobile and PhoneGap
GO Ohtani
 
Seo and analytics basics
Sreekanth Narayanan
 
SEO Tools of the Trade - Barcelona Affiliate Conference 2014
Bastian Grimm
 
Structured Data in WordPress
randyhoyt
 
JavaScript SEO Ungagged 2019 Patrick Stox
patrickstox
 
Seo Cheat Sheet
Anchal Thakur
 
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Nicholas Zakas
 
Microformats HTML to API
elliando dias
 
Seozone - 5 tips
Anna Morrison
 
prestiva_blackhat
Murali Venkatesh
 
How I learned to stop worrying and love the .htaccess file
Roxana Stingu
 
Structured Data & Schema.org - SMX Milan 2014
Bastian Grimm
 
Data Visualization for SEO
Ahrefs
 
Overview of how to do SEO
Chris Finne
 
On-Page SEO EXTREME - SEOZone Istanbul 2013
Bastian Grimm
 

Viewers also liked (8)

PDF
31st Integrated DB MTG in NIBIO
Maori Ito
 
PDF
Presentation forpd bj_1
Maori Ito
 
PPTX
40th MTG in NIBIO
Maori Ito
 
PPTX
38th MTG in NIBIO
Maori Ito
 
PPTX
41st MTG in NIBIO
Maori Ito
 
PPTX
42nd MTG in NIBIO
Maori Ito
 
PPSX
Lod farm
carolpeckert
 
PPSX
Lod farm
carolpeckert
 
31st Integrated DB MTG in NIBIO
Maori Ito
 
Presentation forpd bj_1
Maori Ito
 
40th MTG in NIBIO
Maori Ito
 
38th MTG in NIBIO
Maori Ito
 
41st MTG in NIBIO
Maori Ito
 
42nd MTG in NIBIO
Maori Ito
 
Lod farm
carolpeckert
 
Lod farm
carolpeckert
 
Ad

Similar to Microdata semantic-extend (20)

PDF
Microformats I: What & Why
Rachael L Moore
 
PPT
Pimp your content with structured data
loonytoons
 
PDF
semantic markup using schema.org
Joshua Shinavier
 
PPTX
Microdata for Dummies
giurca
 
PPTX
Introduction to Microdata & Google Rich Snippets
Kishan Gor
 
PPTX
Hacking the Google Snippet - Digpen 7 workshop
Ian Macfarlane
 
PPTX
Microdata for dummies
Binarypark UG
 
PDF
GDI Seattle - Intermediate HTML and CSS Class 3 Slides
Heather Rock
 
KEY
Darwin web standards
Justin Avery
 
PPTX
Html microdata
AbhishekMondal42
 
PPTX
Semantic web support for POSH
Dinu Suman
 
PPTX
Semantic Collabration Compass
huajunsir
 
PDF
Searching the Web of Data (Tutorial)
Gerard de Melo
 
PPTX
How to Boost Your SEO by Using Schema Markup?
http://www.pushpendra.net
 
PDF
Integrating Product Data from Websites offering Microdata Markup
Volha Bryl
 
PPTX
On line presence of the touristic accommodation industry 18.06.2013
STIinnsbruck
 
PPTX
Introduction to Microdata & Google Rich Snippets
Plus91 Technologies Pvt. Ltd.
 
PPT
Microformats Workshop (2009)
Kelley Howell
 
PPTX
Schemas
Leonardo Ortega
 
PDF
Semantic Searchmonkey
Paul Tarjan
 
Microformats I: What & Why
Rachael L Moore
 
Pimp your content with structured data
loonytoons
 
semantic markup using schema.org
Joshua Shinavier
 
Microdata for Dummies
giurca
 
Introduction to Microdata & Google Rich Snippets
Kishan Gor
 
Hacking the Google Snippet - Digpen 7 workshop
Ian Macfarlane
 
Microdata for dummies
Binarypark UG
 
GDI Seattle - Intermediate HTML and CSS Class 3 Slides
Heather Rock
 
Darwin web standards
Justin Avery
 
Html microdata
AbhishekMondal42
 
Semantic web support for POSH
Dinu Suman
 
Semantic Collabration Compass
huajunsir
 
Searching the Web of Data (Tutorial)
Gerard de Melo
 
Integrating Product Data from Websites offering Microdata Markup
Volha Bryl
 
On line presence of the touristic accommodation industry 18.06.2013
STIinnsbruck
 
Introduction to Microdata & Google Rich Snippets
Plus91 Technologies Pvt. Ltd.
 
Microformats Workshop (2009)
Kelley Howell
 
Semantic Searchmonkey
Paul Tarjan
 
Ad

Recently uploaded (20)

PDF
July Patch Tuesday
Ivanti
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
July Patch Tuesday
Ivanti
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Python basic programing language for automation
DanialHabibi2
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 

Microdata semantic-extend

  • 1. Microdata Extending Semantics jacobtan@2011-11 http://www.hotels2map.com/blog/
  • 2. Semantics Why? • Clean - read / edit / reuse • More accessible - devices • Search engine friendly - content / code / understand What? • Text-Level Semantics Elements - a / em / strong (inline) • Structural Semantic Elements - p / h1… / article / header (block) • Interactive Semantics - detail / summary / command / menu Semantics web • data’s common formats and integration • the data relates to real world objects
  • 3. Extending Semantics Why? - Limited Html labels and attributes/infinite objects of the world • Mark up a Object? person/event/review/product/movie <person> <name>your name<name></person> • Web’s Data? for script / machines <div yourData=“data for machine”>visible content</div>
  • 4. Extending Semantics • custom data attribute Data-* private for your page or app <div data-name-alice="fake name">your name</div> elementNode.dataset.nameAlice(); (firefox/chrome/safari/opera) • WAI-ARIA?
  • 5. Extending Semantics Mark up a Object : person/movie /product … public for your page or app and other machines • Microformats • RDFa • Microdata • …
  • 6. Microformats <div class="vcard"> My name is <span class="fn">Bob Smith</span>, Here is my home page: <a href="http://www.example.com" class="url">www.example.com</a>. </div> Calss Designed for humans first and machines second, data formats http://microformats.org/about Dom API document.getElementsByClassName("className") document.querySelectorAll(".className")
  • 7. RDFa <div xmlns:v="http://rdf.data-vocabulary.org/#" typeof="v:Person"> My name is <span property="v:name">Bob Smith</span>, Here is my homepage: <a href="http://www.example.com" rel="v:url">www.example.com</a>. </div> Bridging the Human and Data Webs a set of XHTML attributes to augment visual data with machine-readable hints http://www.w3.org/TR/xhtml-rdfa-primer/ vocabulary & property Dom API document.getItemsByType("http://xmlns.com/foaf/0.1/Person"); document.getItemByProperty("foaf:name", "Albert Einstein");
  • 8. RDFa Lite <p vocab="http://schema.org/" typeof="Person"> My name is<span property="name">Manu Sporny</span> and you can give me a ring via<span property="telephone">1-800-555- 0155</span>. <img rel="image" src="http://manu.sporny.org/images/manu.png" /> </p> schema http://www.w3.org/2010/02/rdfa/sources/rdfa-lite/#about
  • 9. Microdata <div itemscope itemtype="http://data-vocabulary.org/Person"> My name is <span itemprop="name">Bob Smith</span>, Here is my homepage: <a href="http://www.example.com" itemprop="url">www.example.com</a>. </div> allows machine-readable data to be embedded in HTML documents in an easy-to-write manner http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html
  • 10. Choose your way • Easy? • Bonus? • Forward? • Standard?
  • 11. Microdata • Easy (simplicity & extensibility) • HTML5 (forward & standard) • Schema.org (search engine bonus)
  • 13. Microdata & Schema <div itemscope itemtype="http://schema.org/Person"> My name is <span itemprop="name">Bob Smith</span> Here is my homepage: <a href="http://www.example.com" itemprop="url">www.example.com</a>. </div> Itemscope 声明数据 Itemtype 指定数据类型 http://schema.org/Person http://schema.org/Movie .... Itemprop 指定数据某个属性 DOM API document.getItems("http://schema.org/Person") opera11.60+ 详细文档 http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html#the-basic-syntax
  • 15. data-vocabulary.org VS schema.org schema.org <meta itemprop="priceCurrency" content="CNY" /> <div itemscope itemtype="http://schema.org/WebPage"> <div itemprop="breadcrumb"> <a href="#">数码家电</a> > <a href="#">手机</a> > <a href="#">Htc</a> </div> </div> data-vocabulary.org <meta itemprop="currency" content="CNY" /> <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="#" itemprop="url"><span itemprop="title">数码家电</span></a> </div> <div itemscope itemtype="http://data-vocabulary.org/Breadcrumb"> <a href="#" itemprop="url"><span itemprop="title">手机</span></a> </div>
  • 17. Rich Snippets Testing Tool http://www.google.com/webmasters/tools/richsnippets?url=https%3A%2F%2Fblue-sea-697d.quartiers047.workers.dev%3A443%2Fhttp%2Fwww.hotels2map.com%2Fblog%2Fd11004%2F&view= <div itemscope itemtype="http://schema.org/Product"> <span itemprop="name">Kenmore White 17" Microwave</span> <img src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' /> <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> Rated <span itemprop="ratingValue">3.5</span>/5 based on <span itemprop="reviewCount">11</span> customer reviews </div> <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <span itemprop="price">$55.00</span> <link itemprop="availability" href="http://schema.org/InStock" />In stock </div> Product description: <span itemprop="description">0.7 cubic feet countertop microwave. Has six preset cooking categories and convenience features like Add-A-Minute and Child Lock.</span> </div>