SlideShare a Scribd company logo
The Semantic Web and
              Drupal 7




Stéphane Corlosquet
Drupal Summit Latino – Loja, Ecuador
March, 2013
About the speaker
●   Stéphane “scor” Corlosquet
    ●   7 years with Drupal
    ●   Software engineer at Acquia
    ●   Drupal 7 RDF core maintainer
    ●   Drupal Security Team member
    ●   Co-authored the
        Definitive Guide to Drupal 7
    ●   Contrib modules: RDF Extensions,
        SPARQL, schema.org, WebID
    ●   Member of the RDFa WG at W3C
The Semantic Web
The Web today
Many information silos




Image credits: www.pidgintech.com
Many isolated and disparate communities




Image credits: www.pidgintech.com
Growing amount of information
●   Blogs, News, Comments
●   Social platforms: Facebook, Google plus
●   Everyday more and more content is published
●   Desktop, laptops, tablets, smartphones...
●   Sensor data for weather, traffic, healthcare
●   Billions of public pages
●   Deep web?
What do machines see?
Challenge:

How can machines help us
search all this information?
Vision of the Semantic Web
●   Transition to the Giant Global Graph
    ●   WWW = content+links


    ●   GGG = WWW+relationships+descriptions


●   Universal medium for data, information and
    knowledge exchange
Evolution of the Web
The One Machine
●   All devices connected
    ●   Personal computers
    ●   Data servers
    ●   Cell phones
    ●   PDAs
    ●   RFID tags




                       http://www.kk.org/thetechnium/archives/2007/11/dimensions_of_t.php
Key
●   Agree on Standards



●   Open Data
Rich Snippets
Google
Yahoo!
Bing
Why Structured Data in HTML

●   Helps machines extract
    relevant data from HTML
●   Can make use of this data
    in new ways:
       –enhanced search results
      – Knowledge graph
●   Search engines only index HTML
Structured Data in HTML


●   HTML attributes

●   Syntaxes
       –   Microformats (@class, @rel)
       –   RDFa (@property, @typeof, @resource…)
       –   Microdata (@itemscope, @itemtype, @itemprop, …)
Structured Data in HTML
●   Evolution and cross-syntax influence
Schema.org
Schema.org
●   Describe the type of your content (Person,
    Event, Recipe, Product, Book, Movie, etc.)
       –   416 types and counting
●   Each type has a set of properties
       –   Common properties: name, description, image, url
       –   Specific properties depending on the type (see type page
           on schema.org)
       –   544 properties and counting
Credits: Dan Brickley - link.
Schema.org
How does schema.org apply to Drupal?
●   Content types
How does schema.org apply to Drupal?
●   From content types to RDF
Schema.org module for Drupal
●   Map your content types and fields to the
    schema.org terms




                          http://drupal.org/project/schemaorg
Content types and Fields
Content types and Fields
Content types and Fields
Example: Event
Rich Snippet testing tool
●   http://www.google.com/webmasters/tools/richsnippets
Examples
●   Events
      –   “force11 events”: http://goo.gl/VVhNM
      –   DrupalCon Munich: http://goo.gl/jgMvw
      –   University of Waterloo: http://goo.gl/Df9hp


●   Person
      –   DGD7 – Jacine Luisi: http://t.co/rTK8N9K2
      –   Stéphane Corlosquet: http://goo.gl/9dWdL
Drupal, rNews and RDFa

Open Publish
●   Free Drupal distribution for building News sites
●   rNews support in RDFa
●   Download
Useful modules
●   http://drupal.org/project/schemaorg
       –   UI for mapping content types and fields to schema.org
       –   Documentation on drupal.org
       –   Screencast + examples
●   http://drupal.org/project/rdfa
       –   Implements the latest RDFa 1.1 (Drupal core is 1.0)
       –   HTML5 and RDFa
       –   Under development
●   http://drupal.org/project/microdata
       –   Standalone module
       –   HTML5 Microdata
Schema.org module


                    Play time!

      http://bit.ly/schema-event
http://www.google.com/webmasters/tools/richsnippets
Beyond SEO:
How is RDF architected
      in Drupal 7
