Your SlideShare is downloading. ×
0
Semantic DrupalRDF in Drupal 7 and what it means for the web at large<br />Gaurav Kumar<br />
Gaurav Kumar<br /><ul><li>Team Lead at Blisstering Solutions
With Drupal for 3 years
Lead Architect of m2Serve, a multi-modal Drupal based platform
Maintainer of the mailalias module on drupal.org
Works with multiple technologies – Mobile, Voice, Web</li></li></ul><li>Explosion<br />of<br />Social networks<br />and co...
Need a way to connect these<br />People can move from one to another and bring their data.<br />People can make sense out ...
“On the Internet, nobody knows you’re a dog”<br />
Semantic Web<br />
Semantic Web Benefits<br /><ul><li>Programs and sites can exchange information
Search engines can display more relevant information in results
Data mashers can combine data from different datasets to find new and astounding things</li></li></ul><li>Key Terms<br />M...
Machine Understandable<br />
RDF<br />Resource<br />Description<br />Framework<br />
RDF<br />Everything is a resource<br />A resource is a named thing<br />this<br />www.example.com#this<br />example:this<b...
RDF<br />A resource can be a Document<br />A resource can be an organization<br />A resource can be a person<br />foaf:Doc...
RDF<br />and describe how that person is related to other resources<br />swrc:employee<br />foaf:made<br />gaurav:me<br />...
RDF<br /><?xml version="1.0"?><br /><rdf:RDFxmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#<br />xmlns:dc="http://pu...
RDF Triples (N3)<br />vendor1:productX dc:title "Cool-O-Matic" . <br />vendor1:productX retail:price "$50.75" . <br />vend...
RDF Vocabularies<br />RDF Schema<br />Web Ontology Language<br />Dublin Core<br />Friend of a Friend<br />Simple Knowledge...
RDF and RDFa<br />RDFa = RDF in attributes<br />Provides a way to use RDF with HTML<br />
RDF and RDFa<br /><div xmlns:dcmi="http://purl.org/dc/elements/1.1"><br />  <h1 property="dcmi:title">OSI Days</h1><br /> ...
Giant Global Graph<br />ONE GIANT DATABASE<br />
SPARQL<br />Query the Giant Global Graph using SQL?<br />SPARQL<br />
Key Terms<br />Machine understandable<br />RDF<br />Federated Dataset<br />Linked Data<br />SPARQL<br />Global Giant Graph...
Drupal and RDF – A good match?<br /><ul><li> Both maintain structured data
Drupal’s structure is in the Database
Drupal’s field names are unique to the website
 Both maintain structured data in similar ways</li></li></ul><li>RDF in Drupal<br /><ul><li>rdf.php (Dries, 2000)
FOAF, vCard (walkah, 2004)
Relationship (dman, 2005)
 Semantic Search (hendler, 2006)
RDF (Arto, 2007)
OpenCalais (febbraro, 2008)
 RDF CCK (scor, 2008)</li></li></ul><li>Why RDF ?<br />W3C Standards<br />BBC, New York Times, Reuters, Facebook, Linkedin...
RDF in Drupal 7<br /><ul><li>In Core!!!
Upcoming SlideShare
Loading in...5
×

RDF and Drupal - The Semantic web

7,593

