On 07-Dec-2010, at 11:21 PM, Jeulin-L Michael wrote:

> Hi everyone,
> 
> I am sorry to distub but I cannot use the bulk library I downloaded from OL.
> Actually I cannot figure out how to link an author to a book or work because 
> the author key from a book doesn't correspond to the author key. 
> It might correspond to the physical adress of the database I guess.
> 
> Does someone know how I could get from the json file(s) the author of a book ?

You need to follow 2 redirections to reach the author. book to work and work to 
the author. 

Yes, it requires lot of processing to get that info. Will it be more useful if 
there is a dump with the work and the author data duplicated in each edition 
record? 

Like this:

{
        "key": "/books/OL1M",
        "title": "...",
        "works": [{
            "key": "/works/OL1234W",
            "authors": [{
                "author": {
                    "key": "/authors/OL1A",
                    "name": "...",
                    ...
                }
            }],
            ...
        }],
        ...
}

Or a dump in the format of OL Books API?

http://openlibrary.org/dev/docs/api/books

Anand
_______________________________________________
Ol-tech mailing list
[email protected]
http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech
To unsubscribe from this mailing list, send email to 
[email protected]

Reply via email to