introduction to apis and linked data

33
Adrian Stevenson Senior Technical Innovations Coordinator Mimas, University of Manchester, UK @adrianstevenson Introduction to APIs and Linked Data

Upload: adrian-stevenson

Post on 28-Jan-2015

117 views

Category:

Education


2 download

DESCRIPTION

Talk given at Open Knowledge Foundation 'Opening Up Metadata: Challenges, Standards and Tools' Workshop, Queen Mary University of London, 13th June 2012. Info on the event at http://openglam.org/2012/05/31/last-places-left-for-opening-up-metadata-challenges-standards-and-tools/

TRANSCRIPT

Page 1: Introduction to APIs and Linked Data

Adrian StevensonSenior Technical Innovations Coordinator

Mimas, University of Manchester, UK

@adrianstevenson

Introduction to APIs and Linked Data

Page 2: Introduction to APIs and Linked Data

Benefits of APIs for GLAMs

• Cross-searching• Improved resource discovery• Data not trapped in silos• Findability on the Web – Google• Data re-use• Bringing data together - integration• Enhanced services – e.g. Mashups

2

Page 3: Introduction to APIs and Linked Data

Metadata

• What is it? - Data about data• How do you create it?

– Catalog card, text editor, Word, Excel, Access, XML Editor….

• Do you use standards?– EAD – Encoded Archival Description– Not using standards may have implications for

interoperability & sustainability

• How do you move it around?– CDs, Email attachments, FTP, APIs

3

Page 4: Introduction to APIs and Linked Data

What is an API?

• ‘Application Programming Interface’

– “API is an online interface that allows distributed systems to communicate with one another and exchange information”

– “APIs are carefully thought out pieces of code created by programmers .. that allow other applications to interact with their application”

4

Page 5: Introduction to APIs and Linked Data

APIs

• Allow machine readability of data– Typically over the Web

• Provide other systems with access to content or functions

• Many types – e.g.– Google, Facebook, Flickr, twitter APIs ….– OAI-PMH– Linked Data API, SPARQL– Others include SOLR, SRU, Z39.50, SOAP, ….

5

Page 6: Introduction to APIs and Linked Data

APIs are Machine to Machine

• API is software-to-software interface, not a user interface

• E.g. Cinema ticket websites use API:– Sends credit card info to remote application– Remote application sends response back to

ticket website saying OK to issue the tickets • User see one interface

6

Page 7: Introduction to APIs and Linked Data

Historypin

7

http://www.historypin.com

Page 8: Introduction to APIs and Linked Data

Mashups

8http://www.vistory.nl/Data from www.openimages.eu/api

Page 9: Introduction to APIs and Linked Data

9

Page 10: Introduction to APIs and Linked Data

Twitter API

10

https://dev.twitter.com/

Page 11: Introduction to APIs and Linked Data

11

https://developers.google.com/google-apps/spreadsheets/

Page 12: Introduction to APIs and Linked Data

Open Expenses

12http://benosteen.wordpress.com/2010/02/27/giving-the-mps-a-receipt-for-their-expenses-claim/

Page 13: Introduction to APIs and Linked Data

OAI-PMH

• Open Archive Initiative Protocol for Metadata Harvesting

• Mechanism for repositories and services to share metadata over the Web

• Facilitates cross-searching• Works by use of 6 ‘verbs’

– E.g. ListMetadataFormats, ListRecord, GetRecord …– http://archiveshub.ac.uk/api/OAI-PMH/2.0/hub?verb=Identify– http://archiveshub.ac.uk/api/OAI-PMH/2.0/hub?verb=

GetRecord&identifier=gb141vbh&metadataPrefix=oai_dc

13

Page 14: Introduction to APIs and Linked Data

OAI-PMH: GetRecord

14

Page 15: Introduction to APIs and Linked Data

15

http://oaister.worldcat.org/

Page 16: Introduction to APIs and Linked Data

Linked Data

16

“The term Linked Data refers to a set of best practices for publishing and connecting structured data on the Web.”

“the Semantic Web is the goal or end result… Linked Data provides the means to reach that goal”

From ‘Linked Data: The Story So Far’ - Heath, Bizer and Berners-Lee 2009

Page 17: Introduction to APIs and Linked Data

The goal of Linked Data is to enable people to share structured data on the Web as easily as they can share documents today.Bizer/Cyganiak/Heath Linked Data Tutorial, linkeddata.org

Page 18: Introduction to APIs and Linked Data

Linked Data Design Issues

• URIs• LD Design Issues• Triples

http://www.w3.org/DesignIssues/LinkedData.html

Page 19: Introduction to APIs and Linked Data

URIs and HTTP

• “A Uniform Resource Identifier’ (URI) provides a simple and extensible means for identifying a resource” – W3C RFC 3986

• HTTP URIs may be ‘de-referenced’on the Web

• HTTP URIs are used for “real world” things• http://adrianstevenson.com/id/me• http://dbpedia.org/resource/Love

Page 20: Introduction to APIs and Linked Data

RDF

• Resource Description Framework– a language for representing information about

resources on the Web– RDF can be used to represent things identified

on the Web, even when they cannot be directly retrieved on the Web

• Describes relations using ‘triples’

• http://www.w3.org/TR/REC-rdf-syntax/

Page 21: Introduction to APIs and Linked Data

Triples

• Triples statements– ‘Things’ have ‘properties’ with ‘values’– Subject – Predicate - Object

• Triples are the basis of RDF and Linked Data

ArchivalResource

Repository Provides Access To

The Rolling Stones

Keith Richards Is Member Of

Page 22: Introduction to APIs and Linked Data

Archives Hub Model

Page 23: Introduction to APIs and Linked Data

From RDF to Linked Data

• If something is identified, it can be linked to• We take items from our datasets and link

them to items from other datasets

BBCVIAF

DBPedia

Archives Hub

Copac

GeoNames

Page 24: Introduction to APIs and Linked Data

http://data.archiveshub.ac.uk/

Page 25: Introduction to APIs and Linked Data

http://data.archiveshub.ac.uk/id/person/nra/webbmarthabeatrice1858-1943socialreformer

Page 26: Introduction to APIs and Linked Data

28

http://archiveshub.ac.uk/linkinglives/

Page 27: Introduction to APIs and Linked Data
Page 28: Introduction to APIs and Linked Data

http://wraggelabs.com/shed/presentations/anzi

Page 29: Introduction to APIs and Linked Data

Key Benefit of Linked Data

• Web 2.0 mashups work against a fixed set of data sources• Hand crafted by humans• Don’t integrate well

• Linked Data promises an unbound global data space• Easy dataset integration• Generic ‘mesh-up’ tools

Page 30: Introduction to APIs and Linked Data

Benefits for GLAMs

• Cross-searching• Improved resource discovery• Data not trapped in silos• Findability on the Web – Google• Data re-use• Bringing data together - integration• Enhanced services

32

Page 31: Introduction to APIs and Linked Data

Linked Data Challenges

• Dirty data, URI persistence• Steep learning curve• Complexity• How sustainable are the data sources?• How scalable are triple stores?• Can you track the provenance of data

sources?• Licensing

• are data licensing issues covered?

33

Page 32: Introduction to APIs and Linked Data

Contact

34

Adrian StevensonMimas, University of Manchester, [email protected]

www.mimas.ac.uk

@adrianstevensonwww.linkedin.com/in/adrianstevensonwww.slideshare.net/adrianstevenson

Page 33: Introduction to APIs and Linked Data

CC License

• This presentation available under creative commons Non Commercial-Share Alike:

http://creativecommons.org/licenses/by-nc/2.0/uk/