参考文献查找与AJAX(使用OAI-PMH?)参考文献、AJAX、PMH、OAI

2023-09-10 21:21:42 作者:人潮拥挤你咋没死

我正在寻找一个方式做一个简单的搜索的科学论文与AJAX的引用。谷歌学术搜索没有API(和他们的使用条款的情况来看,不会有任何),鏁支持 OAI-PMH API。有没有人知道一个JavaScript / jQuery的实现,它允许我做异步查询,并获得最高的项目列表?例如。搜索克努特应产生的线沿线的东西

I'm looking for a way to do a simple search for a citation of a scientific paper with AJAX. Google Scholar has no API (and judging by their Terms of Use, will not have any), CiteSeerX supports the OAI-PMH API. Is anyone aware of a JavaScript / jQuery implementation that allows me to make asynchronous queries and get a list of top items? E.g. searching for knuth should yield something along the lines of

{
  {
    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阿比知道如何用那只成一个高效的查询?

or anyone who mastered the OAI Api and knows how to wrap that into an efficient query?

推荐答案

[更新] 我已经把一个例子的Mendeley搜索JSONP代理GitHub上......看到的https:/ /github.com/nisc/node-mendeley-search-jsonp-proxy [/更新]

[UPDATE] I've pushed an example Mendeley search JSONP proxy to GitHub ... see https://github.com/nisc/node-mendeley-search-jsonp-proxy [/UPDATE]

我没有时间检查出OAI-PMH API是什么,为什么不能用一个简单的$ .getJSON()查询,但你也可能希望有一个看的的Mendeley API (也许他们甚至实现OAI-PMH,谁知道)。

I don't have time to check out what the OAI-PMH API is and why it can't be queried using a simple $.getJSON(), but you might also want to have a look at the Mendeley API (maybe they even implement OAI-PMH, who knows).

特别是,文档搜索可能是有趣的。

Particularly, the document search might be interesting.

只需注册申请(1次点击)。然后尝试是这样的:

Simply register an application (1 click). Then try something like:

# 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)。

I'm not sure whether you should expose your consumer key to client applications, though (better check their docs). However, you can always build a very simple API proxy (UPDATE: Considering the same origin policy, you probably have to, as they don't seem to support JSONP or CORS).

我不知道自己的使用限制。 更新: 每小时每 IP 5000的搜索

I don't know about their usage limits. UPDATE: 5000 searches per IP per hour.