drupal 7 and the semantic web - commonscommons.esipfed.org/sites/default/files/corlosquet1.pdf ·...
TRANSCRIPT
![Page 1: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/1.jpg)
Drupal 7 and the Semantic Web
Stéphane Corlosquet, <[email protected]>MIND InformaticsESIP Federation WebinarMay 16th, 2012
![Page 2: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/2.jpg)
About the speaker
● 6 years with Drupal
● Drupal core maintainer (RDF)
● Drupal Security Team member
● Co-authored theDefinitive Guide to Drupal 7
● Co-maintain RDF Extensions,SPARQL, schema.org
● Member of the RDFa WG
● Software engineer atMIND Informatics, Cambridge, MA
![Page 3: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/3.jpg)
Drupal
● Dries Buytaert - 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 4: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/4.jpg)
Drupal
● Open & modular architecture
● Extensible by modules
● Standards-based
● Low resource hosting
● Scalable
![Page 5: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/5.jpg)
Building a Drupal site
http://www.flickr.com/photos/toomuchdew/3792159077/
![Page 6: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/6.jpg)
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 7: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/7.jpg)
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 8: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/8.jpg)
Building a Drupal site
6000 free contributed modules
● Google Analytics
● Wysiwyg
● Captcha
● Calendar
● XML sitemap
● Five stars
● ...
http://www.flickr.com/photos/kaptainkobold/1422600992/
![Page 9: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/9.jpg)
The Drupal Community
http://www.flickr.com/photos/x-foto/4923221504/
![Page 10: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/10.jpg)
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 11: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/11.jpg)
Who uses Drupal?
![Page 12: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/12.jpg)
Who uses Drupal?
![Page 13: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/13.jpg)
Who uses Drupal?
![Page 15: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/15.jpg)
Try Drupal 7
● Download and Install Drupal 7
● Grab latest release http://drupal.org/project/drupal
● Mac OS: MAMP http://www.mamp.info/
● Acquia Stack http://acquia.com/downloads
● Drupal Gardens: free Drupal 7 site http://www.drupalgardens.com/
![Page 16: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/16.jpg)
Drupal 7 and RDF
![Page 17: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/17.jpg)
History of RDF in Drupal
● rdf.php (2000, Dries)
● FOAF, vCard (2004, walkah)
● Relationship (2005, dman)
● Semantic Search (2006, hendler)
● RDF (2007, Arto)
● OpenCalais (febbraro, 2008)
● RDF CCK (2008, scor)
● and more...
![Page 18: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/18.jpg)
Experiment prior Drupal 7
● Expose Drupal's data in RDF
● Automatically
● No RDF expertise required
● Module based
http://www.flickr.com/photos/neys/2386865187
![Page 19: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/19.jpg)
Architecture
● User driven data model
● Content type = RDF class
● Field = RDF property
● Node = RDF resource
http://www.flickr.com/photos/docman/2216568210
![Page 20: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/20.jpg)
Content types and Fields
![Page 21: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/21.jpg)
Content types and Fields
![Page 22: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/22.jpg)
Node
![Page 23: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/23.jpg)
Mapping to RDF
![Page 24: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/24.jpg)
Mapping to RDF
![Page 25: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/25.jpg)
Experiment continued
● 1. Automatic site vocabulary generation
● 2. Mapping Content Models to existing ontologies
● 3. Data endpoint for SPARQL querying
● 4. Lazy loading of external data (data import)
![Page 26: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/26.jpg)
Drupal 7 and RDF
● Drupal 7 core is RDFa enabled!
● RDFa output by default on blogs, forums, comments, etc. using FOAF, SIOC, DC, SKOS
![Page 27: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/27.jpg)
Drupal 7 and RDF
![Page 28: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/28.jpg)
Rich Snippets
![Page 32: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/32.jpg)
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 33: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/33.jpg)
Structured Data in HTML
● Add or alter HTML attributes
● Syntaxes
– Microformats (@class, @rel)
– RDFa (@property, @about, @typeof, …)
– Microdata (@itemscope, @itemtype, @itemprop, …)
– RDFa Lite
![Page 34: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/34.jpg)
Schema.org
![Page 35: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/35.jpg)
Schema.org
● Describe the type of your content (Person, Event, Recipe, Product, Book, Movie, etc.)
– 290 types and counting
● 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)
– 240 properties and counting
![Page 37: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/37.jpg)
Schema.org
![Page 38: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/38.jpg)
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 39: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/39.jpg)
Example: Event
![Page 40: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/40.jpg)
Rich Snippet testing tool
● http://www.google.com/webmasters/tools/richsnippets
![Page 41: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/41.jpg)
Examples in the wild
● schema.org sandbox
– Dries: http://goo.gl/Ztx90
– 2014 Winter Olympics: http://goo.gl/PRdA0
– Apple pie recipe: http://goo.gl/yc9qv
● definitivedrupal.org
– Jacine's profile: http://goo.gl/koYiY
– DrupalCon Munich: http://goo.gl/jgMvw
– List of events: http://goo.gl/SJBXS
![Page 42: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/42.jpg)
Examples in the wild
● University of Waterloo
– School of Public Health and Health Systems launch: http://goo.gl/Df9hp
● Curling tournament calendar
– European Curling Championships 2012: http://goo.gl/YXgXl
– World Women’s Curling Championships 2013: http://goo.gl/BDNZW
![Page 43: Drupal 7 and the Semantic Web - Commonscommons.esipfed.org/sites/default/files/Corlosquet1.pdf · Drupal Open & modular architecture ... “It’s really the Drupal community and](https://reader031.vdocuments.us/reader031/viewer/2022022502/5aadc7e97f8b9a25088b681d/html5/thumbnails/43.jpg)
Thanks!
● http://drupal.org/project/schemaorg
– Download module (beta)
– Documentation on drupal.org
– Screencast + examples
● Make use of existing HTML structured data
– sindice.com
– www.commoncrawl.org (video)