Drupal as a Semantic Web platform - ISWC 2012
-
Upload
scorlosquet -
Category
Technology
-
view
110 -
download
0
description
Transcript of Drupal as a Semantic Web platform - ISWC 2012
![Page 1: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/1.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/2.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 3: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/3.jpg)
Who uses Drupal?
![Page 4: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/4.jpg)
Who uses Drupal?
![Page 5: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/5.jpg)
Who uses Drupal?
![Page 6: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/6.jpg)
Who uses Drupal?
![Page 7: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/7.jpg)
Who uses Drupal?
![Page 8: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/8.jpg)
Who uses Drupal?
![Page 9: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/9.jpg)
Who uses Drupal?
![Page 10: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/10.jpg)
Who uses Drupal?
![Page 11: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/11.jpg)
Who uses Drupal?
![Page 13: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/13.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/14.jpg)
Building a Drupal site
http://www.flickr.com/photos/toomuchdew/3792159077/
![Page 15: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/15.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 16: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/16.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 17: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/17.jpg)
Building a Drupal site
![Page 18: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/18.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/19.jpg)
The Drupal Community
http://www.flickr.com/photos/x-foto/4923221504/
![Page 21: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/21.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/22.jpg)
![Page 23: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/23.jpg)
![Page 24: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/24.jpg)
![Page 25: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/25.jpg)
![Page 26: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/26.jpg)
Content types
![Page 27: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/27.jpg)
![Page 28: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/28.jpg)
![Page 29: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/29.jpg)
Integrated with Analysis tools
![Page 30: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/30.jpg)
What about RDF?
![Page 31: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/31.jpg)
Drupal 7 default RDF Schema
![Page 32: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/32.jpg)
SCC RDF Schema
![Page 33: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/33.jpg)
Backend architecture
![Page 34: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/34.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/35.jpg)
SPARQL Endpoint
● SPARQL Endpoint available at /sparql
![Page 36: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/36.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/37.jpg)
Backend architecture (revisited)
![Page 38: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/38.jpg)
![Page 39: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/39.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/40.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/41.jpg)
Use Case #2:
Data Layers
Domeo + Drupal
![Page 42: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/42.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/43.jpg)
Domeo
![Page 44: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/44.jpg)
Domeo
![Page 45: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/45.jpg)
Domeo
![Page 46: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/46.jpg)
Domeo
![Page 47: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/47.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/48.jpg)
List of publications in Drupal
![Page 49: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/49.jpg)
Can we layer personal annotations on top?
![Page 50: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/50.jpg)
What do we have?
● RDFa markup for each publication
![Page 51: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/51.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/52.jpg)
RDFa API
![Page 53: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/53.jpg)
Domeo + Drupal
● Data mash up from independent sources
![Page 54: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/54.jpg)
Domeo + Drupal
![Page 55: Drupal as a Semantic Web platform - ISWC 2012](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/55.jpg)
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](https://reader034.fdocuments.in/reader034/viewer/2022051400/54c85da44a7959d7758b4813/html5/thumbnails/56.jpg)
Thanks!
● Stéphane Corlosquet ● [email protected]● @scorlosquet● http://openspring.net/
● MIND Informatics● http://www.mindinformatics.org/