SlideShare une entreprise Scribd logo
1  sur  58
Télécharger pour lire hors ligne
an
   API
   for
  books
@hughmcguire

pressbooks.com
To Do List:

1. start thinking of books as [stuff].

2. think about how we make books

        3. look at examples

  4. wonder: is this easy or hard?
What is a book?
My definition:

“A book is a discrete collection of text (and
     other media), that is designed by the
    author(s) as an internally complete
  representation of an idea, or set of ideas;
       emotion or set of emotions; and
 transmitted to readers in various formats.”
What’s in a book?
joy!
         pleasure!
      knowledge!
       characters!
    fictional people!
      real people!
          places!
        concepts!
        footnotes!
       references!
lots and lots of other ...
THINGS!
(and: things that we can name).
What is an API?
Terry Jones’s Definition:

“Just as a User Interface gives humans
  access to information, an API gives
   programs access to information.”
What is a (book) API’s job?
“To give other services the ability to
use [the stuff] in your books, under
       defined circumstances.”
An API is
     another mechanism
by which a publisher can do its
        job, which is:

       “to make public”
    the contents of a book
  (under certain commercial
        arrangements)
HOW:
Start with your
    INDEX.
What is an index’s job?
Shakespeare’s Answer:

“And in such indexes, although small pricks
 To their subsequent volumes, there is seen
      The baby figure of the giant mass
         Of things to come at large.”

            (Troilus and Cessida).
What does a paper index look like?
What does an ebook index look like?
That there is a link!
<a href="/chapter3/index-entry-78">Dracula</a>

<a href="/chapter4/index-entry-101">May 1, 1893</a>
<a href="/chapter1/index-entry-122">Munich</a>
<a href="/chapter9/index-entry-11">Murder</a>

<a href="/chapter10/index-entry-68">Succotash</a>
<a href="/chapter6/index-entry-99">Smith, Dr.</a>
<a href="/chapter16/index-entry-119">Sambuca</a>

<a href="/chapter15/index-entry-199">Vienna</a>
<a href="/chapter2/index-entry-666">Veins</a>
Jonathan Harker’s Journal:
3 May. Bistritz.

Left Munich at 8:35 P.M., on 1st May,
arriving at Vienna early next morning ...the
post town named by Count Dracula, is a
fairly well-known place....
Left Munich at 8:35 P.M., on 1st
May, arriving at Vienna early
next morning ... the post town
named by Count Dracula, is a
fairly well-known place....
Left <a id="index-entry-122">Munich</a>
at 8:35 P.M., on <a id="index-
entry-101">1st May</a>, arriving at <a
id="index-entry-199">Vienna</a> early
next morning... the post town named by
<a id="index-entry-99">Count Dracula</
a>, is a fairly well-known place...
What does a smart index look
            like?
Left <a id="index-entry-122"
class=”place”>Munich</a> at 8:35 P.M.,
on <a id="index-entry-101"
class=”date”>1st May</a>, arriving at <a
id="index-entry-199"
class=”place”>Vienna</a> early next
morning...the post town named by <a
id="index-entry-99" class=”person”>Count
Dracula</a>, is a fairly well-known
place...
<a href="/chapter3/index-entry-78" class=”person”>Dracula</a>

<a href="/chapter4/index-entry-101" class=”date”>May 1, 1893</
a>
<a href="/chapter1/index-entry-122" class=”place”>Munich</a>
<a href="/chapter9/index-entry-11" class=”cause-of-
death”>Murder</a>

<a href="/chapter10/index-entry-68" class=”food”>Succotash</a>
<a href="/chapter6/index-entry-99" class=”person”>Smith, Dr.</
a>
<a href="/chapter16/index-entry-119" class=”food
drink”>Sambuca</a>

<a href="/chapter15/index-entry-199" class=”place”>Vienna</a>
<a href="/chapter2/index-entry-666" class=”body-part”>Veins</
a>
HEY!

THAT’S AN API!

THAT WAS EASY!
What can we do with a book API?
We can build different interfaces
that allow readers to engage in
         different ways.
The Pulp interface.
image: Gleann Ignacio
The Bits interface.
Image: Rebekah Ford
The
“what stuff is mentioned in this
              book”
           interface:

        Small Demons.
The
“who is reading this and what are
      they saying about it”
            interface:

           Readmill.
The
“Let’s explode this book and put it back
       together in a very cool way”
                interface:

          Dracula Dissected.

     bit.ly/draculadissected
IS THIS HARD?
Not if you use a good
         book-based
content management system.
        (like PressBooks!).
