SlideShare a Scribd company logo
Drupal as a
       Semantic Web platform




Stéphane Corlosquet, Sudeshna Das, Emily Merrill, Paolo Ciccarese,
and Tim Clark
Massachusetts General Hospital
ISWC 2012, Boston, USA – Nov 14th, 2012
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
Who uses Drupal?
Who uses Drupal?
Who uses Drupal?
Who uses Drupal?
Who uses Drupal?
Who uses Drupal?
Who uses Drupal?
Who uses Drupal?
Who uses Drupal?
Who uses Drupal?




            http://buytaert.net/tag/drupal-sites
Drupal
   ●   Open & modular
       architecture
   ●   Extensible by modules
   ●   Standards-based
   ●   Low resource hosting
   ●   Scalable




   http://drupal.org/getting-started/before/overview
Building a Drupal site




        http://www.flickr.com/photos/toomuchdew/3792159077/
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/
Building a Drupal site

●   Enable the features you
    want

    Comments, tags, voting/rating,
    location, translations, revisions,
    search...




                                         http://www.flickr.com/photos/skip/42288941/
Building a Drupal site
Building a Drupal site
Thousands of free
contributed modules
●   Google Analytics
●   Wysiwyg
●   Captcha
●   Calendar
●   XML sitemap
●   Five stars
●   Twitter
●   ...
                       http://www.flickr.com/photos/kaptainkobold/1422600992/
The Drupal Community




          http://www.flickr.com/photos/x-foto/4923221504/
Use Case #1:

Stem Cell Commons
 http://stemcellcommons.org
Repository
•   New repository for stem cell data as part of Stem
    Cell Commons
•   Harvard Stem Cell Institute (HSCI): Blood and
    Cancer program system
•   Designed to incorporate
            - multiple stem cell types
            - multiple assay types
            - user requested features
•   Integrated with analytical tools
•   Enhanced search and browsing capabilities
Drupal as a Semantic Web platform - ISWC 2012
Drupal as a Semantic Web platform - ISWC 2012
Drupal as a Semantic Web platform - ISWC 2012
Drupal as a Semantic Web platform - ISWC 2012
Content types
Drupal as a Semantic Web platform - ISWC 2012
Drupal as a Semantic Web platform - ISWC 2012
Integrated with Analysis tools
What about RDF?
Drupal 7 default RDF Schema
SCC RDF Schema
Backend architecture
Modules used
●   Contributed module for more features
    ●   RDF Extensions
           ●   Serialization formats: RDF/XML, Turtle, N-Triples
    ●   SPARQL
           ●   Expose Drupal RDF data in a SPARQL Endpoint
    ●   Features and packaging
           ●   Build distributions / deployment workflow
SPARQL Endpoint
●   SPARQL Endpoint available at /sparql
SPARQL Endpoint
●   Need to query Drupal data across different
    classes from R
●   Need a standard query language
●   SQL?
●   Query Drupal data with SPARQL
Backend architecture (revisited)
Drupal as a Semantic Web platform - ISWC 2012
SPARQL query
PREFIX obo: <http://purl.obolibrary.org/obo/>
PREFIX mged: <http://mged.sourceforge.net/ontologies/MGEDontology.php#>
PREFIX dc: <http://purl.org/dc/terms/>

SELECT ?bioassay_title WHERE {
  ?experiment obo:OBI_0000070 ?bioassay;
         dc:title ?bioassay_title .
  ?bioassay mged:LabelCompound <http://exframe-dev.sciencecollaboration.org/taxonomy/term/588> .
}
GROUP BY ?bioassay_title
ORDER BY ASC(dc:date)
Wrap up use case #1
●   Drupal is a good fit for building web frontends
●   Editing User Interfaces out of the box
●   Querying Data in SQL:
    ●   not very friendly
    ●   may not be appropriate / performant
●   Querying with SPARQL:
    ●   Use the backend that match your needs
    ●   ARC2 can be sufficient for prototyping and
        lightweight use cases
Use Case #2:

 Data Layers

