SlideShare a Scribd company logo
Drupal and RDF




Stéphane Corlosquet, <scorlosquet@gmail.com>
   - Software engineer, MGH
   - Drupal developer
   - SemWeb geek

   This work is licensed under a Creative Commons Attribution 3.0 License, with attribution to Stéphane Corlosquet
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
Drupal
   ●   Open & modular
       architecture
   ●   Extensible by modules
   ●   Standards-based
   ●   Low resource hosting
   ●   Scalable
Drupal

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




                                  http://www.flickr.com/photos/grdloizaga/81742518
Drupal

●   Enable the features you
    want:

    Comments, tags, voting/rating,
    location, translations, revisions,
    search...
    (from the 3000+ modules contributed
    by the community)




                                   http://www.flickr.com/photos/grdloizaga/81742518
Drupal

●   Place links in the navigation
    bars and blocks
●   Build Views over your data




                          http://www.flickr.com/photos/grdloizaga/81742518
Who uses Drupal?
Who uses Drupal?
Who uses Drupal?
Who uses Drupal?




            http://buytaert.net/tag/drupal-sites
●   227,000 sites running
    Drupal
●   How to leverage
    all this data?




●   <insert RDF sales pitch here>

                            http://www.flickr.com/photos/bitzcelt/450640323/
Experiment in Drupal 6
●   Expose Drupal's data in
    RDF
●   Automatically
●   No RDF expertise
    required
●   Module based
●   100% PHP based



                              http://www.flickr.com/photos/neys/238686518
                              7
Architecture
●   User driven data model
●   Content type = RDF class
●   Field = RDF property
●   Node = RDF resource




                           http://www.flickr.com/photos/docman/221656821
Content types and Fields
Content types and Fields
Node
Goals
●   Re-use of published ontology terms
       –   local schema can be mapped to vocabularies like DC,
           FOAF, SIOC, etc.
●   Expressing internal Drupal constraints in OWL
       –   such as required fields and cardinalities
●   Auto-generate terms where necessary
       –   when a content type or field cannot be mapped to an
           external term
●   Safe vocabulary re-use
       –   to prevent inconsistencies on the Web of Data
Mapping to RDF
●   site:Person a rdfs:Class;
                rdfs:subClassOf foaf:Person.


●   site:first_name a rdf:Property;
                   rdfs:subPropertyOf foaf:firstName.


●   site:colleague rdfs:domain site:Person.
Mapping to RDF
Mapping to RDF
Modules for Drupal 6
●   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)
Linked Data sites eco-system
Preparing for RDF in Drupal 7
●   March 2008: first draft for schema




                                   http://groups.drupal.org/node/9311
Preparing for RDF in Drupal 7
  ●   August 2008 Szeged conference: early RDF CCK




http://szeged2008.drupalcon.org/program/sessions/drupal-and-semantic-web-neologism-project
Preparing for RDF in Drupal 7
●   March 2009 DC conference: video on RDFa in Drupal




           http://www.youtube.com/watch?v=r4WgTRIRoa0
Preparing for RDF in Drupal 7
●   May 2009, DERI Galway: RDF in core code sprint
Preparing for RDF in Drupal 7
●   October 2009: main RDF patch committed




                               http://twitter.com/Dries/status/4997311434
Drupal 7 and RDF
●   Drupal 7 core is RDFa enabled!
●
    RDFa output by default on blogs, forums,
    comments, etc. 
using FOAF, SIOC, DC, SKOS
●   Alpha release available
●   Sneak preview http://drupalrdf.openspring.net/
Drupal 7 and RDF
Drupal 7 and RDF
Conclusion
●   Drupal 7 will play a major role in exposing more
    RDF data on the web
●   Empower users to create new types of apps
●   Testing framework part of core
●   http://groups.drupal.org/semantic-web
●   http://openspring.net/
●   Questions?
Open questions beyond Drupal

●   How to push changes to consumers
●   How to pull changes from remote datasets
       –   deal with locally annotated resources

More Related Content

What's hot (20)

ODP
Apache Marmotta - Introduction
Sebastian Schaffert
 
PDF
Apache Marmotta (incubating)
Sergio Fernández
 
PDF
Groovy grailstutorial
Rasmita Patra
 
PDF
Enabling access to Linked Media with SPARQL-MM
Thomas Kurz
 
PDF
RDFauthor (EKAW)
Norman Heino
 
PDF
Geospatial Querying in Apache Marmotta - Apache Big Data North America 2016
Sergio Fernández
 
ODP
CKANCon 2016 & IODC16
Chengjen Lee
 
PDF
Linked Media Management with Apache Marmotta
Thomas Kurz
 
PPTX
Semantic web for ontology chapter4 bynk
Namgee Lee
 
PDF
Getting started with Drupal 8
Hector Iribarne
 
ODP
ckan 2.0 Introduction (20140522 updated)
Chengjen Lee
 
PPTX
Everyday Tools for the Semantic Web Developer
Rob Vesse
 
PPTX
Publishing Linked Data 3/5 Semtech2011
Juan Sequeda
 
