Slide 1

Slide 1 text

LINKED DATA + DRUPAL FOR OCEANOGRAPHIC DATA MANAGEMENT ADAM SHEPHERD & STÉPHANE CORLOSQUET CASE STUDIES WEDNESDAY 2:15PM JUNE 4TH

Slide 2

Slide 2 text

LINKED DATA + DRUPAL FOR OCEANOGRAPHIC DATA MANAGEMENT ADAM SHEPHERD & STÉPHANE CORLOSQUET

Slide 3

Slide 3 text

LINKED DATA + DRUPAL FOR OCEANOGRAPHIC DATA MANAGEMENT ➢ WELCOME TO THE JUNGLE (WE’VE GOT FUN N’ GAMES) ➢ HOW & WHY LINKED DATA HELPS ➢ USING LINKED DATA IN DRUPAL

Slide 4

Slide 4 text

http://4.bp.blogspot.com/-gQWSBV6EnBo/TiRcN9unwbI/AAAAAAAAPXs/tydq754TRoI/s1600/vgdvd3.jpg It’s 1984 ...

Slide 5

Slide 5 text

http://i.telegraph.co.uk/multimedia/archive/01594/corey-haim_1594267c.jpg Friday night

Slide 6

Slide 6 text

http://img2.timeinc.net/people/i/2006/celebdatabase/patrickdempsey/patrick_dempsey5_180_240.jpg http://img.timeinc.net/time/daily/2009/0901/360_elm_street_0105.jpg MISSION: PIZZA “What’s their address?” “1428 Elm St.” “Be there in 30 mins or less ...or it’s free.”

Slide 7

Slide 7 text

http://media-cache-ak0.pinimg.com/736x/07/57/b1/0757b14109002ff196eefbbe8e39bb6c.jpg

Slide 8

Slide 8 text

http://swhomevid.site40.net/vhs_anh1.jpg MISSION: MOVIE “GET THE ONE WITH…” ➢ Righteous girl + bodacious dude ➢ Light beams flying everywhere ➢ The one with the “Force”

Slide 9

Slide 9 text

The search begins... https://deadlymovies.files.wordpress.com/2012/01/photo-2.jpg

Slide 10

Slide 10 text

http://www.chud.com/wp-content/uploads/2012/07/MEGAFORCE-FRONT-copy.jpg MOVIE: FOUND! ✓ Righteous girl + bodacious dude ✓ light beams flying everywhere ✓ The one with the “Force”

Slide 11

Slide 11 text

BACK AT THE HOUSE… http://static.guim.co.uk/sys-images/Film/Pix/pictures/2010/2/24/1267010697702/Winona-Ryder-Kim-Walker-L-001.jpg

Slide 12

Slide 12 text

A Tale of Two Elm Streets Which ‘Elm St’ was that? http://i.huffpost.com/gen/1594554/thumbs/o-PIZZA-facebook.jpg http://themaindamie.files.wordpress.com/2013/10/a-nightmare-on-elm-street-2010-horror-movies-11384409-720-297.jpg http://img.timeinc.net/time/daily/2009/0901/360_elm_street_0105.jpg

Slide 13

Slide 13 text

ELM ST. near Austin, TX http://brooklynsteez.com/products/square/81690.png http://tinyurl.com/mtmlbpx #1 #2

Slide 14

Slide 14 text

http://www.chud.com/wp-content/uploads/2012/07/MEGAFORCE-FRONT-copy.jpg At least, you have MEGAFORCE ✓ Righteous girl + bodacious dude ✓ light beams flying everywhere ✓ The one with the “Force”

Slide 15

Slide 15 text

http://images.sodahead.com/slideshows/000000228/betamax-11979413784_xlarge.jpeg http://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Betavhs2.jpg/220px-Betavhs2.jpg Betamax vs. VHS

Slide 16

Slide 16 text

WHAT HAPPENED, DUDE?

Slide 17

Slide 17 text

PIZZA bad or no results = ambiguous query MEGA FORCE got results, not what was expected BETAMAX results weren’t useful WHAT HAPPENED, DUDE?

Slide 18

Slide 18 text

It’s A Hard Knock Life http://2.bp.blogspot.com/_9ROOpn4epE0/SwHye-JfXYI/AAAAAAAADQo/mjKOBuVL3EU/s1600/02.jpg

Slide 19

Slide 19 text

Livin’ on a Prayer ➢ “Grand Challenges” require data ➢ Right data has been hard to find http://4.bp.blogspot.com/-ymbRRrq5G-4/Uy99LJEuPTI/AAAAAAAAIzA/GbuMaLcLd1c/s1600/the-life-aquatic-with-steve-zissou-1024x435.png