Domeo + Drupal
Domeo
●   Annotation Tool developed by MIND
    Informatics, Massachusetts General Hospital
●   Annotate HTML documents
●   Share annotations
●   Annotation Ontology (AO), provenance, ACL
●   JSON-LD Service to retrieve annotations
●   http://annotationframework.org/
Domeo
Domeo
Domeo
Domeo
JSON-LD
●   JSON for Linked Data
●   Client side as well as server side friendly
●   Browser Scripting:
       –   Native javascript format
       –   RDFa API in the DOM
●   Data can be fetched from anywhere:
       –   Cross-Origin Resource Sharing (CORS) required
●   Clients can mash data
List of publications in Drupal
Can we layer personal annotations on top?
What do we have?
●   RDFa markup for each publication
RDFa API
●   Extract structured data from RDFa documents
●   Green Turtle: RDFa 1.1 library in Javascript

document.getElementsByType('http://schema.org/ScholarlyArticle');
RDFa API
Domeo + Drupal
●   Data mash up from independent sources
Domeo + Drupal
Wrap up use case #2
●   Another use case for exposing data as RDFa
●   RDFa and JSON-LD fit well together
    ●   HTML → RDFa
    ●   JSON → JSON-LD


●   CORS support not yet available everywhere
    ●   Grails didn't have it
    ●   Use JSONP instead
Thanks!

●   Stéphane Corlosquet
    ●   scorlosquet@gmail.com
    ●   @scorlosquet
    ●   http://openspring.net/


●   MIND Informatics
    ●   http://www.mindinformatics.org/

More Related Content

PDF
Data strategies - Drupal Decision Makers training
PDF
Slides semantic web and Drupal 7 NYCCamp 2012
PDF
The Semantic Web and Drupal 7 - Loja 2013
PDF
Drupal and the semantic web - SemTechBiz 2012
PDF
Apache Marmotta (incubating)
PDF
Solr in drupal 7 index and search more entities
PPT
Intro ror
PDF
RDFauthor (EKAW)
Data strategies - Drupal Decision Makers training
Slides semantic web and Drupal 7 NYCCamp 2012
The Semantic Web and Drupal 7 - Loja 2013
Drupal and the semantic web - SemTechBiz 2012
Apache Marmotta (incubating)
Solr in drupal 7 index and search more entities
Intro ror
RDFauthor (EKAW)

What's hot (18)

PDF
Drupal 7 and schema.org module (Jan 2012)
PDF
Drupal 7 and schema.org module
PDF
Semantic Media Management with Apache Marmotta
PDF
Enabling access to Linked Media with SPARQL-MM
PDF
Linked Media Management with Apache Marmotta
PDF
How to create your own ODF
PPTX
Custom Drupal Development, Secure and Performant
ODP
Linked Media and Data Using Apache Marmotta
PDF
Fedora 4 Deep Dive
PPTX
Web Development
ODP
Open source data_warehousing_overview
PPTX
Dynamic websites
PDF
Steam Learn: An introduction to Redis
KEY
PPT
Web Development Intro
PPTX
DOC Presentation by DOC Contractor Alison McCauley
PPT
Mongo DB for Java, Python and PHP Developers
Drupal 7 and schema.org module (Jan 2012)
Drupal 7 and schema.org module
Semantic Media Management with Apache Marmotta
Enabling access to Linked Media with SPARQL-MM
Linked Media Management with Apache Marmotta
How to create your own ODF
Custom Drupal Development, Secure and Performant
Linked Media and Data Using Apache Marmotta
Fedora 4 Deep Dive
Web Development
Open source data_warehousing_overview
Dynamic websites
Steam Learn: An introduction to Redis
Web Development Intro
DOC Presentation by DOC Contractor Alison McCauley
Mongo DB for Java, Python and PHP Developers
Ad

Similar to Drupal as a Semantic Web platform - ISWC 2012 (20)

