+ All Categories
Home > Technology > Drupal as a Semantic Web platform - ISWC 2012

Drupal as a Semantic Web platform - ISWC 2012

Date post: 28-Jan-2015
Category:
Upload: scorlosquet
View: 111 times
Download: 0 times
Share this document with a friend
Description:
This presentation describes some use cases and deployments of Drupal for building bio-medical platforms powered by semantic web technologies such as RDF, SPARQL, JSON-LD.
Popular Tags:
56
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
Transcript
Page 1: Drupal as a Semantic Web platform - ISWC 2012

Drupal as aSemantic Web platform

Stéphane Corlosquet, Sudeshna Das, Emily Merrill, Paolo Ciccarese, and Tim ClarkMassachusetts General HospitalISWC 2012, Boston, USA – Nov 14th, 2012

Page 2: Drupal as a Semantic Web platform - ISWC 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/

Page 3: Drupal as a Semantic Web platform - ISWC 2012

Who uses Drupal?

Page 4: Drupal as a Semantic Web platform - ISWC 2012

Who uses Drupal?

Page 5: Drupal as a Semantic Web platform - ISWC 2012

Who uses Drupal?

Page 6: Drupal as a Semantic Web platform - ISWC 2012

Who uses Drupal?

Page 7: Drupal as a Semantic Web platform - ISWC 2012

Who uses Drupal?

Page 8: Drupal as a Semantic Web platform - ISWC 2012

Who uses Drupal?

Page 9: Drupal as a Semantic Web platform - ISWC 2012

Who uses Drupal?

Page 10: Drupal as a Semantic Web platform - ISWC 2012

Who uses Drupal?

Page 11: Drupal as a Semantic Web platform - ISWC 2012

Who uses Drupal?

Page 12: Drupal as a Semantic Web platform - ISWC 2012

Who uses Drupal?

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

Page 13: Drupal as a Semantic Web platform - ISWC 2012

Drupal

● Open & modular architecture

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

http://drupal.org/getting-started/before/overview

Page 14: Drupal as a Semantic Web platform - ISWC 2012

Building a Drupal site

http://www.flickr.com/photos/toomuchdew/3792159077/

Page 15: Drupal as a Semantic Web platform - ISWC 2012

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 16: Drupal as a Semantic Web platform - ISWC 2012

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 17: Drupal as a Semantic Web platform - ISWC 2012

Building a Drupal site

Page 18: Drupal as a Semantic Web platform - ISWC 2012

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/

Page 19: Drupal as a Semantic Web platform - ISWC 2012

The Drupal Community

http://www.flickr.com/photos/x-foto/4923221504/

Page 20: Drupal as a Semantic Web platform - ISWC 2012

Use Case #1:

Stem Cell Commons

http://stemcellcommons.org

Page 21: Drupal as a Semantic Web platform - ISWC 2012

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

Page 22: Drupal as a Semantic Web platform - ISWC 2012
Page 23: Drupal as a Semantic Web platform - ISWC 2012
Page 24: Drupal as a Semantic Web platform - ISWC 2012
Page 25: Drupal as a Semantic Web platform - ISWC 2012
Page 26: Drupal as a Semantic Web platform - ISWC 2012

Content types

Page 27: Drupal as a Semantic Web platform - ISWC 2012
Page 28: Drupal as a Semantic Web platform - ISWC 2012
Page 29: Drupal as a Semantic Web platform - ISWC 2012

Integrated with Analysis tools

Page 30: Drupal as a Semantic Web platform - ISWC 2012

What about RDF?

Page 31: Drupal as a Semantic Web platform - ISWC 2012

Drupal 7 default RDF Schema

Page 32: Drupal as a Semantic Web platform - ISWC 2012

SCC RDF Schema

Page 33: Drupal as a Semantic Web platform - ISWC 2012

Backend architecture

Page 34: Drupal as a Semantic Web platform - ISWC 2012

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

Page 35: Drupal as a Semantic Web platform - ISWC 2012

SPARQL Endpoint

● SPARQL Endpoint available at /sparql

Page 36: Drupal as a Semantic Web platform - ISWC 2012

SPARQL Endpoint

● Need to query Drupal data across different classes from R

● Need a standard query language● SQL?● Query Drupal data with SPARQL

Page 37: Drupal as a Semantic Web platform - ISWC 2012

Backend architecture (revisited)

Page 38: Drupal as a Semantic Web platform - ISWC 2012
Page 39: 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_titleORDER BY ASC(dc:date)

Page 40: Drupal as a Semantic Web platform - ISWC 2012

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

Page 41: Drupal as a Semantic Web platform - ISWC 2012

Use Case #2:

Data Layers

Domeo + Drupal

Page 42: Drupal as a Semantic Web platform - ISWC 2012

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/

Page 43: Drupal as a Semantic Web platform - ISWC 2012

Domeo

Page 44: Drupal as a Semantic Web platform - ISWC 2012

Domeo

Page 45: Drupal as a Semantic Web platform - ISWC 2012

Domeo

Page 46: Drupal as a Semantic Web platform - ISWC 2012

Domeo

Page 47: Drupal as a Semantic Web platform - ISWC 2012

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

Page 48: Drupal as a Semantic Web platform - ISWC 2012

List of publications in Drupal

Page 49: Drupal as a Semantic Web platform - ISWC 2012

Can we layer personal annotations on top?

Page 50: Drupal as a Semantic Web platform - ISWC 2012

What do we have?

● RDFa markup for each publication

Page 51: Drupal as a Semantic Web platform - ISWC 2012

RDFa API

● Extract structured data from RDFa documents● Green Turtle: RDFa 1.1 library in Javascript

document.getElementsByType('http://schema.org/ScholarlyArticle');

Page 52: Drupal as a Semantic Web platform - ISWC 2012

RDFa API

Page 53: Drupal as a Semantic Web platform - ISWC 2012

Domeo + Drupal

● Data mash up from independent sources

Page 54: Drupal as a Semantic Web platform - ISWC 2012

Domeo + Drupal

Page 55: Drupal as a Semantic Web platform - ISWC 2012

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

Page 56: Drupal as a Semantic Web platform - ISWC 2012

Thanks!

● Stéphane Corlosquet ● [email protected]● @scorlosquet● http://openspring.net/

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


Recommended