Slide 20

Slide 20 text

Zooplankton abundance

Slide 21

Slide 21 text

http://fallmeeting.agu.org/2012/eposters/eposter/in43b-1506/

Slide 22

Slide 22 text

PEOPLE & ORGANIZATIONS http://www.thelifeaquatic.org/images/walking.jpg

Slide 23

Slide 23 text

CRUISES & LOCATIONS http://www.whoi.edu/main/ships/knorr http://www.whoi.edu/cruiseplanning/files/1355434346284_5722_Cruise_track_121312.jpg R/V KNORR

Slide 24

Slide 24 text

INSTRUMENTS & MEASUREMENTS http://globec.whoi.edu/globec-dir/reports/al9906/Image29.gif http://www.whoi.edu/cms/images/instruments/2004/8/vpr_advanced_1383.gif

Slide 25

Slide 25 text

FUNDING http://thewartburgwatch.com/wp/wp-content/uploads/2012/05/fan-of-dollars1.jpg

Slide 26

Slide 26 text

BCO-DMO on Drupal http://www.bco-dmo.org

Slide 27

Slide 27 text

AHA #1: Data needs CONTEXT http://www.oocities.org/sunsetstrip/4426/visual/faces.gif What is it: 2 faces - or - 1 candlestick

Slide 28

Slide 28 text

CONTEXT influences the understanding of a subject by adding surrounding information.

Slide 29

Slide 29 text

CONTEXT influences the understanding of a subject by adding surrounding information.

Slide 30

Slide 30 text

CONTEXT: Related Links http://www.whoi.edu/oceanus/feature/deep-western-boundary-current

Slide 31

Slide 31 text

http://www.whoi.edu/oceanus/feature/deep-western-boundary-current CONTEXT: Related Links

Slide 32

Slide 32 text

http://www.themightyginge.com/blog/wp-content/uploads/2014/04/porthole.jpg http://compartmaps.com/images/415_World_Oceanflat.jpg Geospatial CONTEXT

Slide 33

Slide 33 text

http://www.themightyginge.com/blog/wp-content/uploads/2014/04/porthole.jpg http://compartmaps.com/images/415_World_Oceanflat.jpg Geospatial CONTEXT

Slide 34

Slide 34 text

VISUALIZING the CONTENT

Slide 35

Slide 35 text

VISUALIZING the CONTENT

Slide 36

Slide 36 text

VISUALIZING the CONTENT,

Slide 37

Slide 37 text

“STILL HAVEN’T FOUND WHAT I’M LOOKING FOR…” http://4.bp.blogspot.com/-mTbIH1IeLpw/Uxvh-es_ifI/AAAAAAAAFEg/BtRDO0w9U6w/s1600/I-wonder-if-it-remembers-me.-life-aquatic-with-steve-zissou- 2004.gif

Slide 38

Slide 38 text

Addressing the “Grand Challenges” requires interoperable systems to aid in the discovery & exchange of information. AHA #2: Cooperative Data

Slide 39

Slide 39 text

Somewhere out there… where dreams come true.

Slide 40

Slide 40 text

Express Yourself What does it mean to be “friends”? What does “connected” mean? ➢ Family are “friends” ➢ Co-workers are “friends” ➢ High-school acquaintances are “friends”

Slide 41

Slide 41 text

Example: Walking on the Moon http://astrobob.areavoices.com/files/2011/08/Moon-May-3-AS-Del1-1024x776.jpg

Slide 42

Slide 42 text

Copernicus plotted http://stko.geog.ucsb.edu/location_linked_data Is that the moon?

Slide 43

Slide 43 text

“One small step for man...” in South Sudan APO LLO 11 http://dbpedia.oobian.com/#/OobianMaps/VPIN/dbp%253aCopernicus_(lunar_crater)

Slide 44

Slide 44 text

http://www.leftcoastgrassfed.com/ Example: Grass-fed beef supplier

Slide 45

Slide 45 text

SEARCH: “COASTAL BEEF” http://www.leftcoastgrassfed.com/

Slide 46

Slide 46 text

IS “COASTAL BEEF” DEADLY? http://tinyurl.com/laawqgv http://i343.photobucket.com/albums/o465/MattLeader/Biggie-ReadyToDie-CD.jpg

Slide 47

Slide 47 text

AHA #3: Reliable data exchange needs semantic interoperability

Slide 48

Slide 48 text

AHA #3: Reliable data exchange needs semantic interoperability ➢ Sender knows Ready To Die is a “MusicalWork”

Slide 49

Slide 49 text

