I don't understand.  There is clearly an "authors" key in both the
editions and works hashes.

/authors/OL414281A

-Ross.

On Tuesday, December 7, 2010, Jeulin-L Michael
<[email protected]> wrote:
> Hi,
>
> Actually, it doesn't work like that in my data.
> I have :
> - "ol_dump_2010-11-30.txt" (http://openlibrary.org/data)
>
> My book is related to a work and they both have the same author key.
> But the author key doesn't correspond to any author.
>
> You can see as a research in the full bulk file the following results :
>
> "Search "OL414281A" (2 hits in 1 files)
> ol_dump_2010-11-30.txt (2 hits)
>
> Line 107198: /type/edition    /books/OL6837588M    2    
> 2009-12-14T23:32:31.751114    {"publishers": ["RADA Ediciones"], 
> "pagination": "50 p. :", "languages": [{"key": "/languages/spa"}], 
> "lc_classifications": ["MLCS 2002/05180 (P)"], "title": "Arena", "lccn": 
> ["00334746"], "series": ["Serie Creacio\u0301n ;", "4", "Serie Creacio\u0301n 
> (Trujillo, La Libertad, Peru) ;", "4."], "number_of_pages": 50, 
> "edition_name": "1. ed.", "last_modified": {"type": "/type/datetime", 
> "value": "2009-12-14T23:32:31.751114"}, "latest_revision": 2, 
> "publish_country": "pe ", "key": "/books/OL6837588M", "authors": [{"key": 
> "/authors/OL414281A"}], "publish_date": "1999", "publish_places": ["Trujillo, 
> Peru\u0301"], "works": [{"key": "/works/OL2796358W"}], "type": {"key": 
> "/type/edition"}, "by_statement": "Gladys Benko Angulo ; [ilustraciones 
> interiores, Manlio Holgui\u0301n Go\u0301mez].", "revision": 2}
>
> Line 327392: /type/work    /works/OL2796358W    2    
> 2010-02-06T16:32:17.806241    {"lc_classifications": ["MLCS 2002/05180 (P)"], 
> "key": "/works/OL2796358W", "created": {"type": "/type/datetime", "value": 
> "2009-12-10T00:26:56.990080"}, "title": "Arena", "first_publish_date": 
> "1999", "latest_revision": 2, "last_modified": {"type": "/type/datetime", 
> "value": "2010-02-06T16:32:17.806241"}, "authors": [{"type": 
> "/type/author_role", "author": {"key": "/authors/OL414281A"}}], "type": 
> {"key": "/type/work"}, "revision": 2}"
>
> As you can see there is the relation between book and work but absolutely 
> none between book and author and/or between work and author.
>
> Am I missing something ?
> Kind regards.
>
> Michaël.
>
>
>
>
> On Wed, Dec 8, 2010 at 12:22 AM, Anand Chitipothu <[email protected]> wrote:
>
>
> 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]
>
>
>
_______________________________________________
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