drupal 7 and semantic web hands-on tutorial › files › slides_austin_part1.pdfdrupal 7 and...

31
Drupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet, <[email protected]> Austin, TX – Sat, October 1 st 2011 Rich Snippets

Upload: others

Post on 27-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Drupal 7 and Semantic Web Hands-on Tutorial

Stéphane Corlosquet, <[email protected]>Austin, TX – Sat, October 1st 2011

Rich Snippets

Page 2: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

About the speaker

● 5 years with Drupal● Drupal core maintainer (RDF)● Drupal Security Team member● Co-authored the

Definitive Guide to Drupal 7● Co-maintain RDF Extensions,

SPARQL, schema.org● Software engineer at

MIND Informatics in Boston.

Page 3: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

What is Drupal?

Page 4: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Drupal

● Small news site in 2000● Open Source - 2001● Content Management System● LAMP stack● Non-developers can build sites

and publish content● Control panels instead of code

http://www.flickr.com/photos/funkyah/2400889778/

Page 5: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Drupal

● Open & modular architecture

● Extensible by modules● Standards-based● Low resource hosting● Scalable

Page 6: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Building a Drupal site

http://www.flickr.com/photos/toomuchdew/3792159077/

Page 7: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Building a Drupal site

http://www.flickr.com/photos/georgivar/4795856532/

Page 8: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Building a Drupal site

● Create the content types you need: Blog, article, wiki, forum, polls, image, video, podcast, e-commerce... (be creative)

http://www.flickr.com/photos/georgivar/4795856532/

Page 9: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Building a Drupal site

● Enable the features you want:

Comments, tags, voting/rating, location, translations, revisions, search...

http://www.flickr.com/photos/skip/42288941/

Page 10: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Building a Drupal site

● Place links in the navigation bars and blocks

● Build Views over your data

http://www.flickr.com/photos/skip/42288887/

Page 11: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Building a Drupal site

Thousands of free contributed modules ● Google Analytics● Wysiwyg● Captcha● Calendar● XML sitemap● Five stars● Twitter● ...

http://www.flickr.com/photos/kaptainkobold/1422600992/

Page 12: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Drupal inside

● Database storage (PDO)

● Cron

● Queue / batch API

● File management

● User management

● Form API

● Security

http://www.flickr.com/photos/kerim/5588760/

Page 13: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

The Drupal Community

http://webchick.net/node/80

“It’s really the Drupal community and not so much the software that makes the Drupal project what it

is. So fostering the Drupal community is actually more important than just managing the code base.” -

Dries Buytaert

Page 14: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

200+ Local user groups

including http://groups.drupal.org/boston

Page 15: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Doubles in size each release

● Drupal 6 - 330,000+ sites● Drupal 7 - 160,000+ sites

● Estimation of 2% of the Web (source: Dries Buytaert)

http://drupal.org/project/usage/drupal

Page 16: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Who uses Drupal?

Page 17: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Who uses Drupal?

Page 18: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Who uses Drupal?

Page 19: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Who uses Drupal?

http://buytaert.net/tag/drupal-sites

Page 20: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Rich Snippets

Page 24: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Why Structured Data in HTML

● Help machines extract relevant data from HTML

● Can make use of this data in amazing ways (e.g. enhanced search results)

Page 25: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Structured Data in HTML

● Add or alter HTML attributes● Syntaxes

– Microformats (@class)– RDFa (@property, @about, @typeof, ...)– Microdata (@itemscope, @itemtype, @itemprop, ...)

Page 26: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Schema.org

Page 27: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Schema.org

● Describe the type of your content (Person, Event, Recipe, Product, Book, Movie, etc.)

● Each type has a set of properties– Common properties: name, description, image, url– Specific properties depending on the type (see type page

on schema.org)

Page 28: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Schema.org

Page 29: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Schema.org module for Drupal

● UI instead of code● Map your content types and fields to the

schema.org terms

http://drupal.org/project/schemaorg

Page 30: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Example: Event

Page 31: Drupal 7 and Semantic Web Hands-on Tutorial › files › slides_austin_part1.pdfDrupal 7 and Semantic Web Hands-on Tutorial Stéphane Corlosquet,  Austin,

Rich Snippet testing tool

● http://www.google.com/webmasters/tools/richsnippets