PDF
Drupal 7 and RDF
PDF
Embedding Linked Data Invisibly into Web Pages: Strategies and Workflows for ...
PDF
Drupal and RDF
PDF
When Drupal and RDF meet
PDF
Drupal and the Semantic Web - ESIP Webinar
PDF
Linked data enhanced publishing for special collections (with Drupal)
PDF
Drupal in-depth
PDF
Doctrine Project
PDF
Introduction to drupal
PDF
Introduction to Apache Spark
PDF
Lupus Decoupled Drupal - Drupal Austria Meetup - 2023-04.pdf
PDF
[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?
PDF
Bio2RDF presentation at Combine 2012
ODP
Drupal in 5mins + Previewing Drupal 8.x
PDF
Publishing Linked Data using Schema.org
PDF
Using schema.org to improve SEO
PDF
Linked Data Publishing with Drupal (SWIB13 workshop)
PDF
DrupalCamp NJ 2014 Solr and Schema.org
ODP
Beginners Guide to Drupal
PDF
The Future of Search and SEO in Drupal
Drupal 7 and RDF
Embedding Linked Data Invisibly into Web Pages: Strategies and Workflows for ...
Drupal and RDF
When Drupal and RDF meet
Drupal and the Semantic Web - ESIP Webinar
Linked data enhanced publishing for special collections (with Drupal)
Drupal in-depth
Doctrine Project
Introduction to drupal
Introduction to Apache Spark
Lupus Decoupled Drupal - Drupal Austria Meetup - 2023-04.pdf
[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?
Bio2RDF presentation at Combine 2012
Drupal in 5mins + Previewing Drupal 8.x
Publishing Linked Data using Schema.org
Using schema.org to improve SEO
Linked Data Publishing with Drupal (SWIB13 workshop)
DrupalCamp NJ 2014 Solr and Schema.org
Beginners Guide to Drupal
The Future of Search and SEO in Drupal
Ad

More from scorlosquet (6)

ODP
Keeping your Drupal site secure 2013
PDF
Schema.org & Drupal (FR)
PDF
Security - Drupal Decision Makers training
PDF
How to Build Linked Data Sites with Drupal 7 and RDFa
KEY
RDF presentation at DrupalCon San Francisco 2010
PDF
Produce and Consume Linked Data with Drupal!
Keeping your Drupal site secure 2013
Schema.org & Drupal (FR)
Security - Drupal Decision Makers training
How to Build Linked Data Sites with Drupal 7 and RDFa
RDF presentation at DrupalCon San Francisco 2010
Produce and Consume Linked Data with Drupal!

Recently uploaded (20)

PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Empathic Computing: Creating Shared Understanding
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
KodekX | Application Modernization Development
PPTX
Cloud computing and distributed systems.
PDF
Approach and Philosophy of On baking technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation theory and applications.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Digital-Transformation-Roadmap-for-Companies.pptx
Machine learning based COVID-19 study performance prediction
Understanding_Digital_Forensics_Presentation.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Empathic Computing: Creating Shared Understanding
Diabetes mellitus diagnosis method based random forest with bat algorithm
Building Integrated photovoltaic BIPV_UPV.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Review of recent advances in non-invasive hemoglobin estimation
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
KodekX | Application Modernization Development
Cloud computing and distributed systems.
Approach and Philosophy of On baking technology
The AUB Centre for AI in Media Proposal.docx
Encapsulation theory and applications.pdf
cuic standard and advanced reporting.pdf
Modernizing your data center with Dell and AMD
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication

Drupal as a Semantic Web platform - ISWC 2012

  • 1. Drupal as a Semantic Web platform Stéphane Corlosquet, Sudeshna Das, Emily Merrill, Paolo Ciccarese, and Tim Clark Massachusetts General Hospital ISWC 2012, Boston, USA – Nov 14th, 2012
  • 2. 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
  • 12. Who uses Drupal? http://buytaert.net/tag/drupal-sites
  • 13. Drupal ● Open & modular architecture ● Extensible by modules ● Standards-based ● Low resource hosting ● Scalable http://drupal.org/getting-started/before/overview
  • 14. Building a Drupal site http://www.flickr.com/photos/toomuchdew/3792159077/
  • 15. 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/
  • 16. Building a Drupal site ● Enable the features you want Comments, tags, voting/rating, location, translations, revisions, search... http://www.flickr.com/photos/skip/42288941/
  • 18. Building a Drupal site Thousands of free contributed modules ● Google Analytics ● Wysiwyg ● Captcha ● Calendar ● XML sitemap ● Five stars ● Twitter ● ... http://www.flickr.com/photos/kaptainkobold/1422600992/
  • 19. The Drupal Community http://www.flickr.com/photos/x-foto/4923221504/
  • 20. Use Case #1: Stem Cell Commons http://stemcellcommons.org
  • 21. Repository • New repository for stem cell data as part of Stem Cell Commons • Harvard Stem Cell Institute (HSCI): Blood and Cancer program system • Designed to incorporate - multiple stem cell types - multiple assay types - user requested features • Integrated with analytical tools • Enhanced search and browsing capabilities
  • 31. Drupal 7 default RDF Schema
  • 34. Modules used ● Contributed module for more features ● RDF Extensions ● Serialization formats: RDF/XML, Turtle, N-Triples ● SPARQL ● Expose Drupal RDF data in a SPARQL Endpoint ● Features and packaging ● Build distributions / deployment workflow
  • 35. SPARQL Endpoint ● SPARQL Endpoint available at /sparql
  • 36. SPARQL Endpoint ● Need to query Drupal data across different classes from R ● Need a standard query language ● SQL? ● Query Drupal data with SPARQL
  • 39. SPARQL query PREFIX obo: <http://purl.obolibrary.org/obo/> PREFIX mged: <http://mged.sourceforge.net/ontologies/MGEDontology.php#> PREFIX dc: <http://purl.org/dc/terms/> SELECT ?bioassay_title WHERE { ?experiment obo:OBI_0000070 ?bioassay; dc:title ?bioassay_title . ?bioassay mged:LabelCompound <http://exframe-dev.sciencecollaboration.org/taxonomy/term/588> . } GROUP BY ?bioassay_title ORDER BY ASC(dc:date)
  • 40. Wrap up use case #1 ● Drupal is a good fit for building web frontends ● Editing User Interfaces out of the box ● Querying Data in SQL: ● not very friendly ● may not be appropriate / performant ● Querying with SPARQL: ● Use the backend that match your needs ● ARC2 can be sufficient for prototyping and lightweight use cases
  • 41. Use Case #2: Data Layers Domeo + Drupal
  • 42. Domeo ● Annotation Tool developed by MIND Informatics, Massachusetts General Hospital ● Annotate HTML documents ● Share annotations ● Annotation Ontology (AO), provenance, ACL ● JSON-LD Service to retrieve annotations ● http://annotationframework.org/
  • 43. Domeo
  • 44. Domeo
  • 45. Domeo
  • 46. Domeo
  • 47. JSON-LD ● JSON for Linked Data ● Client side as well as server side friendly ● Browser Scripting: – Native javascript format – RDFa API in the DOM ● Data can be fetched from anywhere: – Cross-Origin Resource Sharing (CORS) required ● Clients can mash data
  • 48. List of publications in Drupal
  • 49. Can we layer personal annotations on top?
  • 50. What do we have? ● RDFa markup for each publication
  • 51. RDFa API ● Extract structured data from RDFa documents ● Green Turtle: RDFa 1.1 library in Javascript document.getElementsByType('http://schema.org/ScholarlyArticle');
  • 53. Domeo + Drupal ● Data mash up from independent sources
  • 55. Wrap up use case #2 ● Another use case for exposing data as RDFa ● RDFa and JSON-LD fit well together ● HTML → RDFa ● JSON → JSON-LD ● CORS support not yet available everywhere ● Grails didn't have it ● Use JSONP instead
  • 56. Thanks! ● Stéphane Corlosquet ● scorlosquet@gmail.com ● @scorlosquet ● http://openspring.net/ ● MIND Informatics ● http://www.mindinformatics.org/