我正在寻找一种方法,可以用AJAX对一篇科学论文的引用进行简单的搜索。OAI-PMH学者没有任何应用程序接口(根据他们的使用条款,将不会有任何应用程序接口),CiteSeerX支持Google Scholar应用程序接口。有没有人知道一个JavaScript / jQuery实现,它允许我进行异步查询并获得热门项目的列表?例如,搜索knuth应该会得到类似以下内容的结果
{
{
author: 'Knuth, DE',
title: 'The art of computer programming. Vol. 3: sorting and searching',
year: '1973',
publisher: 'Addison Wesley'
},
{
author: 'Graham, RL and Knuth, DE and Patashnik, O',
title: 'Concrete mathematics: a foundation for computer science',
year='1994',
publisher='Addison-Wesley Reading, MA'
},
// ...
}或者任何精通OAI Api并知道如何将其封装到高效查询中的人?
发布于 2011-11-29 18:34:14
更新我已经向GitHub推送了一个示例Mendeley search JSONP代理...请参见https://github.com/nisc/node-mendeley-search-jsonp-proxy /UPDATE
我没有时间来了解什么是OAI-PMH API,以及为什么不能使用简单的$.getJSON()来查询它,但是您可能还想看看Mendeley API (也许他们甚至实现了OAI-PMH,谁知道呢)。
特别是,document search可能会很有趣。
只需register an application (单击1次)即可。然后尝试如下所示:
# I think curl does the percent-encoding automatically. You might
# want to replace "authors:knuth" with "authors%3Aknuth", though.
curl "http://api.mendeley.com/oapi/documents/search/authors:knuth/?consumer_key=$YOUR_KEY"不过,我不确定您是否应该将您的消费者密钥暴露给客户端应用程序(最好查看他们的文档)。但是,您总是可以构建一个非常简单的API代理( JSONP更新:考虑到同源策略,您可能不得不这样做,因为它们似乎不支持或CORS)。
我不知道他们的使用限制。更新: 5000 searches per IP per hour。
发布于 2012-12-05 17:42:13
在OAI-PMH中,有a minimal implementation,它不包含任何其他类型的查询,而不包含所需的时间段。
因此,它取决于您想要使用的OAI-PMH存储库,也许它实现的不仅仅是这个最小的实现。
https://stackoverflow.com/questions/8297528
复制相似问题