Data strategies - Drupal Decision Makers training

Preview:

Citation preview

Data Strategies in Drupal

Stéphane Corlosquetscorlosquet@gmail.comTraining at NYCamp 2012

About the speakers

● Stéphane Corlosquet● 6 years with Drupal● Drupal core maintainer (RDF)● Drupal Security Team member● Co-authored the

Definitive Guide to Drupal 7● Co-maintain RDF Extensions,

SPARQL, schema.org● Member of the RDFa WG

Drupal

● Content Management System

● Non-developers can build sites and publish content

● Control panels instead of code

http://www.flickr.com/photos/funkyah/2400889778/

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

● Create the fields you want

Date, tags, image, file attachments, references to other nodes, ratings, location, comments...

http://www.flickr.com/photos/skip/42288941/

Content types and Fields

Content types and Fields

Manage your display

Manage your display

● Display Suite– extra fields, layouts, search results, etc.

● Panels– more powerful but more complex

Manage your display

Manage your display

Manage your display

Display multiple nodes: listings

● Views– Most popular contributed module

– Display content in lists, tables, grids

– Nodes, users, terms, images, remote content too!

● Applications– Table of content

– Directory

– Photo albums

– ...

Display listings

Faceted Search

Data silos

Open your data

● Make your data understandable by machines

● Share it on the Web● Standards

Vision of the Semantic Web

● Universal medium for data, information and knowledge exchange

Vision of the Semantic Web

● Decentralized information

Rich Snippets

Why Structured Data in HTML

● Help machines extract relevant data from HTML

● Can make use of this data in amazing ways (e.g. enhanced search results)

Schema.org

Schema.org

● Describe the type of your content (Person, Event, Recipe, Product, Book, Movie, etc.)

– 290 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)

– 240 properties and counting

Schema.org

Rich Snippet testing tool

● http://www.google.com/webmasters/tools/richsnippets

Drupal 7 and RDF

● Contributed module for more features● RDF Extensions

● Serialization formats: RDF/XML, Turtle, N-Triples

● 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