History of RDF in Drupal
●   rdf.php (2000, Dries)
●   FOAF, vCard (2004, walkah)
●   Relationship (2005, dman)
●   Semantic Search (2006, hendler)
●   RDF (2007, Arto)
●   OpenCalais (febbraro, 2008)
●   RDF CCK (2008, scor)
Architecture
●   User driven data model
●   Content type => RDF class
●   Field => RDF property
●   Node => RDF resource




                        http://en.wikipedia.org/wiki/File:Oriente_Station_Lisboa_roof.jpg
Content types and Fields
Content types and Fields
Node
Drupal 7 and RDF

●   The RDF mapping API allows any vocabulary
●   Default mappings on blogs, forums, comments,
    etc. using FOAF, SIOC, DC, SKOS
●   Drupal 7 core outputs these mappings in RDFa
●   Mappings can be changed to include other
    vocabularies like schema.org
Drupal 7 default RDF mappings
Drupal 7 core RDF limitations
●   No schema.org out of the box
●   No UI for managing the RDF mappings
●   Only core fields are supported (text, file, image)
       –   No support for contrib fields: addressfield, fivestar
●   No native support for Views or Panels
       –   Display suite 2.0 is OK
●   Some contrib modules can help
●   Drupal 8 to fix these many of these issues
Drupal 7 and RDF
●   Contributed module for more features
    ●   RDF Extensions
           ●   Serialization formats: RDF/XML, Turtle, N-Triples
           ●   Mapping UI
    ●   SPARQL
           ●   Expose Drupal RDF data in a SPARQL Endpoint
    ●   SPARQL Views
           ●   Display remote RDF data in Drupal using SPARQL
    ●   JSON-LD
           ●   Expose Drupal RDF data as JSON-LD (CORS-enabled)
    ●   Features and packaging
           ●   Build distributions / deployment workflow
SPARQL Endpoint
●   Indexing




     http://drupal.org/project/sparql
SPARQL Endpoint
●   Public endpoint available at /sparql
●   http://prefix.cc/sioc,rnews.sparql
RDFa 1.1
●   Published as W3C Recommendation
●   RDFa Lite
●   RDFa 1.1 Full
●   Leaner markup
●   http://rdfa.info/play/
RDFa 1.1
●   Works with HTML5
●   No dependency on XHTML
●   HTML5 doctype
●   Popular themes have been updated (Omega,
    Zen, Adaptive Themes)
Demos
rNews by International Press
Telecommunications Council (IPTC)
  –    Open Publish


      PREFIX rnews: <http://iptc.org/std/rNews/2011-10-07#>

      SELECT * WHERE {
        ?s a rnews:Article;
          rnews:name ?title.
      }
JSON-LD in Drupal
●   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) enabled
●   Client can mash data
●   http://drupal.org/project/jsonld
Demos
●   Occupy Directory
      –   http://directory.occupy.net/occupations
      –   JSON-LD: http://directory.occupy.net/node/19652.jsonld



●   Federated General Assembly
      –   Drupal distribution for occupy movement
      –   http://wiki.occupy.net/wiki/Federated_General_Assembly
Domeo + Drupal
●   Data mash up from independent, but related
    sources
Domeo + Drupal
●   Data mash up from independent, but related
    sources
Thanks!

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

More Related Content

What's hot (19)

PDF
When Drupal and RDF meet
scorlosquet
 
PDF
Geospatial Querying in Apache Marmotta - Apache Big Data North America 2016
Sergio Fernández
 
PDF
Semantic Media Management with Apache Marmotta
Thomas Kurz
 
PDF
Drupal 7 and RDF
scorlosquet
 
PDF
Linked data enhanced publishing for special collections (with Drupal)
Joachim Neubert
 
PPTX
Semantics, rdf and drupal
Gokul Nk
 
PDF
Integrating Drupal with a Triple Store
Barry Norton
 
PDF
Eclipse RDF4J - Working with RDF in Java
Jeen Broekstra
 
PDF
Introduction to LDP in Apache Marmotta
Sergio Fernández
 
PDF
Linked Data, Ontologies and Inference
Barry Norton
 
ODP
ckan 2.0 Introduction (20140522 updated)
Chengjen Lee
 
PDF
No SQL Technologies
Cris Holdorph
 