PDF
Semantic Media Management with Apache Marmotta
Thomas Kurz
 
ODP
ckan 2.0 Introduction
Chengjen Lee
 
PDF
Towards a Commons RDF Library - ApacheCon Europe 2014
Sergio Fernández
 
PDF
Apache Arrow
Mike Frampton
 
PDF
This is an interesting metadata source. Can I import it into Koha?
Dobrica Pavlinušić
 
PPTX
Drupal Migration
永对 陈
 
Apache Marmotta - Introduction
Sebastian Schaffert
 
Apache Marmotta (incubating)
Sergio Fernández
 
Groovy grailstutorial
Rasmita Patra
 
Enabling access to Linked Media with SPARQL-MM
Thomas Kurz
 
RDFauthor (EKAW)
Norman Heino
 
Geospatial Querying in Apache Marmotta - Apache Big Data North America 2016
Sergio Fernández
 
CKANCon 2016 & IODC16
Chengjen Lee
 
Linked Media Management with Apache Marmotta
Thomas Kurz
 
Semantic web for ontology chapter4 bynk
Namgee Lee
 
Getting started with Drupal 8
Hector Iribarne
 
ckan 2.0 Introduction (20140522 updated)
Chengjen Lee
 
Everyday Tools for the Semantic Web Developer
Rob Vesse
 
Publishing Linked Data 3/5 Semtech2011
Juan Sequeda
 
Semantic Media Management with Apache Marmotta
Thomas Kurz
 
ckan 2.0 Introduction
Chengjen Lee
 
Towards a Commons RDF Library - ApacheCon Europe 2014
Sergio Fernández
 
Apache Arrow
Mike Frampton
 
This is an interesting metadata source. Can I import it into Koha?
Dobrica Pavlinušić
 
Drupal Migration
永对 陈
 

Similar to Drupal and RDF (20)

PDF
Drupal and the semantic web - SemTechBiz 2012
scorlosquet
 
PDF
Embedding Linked Data Invisibly into Web Pages: Strategies and Workflows for ...
National Information Standards Organization (NISO)
 
PDF
Linked Data Publishing with Drupal (SWIB13 workshop)
Joachim Neubert
 
PDF
Rdf
cyberswat
 
ODP
Rd Fa In Drupal
Drupalcon Paris
 
PDF
ISWC GoodRelations Tutorial Part 4
Martin Hepp
 
PDF
GoodRelations Tutorial Part 4
guestecacad2
 
PDF
Drupal and the Semantic Web - ESIP Webinar
scorlosquet
 
PPT
Semantic content management: consuming and producing RDF in Drupal
Thom Bunting
 
PDF
ISWC GoodRelations Tutorial Part 2
Martin Hepp
 
PDF
GoodRelations Tutorial Part 2
guestecacad2
 
PPT
The Semantic Web An Introduction
shaouy
 
PPTX
SuRf – Tapping Into The Web Of Data
cosbas
 
PDF
Introduction to drupal
Pedro Cambra
 
ODP
Riding the Semantic Web
Matthias Vandermaesen
 
PPTX
20100614 ISWSA Keynote
Axel Polleres
 
ZIP
SemWeb Fundamentals - Info Linking & Layering in Practice
Dan Brickley
 
PDF
Drupal 7 and schema.org module (Jan 2012)
scorlosquet
 
PPT
Year of the Monkey: Lessons from the first year of SearchMonkey
Peter Mika
 
PPT
Semantic Web Austin Yahoo
Peter Mika
 
Drupal and the semantic web - SemTechBiz 2012
scorlosquet
 
Embedding Linked Data Invisibly into Web Pages: Strategies and Workflows for ...
National Information Standards Organization (NISO)
 
Linked Data Publishing with Drupal (SWIB13 workshop)
Joachim Neubert
 
Rd Fa In Drupal
Drupalcon Paris
 
ISWC GoodRelations Tutorial Part 4
Martin Hepp
 
GoodRelations Tutorial Part 4
guestecacad2
 
Drupal and the Semantic Web - ESIP Webinar
scorlosquet
 
Semantic content management: consuming and producing RDF in Drupal
Thom Bunting
 
ISWC GoodRelations Tutorial Part 2
Martin Hepp
 
GoodRelations Tutorial Part 2
guestecacad2
 
The Semantic Web An Introduction
shaouy
 
SuRf – Tapping Into The Web Of Data
cosbas
 
Introduction to drupal
Pedro Cambra
 
Riding the Semantic Web
Matthias Vandermaesen
 
20100614 ISWSA Keynote
Axel Polleres
 
SemWeb Fundamentals - Info Linking & Layering in Practice
Dan Brickley
 
Drupal 7 and schema.org module (Jan 2012)
scorlosquet
 
Year of the Monkey: Lessons from the first year of SearchMonkey
Peter Mika
 
Semantic Web Austin Yahoo
Peter Mika
 
Ad

More from scorlosquet (10)

PDF
Using schema.org to improve SEO
scorlosquet
 
ODP
Keeping your Drupal site secure 2013
scorlosquet
 