Conclusions:
1.
Books are made of stuff that can be
             named
2.
 If you name stuff in your HTML
   (while indexing!), then we can
(easily) build new uses/interfaces
  for our books, such as Dracula
             Dissected.
3.
        <shameless_plug>
    If you use something like
 PressBooks to make your books,
making Dracula Dissected becomes
              easy.
       </shameless_plug>
So ... What is a book?
My definition:

“A book is a discrete collection of text (and
    other media), that is designed by the
   author(s) as an internally complete
 representation of an idea, or set of ideas;
       emotion or set of emotions...

             ... with an API.”
Talk to me about dissecting your
            Dracula!

    hugh@pressbooks.com
       @hughmcguire

    http://pressbooks.com

Contenu connexe

Plus de Hugh McGuire

What PressBooks Does to WordPress
What PressBooks Does to WordPressWhat PressBooks Does to WordPress
What PressBooks Does to WordPressHugh McGuire
 
8 Reflections on New Book Production Workflows
8 Reflections on New Book Production Workflows8 Reflections on New Book Production Workflows
8 Reflections on New Book Production WorkflowsHugh McGuire
 
Pressbooks Demo Deck
Pressbooks Demo DeckPressbooks Demo Deck
Pressbooks Demo DeckHugh McGuire
 
Why Books & the Internet Will Merge
Why Books & the Internet Will MergeWhy Books & the Internet Will Merge
Why Books & the Internet Will MergeHugh McGuire
 
Open, Webby Book Publishing
Open, Webby Book PublishingOpen, Webby Book Publishing
Open, Webby Book PublishingHugh McGuire
 
Four Reasons to be Worried about Publishing
Four Reasons to be Worried about PublishingFour Reasons to be Worried about Publishing
Four Reasons to be Worried about PublishingHugh McGuire
 
Ten Thoughts on Social Media & Marketing
Ten Thoughts on Social Media & MarketingTen Thoughts on Social Media & Marketing
Ten Thoughts on Social Media & MarketingHugh McGuire
 
Ceci n'est pas une book
Ceci n'est pas une bookCeci n'est pas une book
Ceci n'est pas une bookHugh McGuire
 
How to Build an Unsuccessful Start-Up
How to Build an Unsuccessful Start-UpHow to Build an Unsuccessful Start-Up
How to Build an Unsuccessful Start-UpHugh McGuire
 

Plus de Hugh McGuire (12)

What PressBooks Does to WordPress
What PressBooks Does to WordPressWhat PressBooks Does to WordPress
What PressBooks Does to WordPress
 
8 Reflections on New Book Production Workflows
8 Reflections on New Book Production Workflows8 Reflections on New Book Production Workflows
8 Reflections on New Book Production Workflows
 
Book as URL
Book as URLBook as URL
Book as URL
 
Opening the Book
Opening the BookOpening the Book
Opening the Book
 
Pressbooks Demo Deck
Pressbooks Demo DeckPressbooks Demo Deck
Pressbooks Demo Deck
 
Why Books & the Internet Will Merge
Why Books & the Internet Will MergeWhy Books & the Internet Will Merge
Why Books & the Internet Will Merge
 
PivotCamp preso
PivotCamp presoPivotCamp preso
PivotCamp preso
 
Open, Webby Book Publishing
Open, Webby Book PublishingOpen, Webby Book Publishing
Open, Webby Book Publishing
 
Four Reasons to be Worried about Publishing
Four Reasons to be Worried about PublishingFour Reasons to be Worried about Publishing
Four Reasons to be Worried about Publishing
 
Ten Thoughts on Social Media & Marketing
Ten Thoughts on Social Media & MarketingTen Thoughts on Social Media & Marketing
Ten Thoughts on Social Media & Marketing
 
Ceci n'est pas une book
Ceci n'est pas une bookCeci n'est pas une book
Ceci n'est pas une book
 
How to Build an Unsuccessful Start-Up
How to Build an Unsuccessful Start-UpHow to Build an Unsuccessful Start-Up
How to Build an Unsuccessful Start-Up
 

