Re: [Fwd: [ol-tech] Modified RDF/XML api]

From: Ed Summers <ehs_at_nyob>
Date: Tue, 11 Aug 2009 11:02:46 -0400
To: CODE4LIB_at_LISTSERV.ND.EDU
On Tue, Aug 11, 2009 at 10:40 AM, Karen Coyle<lists_at_kcoyle.net> wrote:
> Ed, I have NO IDEA how you got to rdf/xml from the OL author link -- do
> tell, and I'll take a look! There is no RDF/XML export template for authors,
> but one could be created. The URI/URL is simply the address of the author
> page, and also considered the author identifier on OL.

The nice thing about this linked data stuff is all you have to do is
follow your nose:

--

ed_at_rorty:~$ curl --include --header "Accept: application/rdf+xml"
http://openlibrary.org/a/OL1518080A
HTTP/1.1 200 OK
Content-Type: application/rdf+xml; charset=utf-8
Date: Tue, 11 Aug 2009 15:01:32 GMT
Server: lighttpd/1.4.19
Transfer-Encoding: chunked
Connection: Keep-Alive
Age: 0

<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF
  xmlns:ol='http://openlibrary.org/type/author'
>

    <ol:name>Lawrence Lessig</ol:name>

    <ol:personal_name>Lawrence Lessig</ol:personal_name>

    <ol:key>/a/OL1518080A</ol:key>

    <ol:type>http://openlibrary.org/type/author.rdf</ol:type>

    <ol:id>5209974</ol:id>

</rdf:RDF>

--

//Ed
Received on Tue Aug 11 2009 - 11:03:16 EDT