如何通过ISBN从国会图书馆检索XML/JSON中的图书信息 [英] How to retrieve book's information in XML/JSON from library of congress by ISBN

查看:172
本文介绍了如何通过ISBN从国会图书馆检索XML/JSON中的图书信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美国国会图书馆有一个网站可以搜索ISBN的书籍.检索图书信息的一种简单方法是使用如下网址:

The Library of Congress has a site to search books by ISBN. A simple way to retrive book's information is using a URL like:

http://lccn.loc.gov/2009019559/mods

,它返回易于解析的XML结构.该网址要求使用以下格式的唯一LCCN编号:

where it returns a XML structure that may parse easily. The URL requires a unique LCCN number in the the following format:

http://lccn.loc.gov/[lccn]/mods

我有一堆以条形码编码的ISBN的书.如何检索ISBN/将ISBN转换为LCCN,以检索该书的XML数据?

I have a batch of books that has ISBN encoded in barcode. How may I retrieve/convert ISBN to LCCN in order to retrieve the XML data of the book?

推荐答案

您可以使用国会图书馆的SRU目录.查询如下所示:

You can use the SRU catalog from the Library of Congress. The query would look something like this:

lx2.loc.gov:210/lcdb?version=1.1&operation=searchRetrieve&query=bath.isbn= [ISBN]& maximumRecords = 1& recordSchema = mods

lx2.loc.gov:210/lcdb?version=1.1&operation=searchRetrieve&query=bath.isbn=[ISBN]&maximumRecords=1&recordSchema=mods

用您要查找的ISBN替换[ISBN]

Replacing [ISBN] with the ISBN you want to look up

在该响应中是一个LCCN元素.但是,该目录已经返回了MODS,因此根本不需要执行任何操作.

Within that response is an LCCN element. However, the catalog already returns MODS, so it might not be necessary to do anything at all.

这篇关于如何通过ISBN从国会图书馆检索XML/JSON中的图书信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