AHA #3: Reliable data exchange needs semantic interoperability ➢ Sender knows Ready To Die is a “MusicalWork” ➢ Receiver should interpret Ready To Die as a “MusicalWork”

Slide 50

Slide 50 text

Semantic interoperability means shared UNDERSTANDING throughout content exchange.

Slide 51

Slide 51 text

If your content is worthy of a website, then it deserves to be understood. http://drupal.org/files/druplicon.small_.png http://www.mouthymag.com/wp-content/uploads/2013/11/tumblr_inline_mjwd8k0Zjs1qz4rgp.jpg http://deployment.googleapps.com/_/rsrc/1326052805286/Home/user-resources/google-icons-and-logos/google_logo_3D_online_medium.png http://www.wildsoundmovies.com/images/terminator_logo.jpg HUMANS MEDIATORS MACHINES

Slide 52

Slide 52 text

SCREENCAST LINKED DATA in ACTION https://www.youtube.com/watch?v=_bn4muKqXv0

Slide 53

Slide 53 text

MapServer OpenSearch Linked Data Drupal What’s the Stack, Yo? http://mapserver.org/ http://www.opensearch.org/ http://www.w3.org/standards/semanticweb/data https://drupal.org/

Slide 54

Slide 54 text

LINKED DATA http://www.ibiblio.org/hhalpin/homepage/presentations/tpac2008/rdf.png What’s the big deal?

Slide 55

Slide 55 text

➢ Some facets are built from 3rd party ❏ Instruments by Type ❏ Parameters by Type Linked Data: The Deal

Slide 56

Slide 56 text

➢ repository of oceanographic terms ➢ vetted by oceanographers (pan-European project) ➢ exposed as Linked Data by BODC SeaDataNet @ BODC http://vocab.nerc.ac.uk/ http://www.seadatanet.org/extension/seadatanet2/design/skin-seadatanet2/images/Logo_SeaDataNet_fond_transparent.png

Slide 57

Slide 57 text

One consumer was across the ‘pond’ - 3,000 miles away It was assumed that SeaDataNet terms would be useful to others

Slide 58

Slide 58 text

1. Context through RDF vocabularies 2. Cooperation via common framework (RDF) 3. Cooperation without coordination 4. Semantic Interoperability through HTTP URIs for naming things LINKED DATA http://www.ibiblio.org/hhalpin/homepage/presentations/tpac2008/rdf.png

Slide 59

Slide 59 text

LINKED DATA + DRUPAL http://www.ibiblio.org/hhalpin/homepage/presentations/tpac2008/rdf.png http://fc03.deviantart.net/fs71/i/2011/179/c/d/vector_tree_by_axelintu-d3kedq3.png http://drupal.org/files/druplicon.small_.png

Slide 60

Slide 60 text

RDF (core) ➢ Entities have globally unique URIs ➢ Content Types = RDF Vocabulary Classes ➢ Fields = RDF Vocabulary Class Properties http://calexis.com/blog/wp-content/uploads/2010/06/My-Name-Is.jpg CONTEXT

Slide 61

Slide 61 text

RDFx (contrib) ➢ Serializes content in RDF data model (“structured data”) ○ 1 model = many formats ■ HTML ■ JSON ■ XML ■ TEXT ○ RestWS support http://calexis.com/blog/wp-content/uploads/2010/06/My-Name-Is.jpg http://www.contestheat.com/wp-content/uploads/2013/03/lays-flavor-walgreens-giveaway.png COOPERATION

Slide 62

Slide 62 text

RDF UI (rdfx) https://drupal.org/files/issues/835350-8-rdf-ui-form-fields.jpg

Slide 63

Slide 63 text

TimBL: Linked Data is a Bag of Chips https://www.youtube.com/watch?v=ga1aSJXCFe0

Slide 64

Slide 64 text

Vocabularies @ BCO-DMO Ocean Data Ontology cruises, ships, instrumentation, measurements, funding Dublin Core generic metadata DCAT dataset catalog FOAF people & organizations VoID linking data GeoSPARQL geospatial features PROV-O provenance (revisions & activity) For info on creating your own vocabulary, try this presentation: http://www.slideshare.net/OpenDataSupport/model-your-data-metadata

Slide 65

Slide 65 text

Enable rdf and rdfx modules for immediate semantic interoperability POWER-UP #1 http://images.clipartlogo.com/files/images/32/325521/mushroom-vector-power_f.png http://37.media.tumblr.com/08e90c026242fbee0c7704b078219359/tumblr_mu1gb4NKee1sw8d3mo6_400.png http://newsupermariobrosu.nintendo.com/_ui/img/powerups/art1b.png

Slide 66

Slide 66 text

