I can give you some info, but others with more experience with the API
will need to give you more.
There are two types of bibliographic entities in OL: Works and Editions.
The OLIDs that end in "W" are for works; the OLIDs that end in "M" are
for editions. (Yes, there's a reason why M=edition, but it's a long story.)
A work is a general record linking to all of the books of the same
content, e.g. all of the versions of Tom Sawyer. Individual books are
editions. Editions can be retrieved using the API:
https://openlibrary.org/api/books?bibkeys=OLID:OL24367990M
They can also be retrieved with the OLID, the ISBN or the OCLC number.
I don't know how you format a query to retrieve all of the editions
starting with a Work OLID -- can somewhere here answer that question?
Thanks,
kc
On 12/30/14 5:41 PM, Chris wrote:
Hi all,
I’m new to OL. I’m excited about it’s vast potential.
I had a quick question.
I recently downloaded a dump and extracted it to a sql database. When I
query this database I retrieve a OL id for a given book, but when I turn
around and use this ID against open library directly with an API call, I
get no results.
For example, this row extracted from the Dump
Adventures of Tom SawyerMark TwainOL15346679W
returns no results
https://openlibrary.org/api/books?bibkeys=OLID:OL15346679W
Other entries I’ve noticed that do work correctly end with ‘M’ as the
last character of the OLID instead of ‘W’
I’m hoping the OL ids have not all changed. It took a good while to
pull down the 100gig dump and build a database that I could query and
consume.
I’m hoping someone can lend some light on this problem for me.
Thanks
-Chris Flynn
_______________________________________________
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]
--
Karen Coyle
[email protected] http://kcoyle.net
m: 1-510-435-8234
skype: kcoylenet/+1-510-984-3600
_______________________________________________
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]