Published on

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
7,593
On Slideshare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
58
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Transcript of "RDF and Drupal - The Semantic web"

  1. 1. Semantic DrupalRDF in Drupal 7 and what it means for the web at large<br />Gaurav Kumar<br />
  2. 2. Gaurav Kumar<br /><ul><li>Team Lead at Blisstering Solutions
  3. 3. With Drupal for 3 years
  4. 4. Lead Architect of m2Serve, a multi-modal Drupal based platform
  5. 5. Maintainer of the mailalias module on drupal.org
  6. 6. Works with multiple technologies – Mobile, Voice, Web</li></li></ul><li>Explosion<br />of<br />Social networks<br />and collaborative applications<br />
  7. 7. Need a way to connect these<br />People can move from one to another and bring their data.<br />People can make sense out of data.<br />
  8. 8.
  9. 9. “On the Internet, nobody knows you’re a dog”<br />
  10. 10. Semantic Web<br />
  11. 11. Semantic Web Benefits<br /><ul><li>Programs and sites can exchange information
  12. 12. Search engines can display more relevant information in results
  13. 13. Data mashers can combine data from different datasets to find new and astounding things</li></li></ul><li>Key Terms<br />Machine understandable<br />RDF<br />Federated Dataset<br />Linked Data<br />SPARQL<br />Global Giant Graph<br />
  14. 14. Machine Understandable<br />
  15. 15. RDF<br />Resource<br />Description<br />Framework<br />
  16. 16. RDF<br />Everything is a resource<br />A resource is a named thing<br />this<br />www.example.com#this<br />example:this<br />CURIE<br />
  17. 17. RDF<br />A resource can be a Document<br />A resource can be an organization<br />A resource can be a person<br />foaf:Document<br />foaf:Organization<br />foaf:person<br />foaf:name - Gaurav<br />foaf:mail - gaurav.kumar@blisstering.com<br />foaf:birthday– 25/10/1987<br />
  18. 18. RDF<br />and describe how that person is related to other resources<br />swrc:employee<br />foaf:made<br />gaurav:me<br />dplp:this<br />blisstering:this<br />
  19. 19. RDF<br /><?xml version="1.0"?><br /><rdf:RDFxmlns:rdf=http://www.w3.org/1999/02/22-rdf-syntax-ns#<br />xmlns:dc="http://purl.org/dc/elements/1.1/"><br /> <rdf:Descriptionrdf:about="http://www.google.com"><br /> <dc:creator>Larry Page</dc:creator><br /> </rdf:Description><br /></rdf:RDF><br />
  20. 20. RDF Triples (N3)<br />vendor1:productX dc:title "Cool-O-Matic" . <br />vendor1:productX retail:price "$50.75" . <br />vendor1:productX vendor1:partno "TTK583" . <br />vendor1:productY dc:title "Fluffertron" . <br />vendor1:productY retail:price "$26.50" . <br />vendor1:productY vendor1:partno "AAL132" .<br />RDF Graphs<br />
  21. 21. RDF Vocabularies<br />RDF Schema<br />Web Ontology Language<br />Dublin Core<br />Friend of a Friend<br />Simple Knowledge Organization System<br /> vCard RDF Encoding<br />
  22. 22. RDF and RDFa<br />RDFa = RDF in attributes<br />Provides a way to use RDF with HTML<br />
  23. 23. RDF and RDFa<br /><div xmlns:dcmi="http://purl.org/dc/elements/1.1"><br /> <h1 property="dcmi:title">OSI Days</h1><br /> <h3 property="dcmi:creator">Gaurav Kumar</h3><br />
  24. 24. Giant Global Graph<br />ONE GIANT DATABASE<br />
  25. 25. SPARQL<br />Query the Giant Global Graph using SQL?<br />SPARQL<br />
  26. 26. Key Terms<br />Machine understandable<br />RDF<br />Federated Dataset<br />Linked Data<br />SPARQL<br />Global Giant Graph<br />
  27. 27. Drupal and RDF – A good match?<br /><ul><li> Both maintain structured data
  28. 28. Drupal’s structure is in the Database
  29. 29. Drupal’s field names are unique to the website
  30. 30. Both maintain structured data in similar ways</li></li></ul><li>RDF in Drupal<br /><ul><li>rdf.php (Dries, 2000)
  31. 31. FOAF, vCard (walkah, 2004)
  32. 32. Relationship (dman, 2005)
  33. 33. Semantic Search (hendler, 2006)
  34. 34. RDF (Arto, 2007)
  35. 35. OpenCalais (febbraro, 2008)
  36. 36. RDF CCK (scor, 2008)</li></li></ul><li>Why RDF ?<br />W3C Standards<br />BBC, New York Times, Reuters, Facebook, Linkedin<br />Google, Yahoo<br />Don’t Repeat Yourself<br />
  37. 37. RDF in Drupal 7<br /><ul><li>In Core!!!
  38. 38. FOAF, SIOC, SKOC, DC “out of the box”
  39. 39. All users have a web ID user/3#me
  40. 40. All entities have a unique ID</li></li></ul><li>RDF in Drupal 7 : The Spices<br /><ul><li>Entity Types</li></li></ul><li>RDF in Drupal 7 : The Spices<br /><ul><li>Attributes</li></li></ul><li>Drupal 7 : Default Mappings<br />
  41. 41. Use Cases<br />Rich Search Result<br />
  42. 42. Use Cases<br />RDF web page : <br />http://openspring.net/blog/2009/05/12/half-way-through-the-rdf-code-sprint-google-announces-support-for-rdfa<br />Inspection : <br />http://inspector.sindice.com/inspect?url=http://openspring.net/blog/2009/05/12/half-way-through-the-rdf-code-sprint-google-announces-support-for-rdfa#GRAPH<br />
  43. 43. Web at Large and Drupal<br /><ul><li>Drupal = Pioneer CMS
  44. 44. Platform of choice for many use cases
  45. 45. Influence the Trends
  46. 46. More RDF data on the web</li></ul>The time to adopt RDF is NOW!<br />
  47. 47. What’s coming up<br /><ul><li>RDF Mapping User Interface
  48. 48. SPARQL Endpoint
  49. 49. RDF Proxy</li></li></ul><li>Modify / Create RDF Mappings<br />/**<br />* Implements hook_rdf_namespace();<br />*/<br />functionmyrdfmodule_rdf_namespace()<br />{<br />return array(<br />‘gr’ => ‘http://purl.org/goodrelations/w1#’<br /> ‘product’ => ‘http://search.yahoo.com/searchmonkey/product/”<br />http://drupal.org/node/622170<br />
  50. 50. Modify / Create RDF Mappings<br />function node_rdf_mapping() {  return array(    array(      'type' => 'node',      'bundle' => RDF_DEFAULT_BUNDLE,      'mapping' => array(        'rdftype' => array('sioc:Item', 'foaf:Document'),        'title' => array(          'predicates' => array('dc:title'),        ),...<br />
  51. 51. Some Resources<br /><ul><li>http://groups.drupal.org/semantic-web
  52. 52. http://semantic-drupal.com/
  53. 53. http://www.w3.org/RDF/</li></li></ul><li>Thank you.<br />Contact me:<br /><ul><li>gaurav.kumar@blisstering.com
  54. 54. Linkedin.com/in/gauravkumar87</li></ul>We’re hiring!!!<br /><ul><li>Write to info@blisstering.com
  55. 55. or come find me at the conference</li>
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×