Dernier

Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Dernier (20)

Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Book as API (Hugh McGuire)

  • 1. an API for books @hughmcguire pressbooks.com
  • 2. To Do List: 1. start thinking of books as [stuff]. 2. think about how we make books 3. look at examples 4. wonder: is this easy or hard?
  • 3. What is a book?
  • 4. My definition: “A book is a discrete collection of text (and other media), that is designed by the author(s) as an internally complete representation of an idea, or set of ideas; emotion or set of emotions; and transmitted to readers in various formats.”
  • 6. joy! pleasure! knowledge! characters! fictional people! real people! places! concepts! footnotes! references! lots and lots of other ...
  • 8. What is an API?
  • 9. Terry Jones’s Definition: “Just as a User Interface gives humans access to information, an API gives programs access to information.”
  • 10. What is a (book) API’s job?
  • 11. “To give other services the ability to use [the stuff] in your books, under defined circumstances.”
  • 12. An API is another mechanism by which a publisher can do its job, which is: “to make public” the contents of a book (under certain commercial arrangements)
  • 13. HOW:
  • 14. Start with your INDEX.
  • 15. What is an index’s job?
  • 16. Shakespeare’s Answer: “And in such indexes, although small pricks To their subsequent volumes, there is seen The baby figure of the giant mass Of things to come at large.” (Troilus and Cessida).
  • 17. What does a paper index look like?
  • 18.
  • 19. What does an ebook index look like?
  • 20.
  • 21. That there is a link!
  • 22. <a href="/chapter3/index-entry-78">Dracula</a> <a href="/chapter4/index-entry-101">May 1, 1893</a> <a href="/chapter1/index-entry-122">Munich</a> <a href="/chapter9/index-entry-11">Murder</a> <a href="/chapter10/index-entry-68">Succotash</a> <a href="/chapter6/index-entry-99">Smith, Dr.</a> <a href="/chapter16/index-entry-119">Sambuca</a> <a href="/chapter15/index-entry-199">Vienna</a> <a href="/chapter2/index-entry-666">Veins</a>
  • 23. Jonathan Harker’s Journal: 3 May. Bistritz. Left Munich at 8:35 P.M., on 1st May, arriving at Vienna early next morning ...the post town named by Count Dracula, is a fairly well-known place....
  • 24. Left Munich at 8:35 P.M., on 1st May, arriving at Vienna early next morning ... the post town named by Count Dracula, is a fairly well-known place....
  • 25. Left <a id="index-entry-122">Munich</a> at 8:35 P.M., on <a id="index- entry-101">1st May</a>, arriving at <a id="index-entry-199">Vienna</a> early next morning... the post town named by <a id="index-entry-99">Count Dracula</ a>, is a fairly well-known place...
  • 26. What does a smart index look like?
  • 27. Left <a id="index-entry-122" class=”place”>Munich</a> at 8:35 P.M., on <a id="index-entry-101" class=”date”>1st May</a>, arriving at <a id="index-entry-199" class=”place”>Vienna</a> early next morning...the post town named by <a id="index-entry-99" class=”person”>Count Dracula</a>, is a fairly well-known place...
  • 28. <a href="/chapter3/index-entry-78" class=”person”>Dracula</a> <a href="/chapter4/index-entry-101" class=”date”>May 1, 1893</ a> <a href="/chapter1/index-entry-122" class=”place”>Munich</a> <a href="/chapter9/index-entry-11" class=”cause-of- death”>Murder</a> <a href="/chapter10/index-entry-68" class=”food”>Succotash</a> <a href="/chapter6/index-entry-99" class=”person”>Smith, Dr.</ a> <a href="/chapter16/index-entry-119" class=”food drink”>Sambuca</a> <a href="/chapter15/index-entry-199" class=”place”>Vienna</a> <a href="/chapter2/index-entry-666" class=”body-part”>Veins</ a>
  • 30. What can we do with a book API?
  • 31. We can build different interfaces that allow readers to engage in different ways.
  • 36. The “what stuff is mentioned in this book” interface: Small Demons.
  • 37.
  • 38. The “who is reading this and what are they saying about it” interface: Readmill.
  • 39.
  • 40. The “Let’s explode this book and put it back together in a very cool way” interface: Dracula Dissected. bit.ly/draculadissected
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 51. Not if you use a good book-based content management system. (like PressBooks!).
  • 53. 1. Books are made of stuff that can be named
  • 54. 2. If you name stuff in your HTML (while indexing!), then we can (easily) build new uses/interfaces for our books, such as Dracula Dissected.
  • 55. 3. <shameless_plug> If you use something like PressBooks to make your books, making Dracula Dissected becomes easy. </shameless_plug>
  • 56. So ... What is a book?
  • 57. My definition: “A book is a discrete collection of text (and other media), that is designed by the author(s) as an internally complete representation of an idea, or set of ideas; emotion or set of emotions... ... with an API.”
  • 58. Talk to me about dissecting your Dracula! hugh@pressbooks.com @hughmcguire http://pressbooks.com