On Wed, Feb 18, 2015 at 6:53 AM, Jon Leech <[email protected]> wrote:
> I'm trying to interpret the contents of the JSON full dumps found at > https://openlibrary.org/developers/dumps . Unfortunately the page just > has a bunch of ":TODO:" under the JSON Format section, and I haven't > found any other relevant docs on the dumps yet. > > It looks like the documentation on the RESTful Books API corresponds > to some of the fields in the dumps, although it's not clear to me how > the responses to a Books query are mapped from the 'authors', > 'editions', and 'works' objects in the dumps. > > I'm particularly interested in how to determine if a 'work' has a > corresponding lendable 'edition' in OL. In the API, editions and works are each connected to the other, but the connection may be unidirectional in the dump. I don't remember off the top of my head, but it should be pretty obvious. Here's a recent email that talks about what another user worked out about the API: http://www.mail-archive.com/[email protected]/msg01365.html but you can also just tack .json on the end of any URL to see what information is available, e.g. http://openlibrary.org/works/OL4327605W.json http://openlibrary.org/books/OL5685509M.json The whole "lending" system is pretty convoluted and I'm not sure that the information that drives it is available in either the API or the dump. The subject "In library" appears to be what they use for searches of lendable books, but it's attached to the work, not the edition. I think the lendable attributes & status may actually be held on Internet Archive, not OpenLibrary. If you take the ia_loaded_id from the JSON above and go to IA: https://archive.org/details/volleyball00scat https://ia600807.us.archive.org/21/items/volleyball00scat/volleyball00scat_meta.xml You might be able to use the collection browserlending or inlibrary to determine if something is lendable. As I said, all very convoluted (and completely undocumented). Tom
_______________________________________________ Ol-tech mailing list [email protected] http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech Archives: http://www.mail-archive.com/[email protected]/ To unsubscribe from this mailing list, send email to [email protected]
