SlideShare una empresa de Scribd logo
1 de 58
Descargar para leer sin conexión
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

Más contenido relacionado

Más de Hugh McGuire

Más 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
 

Último

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
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
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
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Ữ Â...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
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
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

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