ODP
ckan 2.0 Introduction
Chengjen Lee
 
PDF
Portland Common Data Model (PCDM): Creating and Sharing Complex Digital Objects
Karen Estlund
 
ODP
CKANCon 2016 & IODC16
Chengjen Lee
 
PDF
This is an interesting metadata source. Can I import it into Koha?
Dobrica Pavlinušić
 
PDF
Introduction to International MyLabs
Cris Holdorph
 
PDF
Linked (Open) Data: A quick introduction
nvitucci
 
ODP
ckan 2.0 Introduction (20140618 updated)
Chengjen Lee
 
When Drupal and RDF meet
scorlosquet
 
Geospatial Querying in Apache Marmotta - Apache Big Data North America 2016
Sergio Fernández
 
Semantic Media Management with Apache Marmotta
Thomas Kurz
 
Drupal 7 and RDF
scorlosquet
 
Linked data enhanced publishing for special collections (with Drupal)
Joachim Neubert
 
Semantics, rdf and drupal
Gokul Nk
 
Integrating Drupal with a Triple Store
Barry Norton
 
Eclipse RDF4J - Working with RDF in Java
Jeen Broekstra
 
Introduction to LDP in Apache Marmotta
Sergio Fernández
 
Linked Data, Ontologies and Inference
Barry Norton
 
ckan 2.0 Introduction (20140522 updated)
Chengjen Lee
 
No SQL Technologies
Cris Holdorph
 
ckan 2.0 Introduction
Chengjen Lee
 
Portland Common Data Model (PCDM): Creating and Sharing Complex Digital Objects
Karen Estlund
 
CKANCon 2016 & IODC16
Chengjen Lee
 
This is an interesting metadata source. Can I import it into Koha?
Dobrica Pavlinušić
 
Introduction to International MyLabs
Cris Holdorph
 
Linked (Open) Data: A quick introduction
nvitucci
 
ckan 2.0 Introduction (20140618 updated)
Chengjen Lee
 

Similar to The Semantic Web and Drupal 7 - Loja 2013 (20)

PDF
Drupal and the Semantic Web - ESIP Webinar
scorlosquet
 
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
DrupalCamp NJ 2014 Solr and Schema.org
scorlosquet
 
PDF
The Future of Search and SEO in Drupal
scorlosquet
 
PDF
Using schema.org to improve SEO
scorlosquet
 
PPTX
Hacktoberfest 2020 - Intro to Knowledge Graphs
ArangoDB Database
 
PDF
Publishing Linked Data using Schema.org
DESTIN-Informatique.com
 
PDF
Evolution of apache spark
datamantra
 
PDF
Introduction to drupal
Pedro Cambra
 
