参考文献查找与AJAX(使用OAI

编程入门 行业动态 更新时间:2024-10-28 06:22:40
本文介绍了参考文献查找与AJAX(使用OAI-PMH?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在寻找一个方式做一个简单的搜索的科学论文与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/nisc/node-mendeley-search-jsonp-proxy [/更新]

[UPDATE] I've pushed an example Mendeley search JSONP proxy to GitHub ... see github/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 "api.mendeley/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.

更多推荐

参考文献查找与AJAX(使用OAI

本文发布于:2023-10-09 10:42:14,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1475520.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:参考文献   AJAX   OAI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!