PDF
DrupalCamp NJ 2014 Solr and Schema.org
scorlosquet
 
PDF
The Future of Search and SEO in Drupal
scorlosquet
 
PDF
Schema.org & Drupal (FR)
scorlosquet
 
PDF
Security - Drupal Decision Makers training
scorlosquet
 
PDF
Drupal 7 and schema.org module
scorlosquet
 
PDF
How to Build Linked Data Sites with Drupal 7 and RDFa
scorlosquet
 
KEY
RDF presentation at DrupalCon San Francisco 2010
scorlosquet
 
PDF
Produce and Consume Linked Data with Drupal!
scorlosquet
 
Using schema.org to improve SEO
scorlosquet
 
Keeping your Drupal site secure 2013
scorlosquet
 
DrupalCamp NJ 2014 Solr and Schema.org
scorlosquet
 
The Future of Search and SEO in Drupal
scorlosquet
 
Schema.org & Drupal (FR)
scorlosquet
 
Security - Drupal Decision Makers training
scorlosquet
 
Drupal 7 and schema.org module
scorlosquet
 
How to Build Linked Data Sites with Drupal 7 and RDFa
scorlosquet
 
RDF presentation at DrupalCon San Francisco 2010
scorlosquet
 
Produce and Consume Linked Data with Drupal!
scorlosquet
 
Ad

Drupal and RDF

  • 1. Drupal and RDF Stéphane Corlosquet, <[email protected]> - Software engineer, MGH - Drupal developer - SemWeb geek This work is licensed under a Creative Commons Attribution 3.0 License, with attribution to Stéphane Corlosquet
  • 2. 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
  • 3. Drupal ● Open & modular architecture ● Extensible by modules ● Standards-based ● Low resource hosting ● Scalable
  • 4. Drupal ● Create the content types you need: Blog, article, wiki, forum, polls, image, video, podcast, e- commerce... (be creative) http://www.flickr.com/photos/grdloizaga/81742518
  • 5. Drupal ● Enable the features you want: Comments, tags, voting/rating, location, translations, revisions, search... (from the 3000+ modules contributed by the community) http://www.flickr.com/photos/grdloizaga/81742518
  • 6. Drupal ● Place links in the navigation bars and blocks ● Build Views over your data http://www.flickr.com/photos/grdloizaga/81742518
  • 10. Who uses Drupal? http://buytaert.net/tag/drupal-sites
  • 11. 227,000 sites running Drupal ● How to leverage all this data? ● <insert RDF sales pitch here> http://www.flickr.com/photos/bitzcelt/450640323/
  • 12. Experiment in Drupal 6 ● Expose Drupal's data in RDF ● Automatically ● No RDF expertise required ● Module based ● 100% PHP based http://www.flickr.com/photos/neys/238686518 7
  • 13. Architecture ● User driven data model ● Content type = RDF class ● Field = RDF property ● Node = RDF resource http://www.flickr.com/photos/docman/221656821
  • 16. Node
  • 17. Goals ● Re-use of published ontology terms – local schema can be mapped to vocabularies like DC, FOAF, SIOC, etc. ● Expressing internal Drupal constraints in OWL – such as required fields and cardinalities ● Auto-generate terms where necessary – when a content type or field cannot be mapped to an external term ● Safe vocabulary re-use – to prevent inconsistencies on the Web of Data
  • 18. Mapping to RDF ● site:Person a rdfs:Class; rdfs:subClassOf foaf:Person. ● site:first_name a rdf:Property; rdfs:subPropertyOf foaf:firstName. ● site:colleague rdfs:domain site:Person.
  • 21. Modules for Drupal 6 ● 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)
  • 22. Linked Data sites eco-system
  • 23. Preparing for RDF in Drupal 7 ● March 2008: first draft for schema http://groups.drupal.org/node/9311
  • 24. Preparing for RDF in Drupal 7 ● August 2008 Szeged conference: early RDF CCK http://szeged2008.drupalcon.org/program/sessions/drupal-and-semantic-web-neologism-project
  • 25. Preparing for RDF in Drupal 7 ● March 2009 DC conference: video on RDFa in Drupal http://www.youtube.com/watch?v=r4WgTRIRoa0
  • 26. Preparing for RDF in Drupal 7 ● May 2009, DERI Galway: RDF in core code sprint
  • 27. Preparing for RDF in Drupal 7 ● October 2009: main RDF patch committed http://twitter.com/Dries/status/4997311434
  • 28. Drupal 7 and RDF ● Drupal 7 core is RDFa enabled! ● RDFa output by default on blogs, forums, comments, etc. 
using FOAF, SIOC, DC, SKOS ● Alpha release available ● Sneak preview http://drupalrdf.openspring.net/
  • 31. Conclusion ● Drupal 7 will play a major role in exposing more RDF data on the web ● Empower users to create new types of apps ● Testing framework part of core ● http://groups.drupal.org/semantic-web ● http://openspring.net/ ● Questions?
  • 32. Open questions beyond Drupal ● How to push changes to consumers ● How to pull changes from remote datasets – deal with locally annotated resources