drupal and rdf

32
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

Upload: scorlosquet

Post on 11-May-2015

5.196 views

Category:

Documents


1 download

DESCRIPTION

Presentation I gave at RPI on Feb 16th, 2010

TRANSCRIPT

Page 1: Drupal and RDF

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

Page 2: Drupal and RDF

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 3: Drupal and RDF

Drupal

● Open & modular architecture

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

Page 4: Drupal and RDF

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/817425185

Page 5: Drupal and RDF

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/817425185

Page 6: Drupal and RDF

Drupal

● Place links in the navigation bars and blocks

● Build Views over your data

http://www.flickr.com/photos/grdloizaga/817425185

Page 7: Drupal and RDF

Who uses Drupal?

Page 8: Drupal and RDF

Who uses Drupal?

Page 9: Drupal and RDF

Who uses Drupal?

Page 10: Drupal and RDF

Who uses Drupal?

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

Page 11: Drupal and RDF

● 227,000 sites runningDrupal

● How to leverageall this data?

● <insert RDF sales pitch here>

http://www.flickr.com/photos/bitzcelt/450640323/

Page 12: Drupal and RDF

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/2386865187

Page 13: Drupal and RDF

Architecture

● User driven data model● Content type = RDF class● Field = RDF property● Node = RDF resource

http://www.flickr.com/photos/docman/2216568210

Page 14: Drupal and RDF

Content types and Fields

Page 15: Drupal and RDF

Content types and Fields

Page 16: Drupal and RDF

Node

Page 17: Drupal and RDF

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

Page 18: Drupal and RDF

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.

Page 19: Drupal and RDF

Mapping to RDF

Page 20: Drupal and RDF

Mapping to RDF

Page 21: Drupal and 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)

Page 22: Drupal and RDF

Linked Data sites eco-system

Page 23: Drupal and RDF

Preparing for RDF in Drupal 7● March 2008: first draft for schema

http://groups.drupal.org/node/9311

Page 24: Drupal and RDF

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

Page 25: Drupal and RDF

● March 2009 DC conference: video on RDFa in Drupal

Preparing for RDF in Drupal 7

http://www.youtube.com/watch?v=r4WgTRIRoa0

Page 26: Drupal and RDF

● May 2009, DERI Galway: RDF in core code sprint

Preparing for RDF in Drupal 7

Page 27: Drupal and RDF

● October 2009: main RDF patch committed

Preparing for RDF in Drupal 7

http://twitter.com/Dries/status/4997311434

Page 28: Drupal and RDF

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/

Page 29: Drupal and RDF

Drupal 7 and RDF

Page 30: Drupal and RDF

Drupal 7 and RDF

Page 31: Drupal 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?

Page 32: Drupal and RDF

Open questions beyond Drupal

● How to push changes to consumers● How to pull changes from remote datasets

– deal with locally annotated resources