Semantic Web @ Drupal Camp Dallas2009


Published on

This presentation on the Semantic Web gives an overview of Microformats and RDFa, discusses their uses in Drupal 6 and 7, and offers useful links to get you started.

Presented by Chris Ruppel at DrupalCamp Dallas 2009.

Published in: Technology, Education
  • Be the first to comment

Semantic Web @ Drupal Camp Dallas2009

  1. 1. Semantic Web originally presented at DrupalCamp Dallas 2009 Chris Ruppel @rupl
  2. 2. What is the Semantic Web? <ul><li>Current web is made of generic documents linking to each other </li></ul><ul><li>Semantic web is composed of meaningful documents that declare their relationships in a machine-readable way. </li></ul>
  3. 3. How do they differ? <ul><li>HTML is a display language. It only specifies paragraphs, lists, headings etc. </li></ul><ul><li>We want to tell the world about the *nature* of our content, not just the formatting. </li></ul>
  4. 4. <ul><li>Way more useful to computers. It’s like having a database described via XHTML. </li></ul><ul><li>They can transform data in ways we couldn’t see before. </li></ul><ul><li>They can automate tedious tasks, or extend the functionality of our applications. </li></ul>How is it Beneficial to Us?
  5. 5. <ul><li>Well-chosen HTML Tags </li></ul><ul><li>Links to other pages on same domain </li></ul><ul><li>Heading 1 </li></ul><ul><li>Paragraphs of words words words words words words words words words words words words words </li></ul><ul><li>Link to different website </li></ul><ul><li>Link to different website </li></ul><ul><li>Some mildly related words </li></ul><ul><li>Semantic Metadata in HTML </li></ul><ul><li>Site Navigation </li></ul><ul><li>Article Title </li></ul><ul><li>Main content of this document, contains the bulk of the useful info that a reader will be searching for. </li></ul><ul><li>Article Reference #1 </li></ul><ul><li>Article Reference #2 </li></ul><ul><li>Sponsored Text Ads </li></ul>
  6. 6. What’s the Benefit? <ul><li>Helping Search Engines Help Us All </li></ul><ul><li>Rich Snippets make search results more useful </li></ul><ul><li>No need for a branded social network, the whole internet will suffice! </li></ul>
  7. 7. Awesome, but How? <ul><li>Microformats </li></ul><ul><li>Simple conventions made of classes in HTML </li></ul><ul><li>Focus on common, real-world content types </li></ul><ul><ul><li>hCard – contact information </li></ul></ul><ul><ul><li>hReview – reviews of products, events, businesses, etc </li></ul></ul><ul><ul><li>XFN – XHTML Friends Network, describes social relationships </li></ul></ul><ul><ul><li>rel-tag – for a glossary term or definition </li></ul></ul><ul><li>RDF / RDFa </li></ul><ul><li>A W3C standard for defining any type of content using “triples” </li></ul><ul><li>Designed to be public, decentralized and reusable by anyone/anything </li></ul><ul><li>Integrate any combination of vocabularies to make your own mashup </li></ul>
  8. 8. Microformats in Drupal <ul><li>You might use microformats already! </li></ul><ul><li>Drupal Modules </li></ul><ul><ul><li>Tagadelic outputs rel-tag </li></ul></ul><ul><ul><li>Location can output hCard (kind of incomplete) </li></ul></ul>
  9. 9. RDFa in Drupal 7 Core <ul><li>Dries originally included RDF support in 2000 </li></ul><ul><li>Challenged the community to get RDFa into Drupal 7 core </li></ul><ul><li>CCK provides all the data RDFa needs </li></ul><ul><li>Everyone can publish semantic data easily! </li></ul>
  10. 10. High-Profile Examples <ul><li>XFN on Facebook </li></ul><ul><li>hCard on Twitter </li></ul><ul><li>rel-tag on Technorati </li></ul><ul><li>RDFa on Digg </li></ul>
  11. 11. Live Demos - Microformats <ul><li> - Reviews </li></ul><ul><ul><li>hReview </li></ul></ul><ul><ul><li>hCard </li></ul></ul><ul><ul><li>rel-tag </li></ul></ul><ul><ul><li>rel-home </li></ul></ul><ul><ul><li>rel-bookmark (permalink) </li></ul></ul><ul><li>Hundreds of examples at </li></ul>
  12. 12. Live Demos - RDFa <ul><li> </li></ul><ul><ul><li>DC and FOAF </li></ul></ul><ul><li> </li></ul><ul><ul><li>FOAF </li></ul></ul><ul><ul><li>XFN </li></ul></ul>
  13. 13. Useful Links <ul><li>Example that shows how Microformats and RDFa intersect </li></ul><ul><li>Getting started with RDFa </li></ul><ul><li>Bookmarklet to check any page for RDFa elements </li></ul><ul><li>FOAF Spec </li></ul><ul><li>Google Webmasters RDFa Help http:// = en&answer =146898 http:// =146645 </li></ul><ul><li>Open Calais Module for Drupal </li></ul>