IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19 th of August 2014 1 International Image Interoperability Framework and JSON-LD Robert Sanderson [email protected][email protected]@azaroth42 #iiif Digital Library Systems and Services Stanford University http://iiif.io/
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
1
International Image Interoperability Framework and JSON-LD
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
8
EU Federation: Europeana
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
9
EU Federation: Europeana
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
10
From Europeana to Many One-Off Apps
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
11
And Out Again...
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
12
To Complexity
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
13
US Federation: DPLA
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
14
US Federation: DPLA
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
15
From DPLA to Many One-Off Apps
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
16
And Out Again...
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
17
To Complexity
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
18
US Federation: DPLA
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
19
Out to Ege 1 in South Carolina
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
20
Meet Otto and Ben
Otto Ege, 20th c. Biblioclast
Ben Albritton 21st c. Manuscript
Scholar
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
21
Meet Otto and Ben
Otto Ege, 20th c. Biblioclast
Ben Albritton 21st c. Manuscript
Scholar
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
22
Otto Ege MS 1, as of 1940
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
23
Remnants of Otto Ege MS 1, as of 2014
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
24
Remnants of Otto Ege MS 1, as of 2014
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
25
Stanford’s Leaves of Ege MS 1
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
26
http://iiif.io/
Global community and framework for sharing and delivering images, especially for Cultural Heritage, using standard APIs
via jointly developed and supported software.
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
27
IIIF Community
• ARTstor • Bibliothèque Nationale de
France • Bodleian Libraries, Oxford
University • British Library • Cambridge University • Cornell University • DPLA • Europeana • e-codices • Harvard University
• Johns Hopkins University • National Library of Denmark • National Library of New Zealand • National Library of Norway • National Library of Poland • National Library of Wales • Princeton University • St. Louis University • Stanford University • Wellcome Trust • UK National Archives • Yale University
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
28
Two APIs: Image and Presentation
Image API: http://iiif.io/api/image/2.0/
Two parts: Actual Pixels, Technical Metadata (JSON-LD) Presentation API: http://iiif.io/api/presentation/2.0/
Based on Shared Canvas data model (in JSON-LD)
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
29
IIIF Image API
Base URL: {scheme}://{host}{/prefix}/{identifier}!Image Resource: {base}/{region}/{size}/{rotation}/{quality}.{format}!!
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
30
IIIF Image API
Base URL: {scheme}://{host}{/prefix}/{identifier}!Image Resource: {base}/{region}/{size}/{rotation}/{quality}.{format}!!
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
31
IIIF Image API
Base URL: {scheme}://{host}{/prefix}/{identifier}!Image Resource: {base}/{region}/{size}/{rotation}/{quality}.{format}!!
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
32
IIIF Image API
Base URL: {scheme}://{host}{/prefix}/{identifier}!Image Resource: {base}/{region}/{size}/{rotation}/{quality}.{format}!!
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
33
IIIF Image API
Base URL: {scheme}://{host}{/prefix}/{identifier}!Image Resource: {base}/{region}/{size}/{rotation}/{quality}.{format}!!
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
34
IIIF Image API
Base URL: {scheme}://{host}{/prefix}/{identifier}!Image Resource: {base}/{region}/{size}/{rotation}/{quality}.{format}!!
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
35
IIIF Image API: Region
Image Resource: {base}/{region}/{size}/{rotation}/{quality}.{format}!!!• Full Image: {base}/full/full/0/default.jpg!!
• Area by Pixels: {base}/100,100,640,480/full/0/default.jpg!!
• Area by Percentage: {base}/pct:50,50,33,33/full/0/default.jpg!
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
• Size by Pixels, forced aspect: {base}/full/640,480/0/default.jpg!
• Size by Pixels, aspect preserved: {base}/full/!640,480/0/default.jpg!
• Size by Percentage: {base}/full/pct:50/0/default.jpg!• Size by Width, or by Height: ! {base}/full/,480/0/default.jpg! {base}/full/640,/0/default.jpg !
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
43
"RDF/XML was the Semantic Web's 3 Mile Island" Manu Sporny, http://manu.sporny.org/2012/nuclear-rdf/
by Z22 - http://commons.wikimedia.org/wiki/File:Three_Mile_Island_Nuclear_Generating_Station_Unit_2.jpg
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
44
"RDF/XML was the Semantic Web's 3 Mile Island"
Cleaning Up the Mess: Stop talking about RDF Focus on tools Focus on developers More "Dogfooding" JSON-LD http://json-ld.org/ John G. Kemeny et al. http://commons.wikimedia.org/wiki/File:TMI_cleanup-2.jpg
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
45
http://json-ld.org/
• Uses popular JSON format • Uses regular JSON idioms • Can often use existing JSON formats without change • Maps into RDF using a "context" definition
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
46
JSON-LD Basics
• {} is a node in the graph • @id key gives the subject, omit to create a blank node • Other keys are predicates, values are objects {! "@id": "http://stanford.edu/~azaroth/#me",! "label": "Rob Sanderson", ! "height": 183!}! Remember kids, curly brackets are the new angle brackets.
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
47
JSON-LD Basics
• @type gives the class (rdf:type) • New nodes are chained inline
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
49
Magic????
• @context provides a mapping to RDF • Can define prefixes and predicates {! "@context": {! "foaf": "http://xmlns.com/foaf/0.1/",! "rdfs": "http://www.w3.org/2000/01/rdf-schema#",! "Person": "foaf:Person",! "label": "rdfs:label"! },! "@id": "http://stanford.edu/~azaroth/#me",! "@type": "Person",! "label": "Rob Sanderson"!}!
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
50
Magic????
• Can define the expected type of object {! "@context": {! "foaf": "http://xmlns.com/foaf/0.1/",! "Person": "foaf:Person",! "hasPet": {! "@id": "http://example.com/ns/hasPet",! "@type": "@id"! }! },! "@id": "http://stanford.edu/~azaroth/#me",! "@type": "Person",! "hasPet": "http://stanford.edu/~azaroth/miya/#cat"!}!
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
51
Magic????
• Can define the meaning of a JSON list • Can redefine properties without changing representation {! "@context": {! "playlist": {! "@id": "http://eg.com/ns/hasPlaylist",! "@type": "@id",! "@container": "@list"! },! "label": "http://xmlns.com/foaf/0.1/name"! },! "@id": "http://stanford.edu/~azaroth/#me",! "label": ["Rob Sanderson", "Robert Sanderson"],! "playlist": ["..."]!}!
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
53
IIIF Presentation API
Just enough metadata to support a client presenting the digital Cultural Heritage Object for the user to understand what she is interacting with Why “Presentation API”?
• NOT a[nother] full semantic, bibliographic metadata “standard” • NOT (necessarily) an internal format: transform into it • Linked Open Data (JSON-LD) • Rationalization of (abstract) Shared Canvas data model • Full support for annotation via Open Annotation
• http://iiif.io/api/presentation/2.0/
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
54
Shared Canvas
• A Canvas is an empty space in which to build up a display
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
55
Shared Canvas
• A Canvas is an empty space in which to build up a display • A SharedCanvas's top left and bottom right corners correspond to the equivalent corners of a page
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
56
Shared Canvas / Open Annotation
• Annotation links Image with Canvas
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
57
Shared Canvas / Open Annotation
• Annotation links Text with Canvas
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
58
Shared Canvas / Open Annotation
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
59
Benefits of Canvas Notion Multiple Images of same page
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
67
Open Annotation: Community Group
Established W3C Community Group in 2011 Currently 5th Largest of 177 groups: 128 participants Today is final day for Annotation Working Group charter review!
http://www.w3.org/community/openannotation/
Interoperability between Annotation systems and platforms, by …following the Architecture of the Web …reusing existing web standards …providing a single, coherent model to implement …which is orthogonal to the domain of interest …without requiring adoption of specific platforms …while maintaining low implementation costs
Mission:
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
68
Open Annotation: Basic Data Model
http://www.openannotation.org/spec/core/
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
69
Technical Demo: Mise-en-Page
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
70
Mirador
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
71
Mirador2
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
72
Wellcome Player
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
73
Remnants of Otto Ege MS 1, as of 2014
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
74
Otto Ege MS 1, Reconstructed, in 2014
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014
75
Otto Ege MS 1, Reconstructed, in 2014
IIIF and JSON-LD LODLAM Training Day, SemTechBiz, San Jose CA, 19th of August 2014