QUERYING LINKED DATA http://www.cedar-project.nl/wp-content/uploads/alibobo_w3cSPARQL-logo.png OpenSearch Linked Data

Slide 67

Slide 67 text

rdf_indexer (contrib) ➢ Index data in triple store ➢ Uses Search API ➢ SPARQL endpoint

Slide 68

Slide 68 text

rdf_indexer (contrib) ➢ Uses Search API

Slide 69

Slide 69 text

rdf_indexer (contrib) ➢ SPARQL endpoint

Slide 70

Slide 70 text

rdf_indexer (contrib) ➢ Extensible for support of external RDF stores ○ BCO-DMO uses Virtuoso RDF store ○ submitted Virtuoso extension as a patch (https: //drupal.org/node/2029717) ■ BCO-DMO SPARQL endpoint: http://lod.bco-dmo.org/sparql

Slide 71

Slide 71 text

Enable rdf_indexer to make your data queryable. POWER-UP #2 http://img2.wikia.nocookie.net/__cb20131129222600/mario/images/5/5d/Fireflower3dworld.png http://newsupermariobrosu.nintendo.com/_ui/img/powerups/art1b.png http://img3.wikia.nocookie.net/__cb20120718023604/fantendo/images/thumb/c/c7/NSMB2_Fire_Mario.png/1024px-NSMB2_Fire_Mario.png

Slide 72

Slide 72 text

LINKED DATA: External Links

Slide 73

Slide 73 text

LINKED DATA: External Links

Slide 74

Slide 74 text

LINKED DATA: External Links

Slide 75

Slide 75 text

LINKED DATA: External Links

Slide 76

Slide 76 text

Generate value by creating links from your data to others. POWER-UP #3 http://newsupermariobros2.nintendo.com/mobile/_ui/img/power-ups/carousel/super-star.png http://newsupermariobrosu.nintendo.com/_ui/img/powerups/art1b.png http://www.mariowiki.com/images/thumb/8/85/Nsmb2_starman_mario.png/220px-Nsmb2_starman_mario.png http://dbpedia.org https://www.freebase.com http://www.wikidata.org

Slide 77

Slide 77 text

DATA is out there... http://datavisualization.ch/wp-content/uploads/2011/01/lod-wikipedia.png

Slide 78

Slide 78 text

New York Times: Innovation Report “...there are substantial costs to waiting.” http://www.niemanlab.org/2014/05/the-leaked-new-york-times-innovation-report-is-one-of-the-key-documents-of-this-media-age/

Slide 79

Slide 79 text

New York Times: Innovation Report RECIPES aren’t properly tagged by ingredients and cooking time “We can do it now, but only after spending a huge sum to retroactively structure the data.” http://www.niemanlab.org/2014/05/the-leaked-new-york-times-innovation-report-is-one-of-the-key-documents-of-this-media-age/

Slide 80

Slide 80 text

New York Times: Innovation Report “The lack of structured data helps explain why we are...“ 1. unable to automate the sale of our photos 2. continually struggle to attain higher rankings on search engines. http://www.niemanlab.org/2014/05/the-leaked-new-york-times-innovation-report-is-one-of-the-key-documents-of-this-media-age/

Slide 81

Slide 81 text

New York Times: Innovation Report “We need to reclaim our industry-leading position, but right now our needs are far more basic. We must expand the structured data we create.” http://www.niemanlab.org/2014/05/the-leaked-new-york-times-innovation-report-is-one-of-the-key-documents-of-this-media-age/

Slide 82

Slide 82 text

“I like a good story, well told.” -Mark Twain

Slide 83

Slide 83 text

CONTEXT with CONTENT

Slide 84

Slide 84 text

REFERENCES Linked Data by David Wood (Manning) Learning SPARQL by Bob DuCharme (O’Reilly) Definitive Guide to Drupal 7 Chapter 28 by Stéphane Corlosquet (Apress) http://www.manning.com/dwood/ http://www.learningsparql.com/ http://definitivedrupal.org/

Slide 85

Slide 85 text

BoF: LINKED DATA & RDF IN DRUPAL Time: Thursday · 11:45-01:00 Room: 10B - Blink Reaction | 3rd floor

Slide 86

Slide 86 text

QUESTIONS? Twitter: @ashep_15 drupal.org: ashepherd Twitter: @scorlosquet drupal.org: scor

Slide 87

Slide 87 text

WHAT DID YOU THINK? EVALUATE THIS SESSION: AUSTIN2014.DRUPAL.ORG/SCHEDULE Thank you! LINKED DATA + DRUPAL FOR OCEANOGRAPHIC DATA MANAGEMENT