PDF
[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?
Wong Hoi Sing Edison
 
PPT
Semantic content management: consuming and producing RDF in Drupal
Thom Bunting
 
PDF
RDFa: introduction, comparison with microdata and microformats and how to use it
Jose Luis Lopez Pino
 
PDF
Linked Data Publishing with Drupal (SWIB13 workshop)
Joachim Neubert
 
PDF
Understanding Hadoop
Ahmed Ossama
 
PDF
Ros platform overview
Pablo Iñigo Blasco
 
PDF
Introduction to Apache Spark
datamantra
 
PDF
Drupal 7 and schema.org module
scorlosquet
 
PDF
Graph Gurus Episode 1: Enterprise Graph
TigerGraph
 
ODP
Hong Kong Drupal User Group - 2014 April 12th
Wong Hoi Sing Edison
 
Drupal and the Semantic Web - ESIP Webinar
scorlosquet
 
Drupal and the semantic web - SemTechBiz 2012
scorlosquet
 
Embedding Linked Data Invisibly into Web Pages: Strategies and Workflows for ...
National Information Standards Organization (NISO)
 
DrupalCamp NJ 2014 Solr and Schema.org
scorlosquet
 
The Future of Search and SEO in Drupal
scorlosquet
 
Using schema.org to improve SEO
scorlosquet
 
Hacktoberfest 2020 - Intro to Knowledge Graphs
ArangoDB Database
 
Publishing Linked Data using Schema.org
DESTIN-Informatique.com
 
Evolution of apache spark
datamantra
 
Introduction to drupal
Pedro Cambra
 
[HKDUG] #20151017 - BarCamp 2015 - Drupal 8 is Coming! Are You Ready?
Wong Hoi Sing Edison
 
Semantic content management: consuming and producing RDF in Drupal
Thom Bunting
 
RDFa: introduction, comparison with microdata and microformats and how to use it
Jose Luis Lopez Pino
 
Linked Data Publishing with Drupal (SWIB13 workshop)
Joachim Neubert
 
Understanding Hadoop
Ahmed Ossama
 
Ros platform overview
Pablo Iñigo Blasco
 
Introduction to Apache Spark
datamantra
 
Drupal 7 and schema.org module
scorlosquet
 
Graph Gurus Episode 1: Enterprise Graph
TigerGraph
 
Hong Kong Drupal User Group - 2014 April 12th
Wong Hoi Sing Edison
 
Ad

More from scorlosquet (7)

ODP
Keeping your Drupal site secure 2013
scorlosquet
 
PDF
Schema.org & Drupal (FR)
scorlosquet
 
PDF
Security - Drupal Decision Makers training
scorlosquet
 
PDF
Drupal 7 and schema.org module (Jan 2012)
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
 
Keeping your Drupal site secure 2013
scorlosquet
 
Schema.org & Drupal (FR)
scorlosquet
 
Security - Drupal Decision Makers training
scorlosquet
 
Drupal 7 and schema.org module (Jan 2012)
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

Recently uploaded (20)

PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 

The Semantic Web and Drupal 7 - Loja 2013

  • 1. The Semantic Web and Drupal 7 Stéphane Corlosquet Drupal Summit Latino – Loja, Ecuador March, 2013
  • 2. About the speaker ● Stéphane “scor” Corlosquet ● 7 years with Drupal ● Software engineer at Acquia ● Drupal 7 RDF core maintainer ● Drupal Security Team member ● Co-authored the Definitive Guide to Drupal 7 ● Contrib modules: RDF Extensions, SPARQL, schema.org, WebID ● Member of the RDFa WG at W3C
  • 5. Many information silos Image credits: www.pidgintech.com
  • 6. Many isolated and disparate communities Image credits: www.pidgintech.com
  • 7. Growing amount of information ● Blogs, News, Comments ● Social platforms: Facebook, Google plus ● Everyday more and more content is published ● Desktop, laptops, tablets, smartphones... ● Sensor data for weather, traffic, healthcare ● Billions of public pages ● Deep web?
  • 9. Challenge: How can machines help us search all this information?
  • 10. Vision of the Semantic Web ● Transition to the Giant Global Graph ● WWW = content+links ● GGG = WWW+relationships+descriptions ● Universal medium for data, information and knowledge exchange
  • 12. The One Machine ● All devices connected ● Personal computers ● Data servers ● Cell phones ● PDAs ● RFID tags http://www.kk.org/thetechnium/archives/2007/11/dimensions_of_t.php
  • 13. Key ● Agree on Standards ● Open Data
  • 17. Bing
  • 18. Why Structured Data in HTML ● Helps machines extract relevant data from HTML ● Can make use of this data in new ways: –enhanced search results – Knowledge graph ● Search engines only index HTML
  • 19. Structured Data in HTML ● HTML attributes ● Syntaxes – Microformats (@class, @rel) – RDFa (@property, @typeof, @resource…) – Microdata (@itemscope, @itemtype, @itemprop, …)
  • 20. Structured Data in HTML ● Evolution and cross-syntax influence
  • 22. Schema.org ● Describe the type of your content (Person, Event, Recipe, Product, Book, Movie, etc.) – 416 types and counting ● Each type has a set of properties – Common properties: name, description, image, url – Specific properties depending on the type (see type page on schema.org) – 544 properties and counting
  • 25. How does schema.org apply to Drupal? ● Content types
  • 26. How does schema.org apply to Drupal? ● From content types to RDF
  • 27. Schema.org module for Drupal ● Map your content types and fields to the schema.org terms http://drupal.org/project/schemaorg
  • 32. Rich Snippet testing tool ● http://www.google.com/webmasters/tools/richsnippets
  • 33. Examples ● Events – “force11 events”: http://goo.gl/VVhNM – DrupalCon Munich: http://goo.gl/jgMvw – University of Waterloo: http://goo.gl/Df9hp ● Person – DGD7 – Jacine Luisi: http://t.co/rTK8N9K2 – Stéphane Corlosquet: http://goo.gl/9dWdL
  • 34. Drupal, rNews and RDFa Open Publish ● Free Drupal distribution for building News sites ● rNews support in RDFa ● Download
  • 35. Useful modules ● http://drupal.org/project/schemaorg – UI for mapping content types and fields to schema.org – Documentation on drupal.org – Screencast + examples ● http://drupal.org/project/rdfa – Implements the latest RDFa 1.1 (Drupal core is 1.0) – HTML5 and RDFa – Under development ● http://drupal.org/project/microdata – Standalone module – HTML5 Microdata
  • 36. Schema.org module Play time! http://bit.ly/schema-event http://www.google.com/webmasters/tools/richsnippets
  • 37. Beyond SEO: How is RDF architected in Drupal 7
  • 38. History of RDF in Drupal ● rdf.php (2000, Dries) ● FOAF, vCard (2004, walkah) ● Relationship (2005, dman) ● Semantic Search (2006, hendler) ● RDF (2007, Arto) ● OpenCalais (febbraro, 2008) ● RDF CCK (2008, scor)
  • 39. Architecture ● User driven data model ● Content type => RDF class ● Field => RDF property ● Node => RDF resource http://en.wikipedia.org/wiki/File:Oriente_Station_Lisboa_roof.jpg
  • 42. Node
  • 43. Drupal 7 and RDF ● The RDF mapping API allows any vocabulary ● Default mappings on blogs, forums, comments, etc. using FOAF, SIOC, DC, SKOS ● Drupal 7 core outputs these mappings in RDFa ● Mappings can be changed to include other vocabularies like schema.org
  • 44. Drupal 7 default RDF mappings
  • 45. Drupal 7 core RDF limitations ● No schema.org out of the box ● No UI for managing the RDF mappings ● Only core fields are supported (text, file, image) – No support for contrib fields: addressfield, fivestar ● No native support for Views or Panels – Display suite 2.0 is OK ● Some contrib modules can help ● Drupal 8 to fix these many of these issues
  • 46. Drupal 7 and RDF ● Contributed module for more features ● RDF Extensions ● Serialization formats: RDF/XML, Turtle, N-Triples ● Mapping UI ● SPARQL ● Expose Drupal RDF data in a SPARQL Endpoint ● SPARQL Views ● Display remote RDF data in Drupal using SPARQL ● JSON-LD ● Expose Drupal RDF data as JSON-LD (CORS-enabled) ● Features and packaging ● Build distributions / deployment workflow
  • 47. SPARQL Endpoint ● Indexing http://drupal.org/project/sparql
  • 48. SPARQL Endpoint ● Public endpoint available at /sparql ● http://prefix.cc/sioc,rnews.sparql
  • 49. RDFa 1.1 ● Published as W3C Recommendation ● RDFa Lite ● RDFa 1.1 Full ● Leaner markup ● http://rdfa.info/play/
  • 50. RDFa 1.1 ● Works with HTML5 ● No dependency on XHTML ● HTML5 doctype ● Popular themes have been updated (Omega, Zen, Adaptive Themes)
  • 51. Demos rNews by International Press Telecommunications Council (IPTC) – Open Publish PREFIX rnews: <http://iptc.org/std/rNews/2011-10-07#> SELECT * WHERE { ?s a rnews:Article; rnews:name ?title. }
  • 52. JSON-LD in Drupal ● 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) enabled ● Client can mash data ● http://drupal.org/project/jsonld
  • 53. Demos ● Occupy Directory – http://directory.occupy.net/occupations – JSON-LD: http://directory.occupy.net/node/19652.jsonld ● Federated General Assembly – Drupal distribution for occupy movement – http://wiki.occupy.net/wiki/Federated_General_Assembly
  • 54. Domeo + Drupal ● Data mash up from independent, but related sources
  • 55. Domeo + Drupal ● Data mash up from independent, but related sources
  • 56. Thanks! ● Stéphane Corlosquet: [email protected] – @scorlosquet – http://openspring.net/