book as api (hugh mcguire)

58
an API for books @hughmcguire pressbooks.com

Upload: hugh-mcguire

Post on 27-Nov-2014

11.067 views

Category:

Education


0 download

DESCRIPTION

As books move to digital, we need to think beyond "words under glass" for ebooks. Alistair and I propose something more exiting: books connected to the network and accessed by APIs, allowing new interfaces & new thinking about what we should be able to do with books. This is the 2nd half of the Tools of Change workshop I did with Alistair Croll.

TRANSCRIPT

Page 1: Book as API (Hugh McGuire)

anAPI for

books@hughmcguire

pressbooks.com

Page 2: Book as API (Hugh McGuire)

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?

Page 3: Book as API (Hugh McGuire)

What is a book?

Page 4: Book as API (Hugh McGuire)

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.”

Page 5: Book as API (Hugh McGuire)

What’s in a book?

Page 6: Book as API (Hugh McGuire)

joy! pleasure!

knowledge!characters!

fictional people!real people!

places!concepts!footnotes!references!

lots and lots of other ...

Page 7: Book as API (Hugh McGuire)

THINGS! (and: things that we can name).

Page 8: Book as API (Hugh McGuire)

What is an API?

Page 9: Book as API (Hugh McGuire)

Terry Jones’s Definition:

“Just as a User Interface gives humans access to information, an API gives programs access to information.”

Page 10: Book as API (Hugh McGuire)

What is a (book) API’s job?

Page 11: Book as API (Hugh McGuire)

“To give other services the ability to use [the stuff] in your books, under

defined circumstances.”

Page 12: Book as API (Hugh McGuire)

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)

Page 13: Book as API (Hugh McGuire)

HOW:

Page 14: Book as API (Hugh McGuire)

Start with your INDEX.

Page 15: Book as API (Hugh McGuire)

What is an index’s job?

Page 16: Book as API (Hugh McGuire)

Shakespeare’s Answer:

“And in such indexes, although small pricksTo their subsequent volumes, there is seen

The baby figure of the giant massOf things to come at large.”

(Troilus and Cessida).

Page 17: Book as API (Hugh McGuire)

What does a paper index look like?

Page 18: Book as API (Hugh McGuire)
Page 19: Book as API (Hugh McGuire)

What does an ebook index look like?

Page 20: Book as API (Hugh McGuire)
Page 21: Book as API (Hugh McGuire)

That there is a link!

Page 22: Book as API (Hugh McGuire)

<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>

Page 23: Book as API (Hugh McGuire)

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....

Page 24: Book as API (Hugh McGuire)

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....

Page 25: Book as API (Hugh McGuire)

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...

Page 26: Book as API (Hugh McGuire)

What does a smart index look like?

Page 27: Book as API (Hugh McGuire)

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...

Page 28: Book as API (Hugh McGuire)

<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>

Page 29: Book as API (Hugh McGuire)

HEY!

THAT’S AN API!

THAT WAS EASY!

Page 30: Book as API (Hugh McGuire)

What can we do with a book API?

Page 31: Book as API (Hugh McGuire)

We can build different interfaces that allow readers to engage in

different ways.

Page 32: Book as API (Hugh McGuire)

The Pulp interface.

Page 33: Book as API (Hugh McGuire)

image: Gleann Ignacio

Page 34: Book as API (Hugh McGuire)

The Bits interface.

Page 35: Book as API (Hugh McGuire)

Image: Rebekah Ford

Page 36: Book as API (Hugh McGuire)

The “what stuff is mentioned in this

book” interface:

Small Demons.

Page 37: Book as API (Hugh McGuire)
Page 38: Book as API (Hugh McGuire)

The “who is reading this and what are

they saying about it” interface:

Readmill.

Page 39: Book as API (Hugh McGuire)
Page 40: Book as API (Hugh McGuire)

The“Let’s explode this book and put it back

together in a very cool way” interface:

Dracula Dissected.

bit.ly/draculadissected

Page 41: Book as API (Hugh McGuire)
Page 42: Book as API (Hugh McGuire)
Page 43: Book as API (Hugh McGuire)
Page 44: Book as API (Hugh McGuire)
Page 45: Book as API (Hugh McGuire)
Page 46: Book as API (Hugh McGuire)
Page 47: Book as API (Hugh McGuire)
Page 48: Book as API (Hugh McGuire)
Page 49: Book as API (Hugh McGuire)
Page 50: Book as API (Hugh McGuire)

IS THIS HARD?

Page 51: Book as API (Hugh McGuire)

Not if you use a good book-based

content management system.

(like PressBooks!).

Page 52: Book as API (Hugh McGuire)

Conclusions:

Page 53: Book as API (Hugh McGuire)

1. Books are made of stuff that can be

named

Page 54: Book as API (Hugh McGuire)

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.

Page 55: Book as API (Hugh McGuire)

3. <shameless_plug>

If you use something like PressBooks to make your books,

making Dracula Dissected becomes easy.

</shameless_plug>

Page 56: Book as API (Hugh McGuire)

So ... What is a book?

Page 57: Book as API (Hugh McGuire)

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.”

Page 58: Book as API (Hugh McGuire)

Talk to me about dissecting your Dracula!

[email protected]@hughmcguire

http://pressbooks.com