Page:Aaron Swartz s A Programmable Web An Unfinished Work.pdf/49

From Wikisource
Jump to navigation Jump to search
This page has been proofread, but needs to be validated.

5. BUILDING A PLATFORM: PROVIDING APIS 37

    >    <http://books.example.org/b/3j7is#it>

http://www.w3.org/1999/02/22-rdf-syntax-ns#label

‘‘The ABC book’’ .

(Those ‘#’ signs are there to distinguish the fact that we’re talking about the concept described by a web page, rather than the web page itself.)

Of course, typing all those URLs out each time gets old fast, so we tend to abbreviate them:

    >    @prefix rdfs: <http://www.w3.org/1999/02
    >                         /22-rdf-syntax-ns#> .
    >    <http://books.example.org/b/3j7is#it> rdfs:label    
    >    ‘‘The ABC book’’.

Here’s a rough rendering of the above JSON in RDF:

    > @prefix : <http://books.example.org/api/schema#> .
    
    >

    >    <http://books.example.org/b/3j7is#it>
    >     :title ’The ABC book’;
    >     :by_statement ’designed and cut on wood,
    >     by C. B. Falls.’;
    >     :pagination: ’˜cite{bib30} p. incl. col. illus.’;
    >     :description “An all-time favorite and a classic in its field, this big and beautiful ABC book by distinguished artist C. B. Falls has been making new friends with delighted children for over forty years.

Mr. Falls designed the book for his little three-year-old daughter who likes a big book with lots of pictures. The drawings are cut on wood blocks and printed from fourcolor plates, and the artist has personally superintended the reproduction of them. The imagination of a child or grown-up is left free