Zotero:我应该使用哪种导出格式?
您推荐哪种 Zotero 导出格式
- 与类似程序的可移植性
- 可以使用 Perl 脚本读取和添加新条目吗?
Which of Zotero's export format would you recommend regarding
- the portability with similar programs
- possibility of reading and adding new entries with a Perl script?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这很大程度上取决于您将使用的其他软件。任何到 Zotero 的灵活读/写连接可能应该使用服务器 API; Python 和 PHP 中已经有相当强大的客户端库可供您探索,并且用 Perl 编写一个也是合理的。
如果您只需要读取访问权限,或者除了写入访问权限之外还需要读取访问权限,可以使用 很棒的 qnotero 工具。它打开到本地 Zotero 安装的底层 sqlite 数据库的只读连接。如果您需要快速阅读访问和搜索,该库或其方法将为您提供很好的服务。
不使用服务器 API,也可以使用 Firefox 扩展 MozRepl MozRepl CPAN 模块以编程方式访问正在运行的本地 Zotero 实例。这非常强大,但这意味着您需要将 JavaScript 发送到 MozRepl。这种方法与 elisp 一起使用来实现 org-mode 的 Zotero 访问,zotero-plain。
如果您确实想要导出,最具表现力的选项是 Bibliontology RDF,但了解它的人并不多。 Zotero 的 MODS 导出也非常可靠,并且可以使用出色的 bibutils 包。
解决此类问题的主要地点是邮件列表 zotero-dev,您可以在其中您会发现几乎所有在更广泛的 Zotero 生态系统中从事编程工作的人,因此也值得在那里停留。
Much of this depends on what other software you will be working with. Any flexible read/write connection to Zotero should probably use the server API; there are already pretty strong client libraries in Python and PHP that you can explore, and it would be reasonable to write one in Perl.
If you just need read access, or read access in addition to write access, there is a Python library,
libzotero
, that's provided by the wonderful qnotero tool. It opens a read-only connection to a local Zotero installation's underlying sqlite database. If you need quick read access and searching, that library or its approach will serve you well.Without using the server API, it's also possible to use the Firefox extension MozRepl with the MozRepl CPAN module to get programmatic access to a running local Zotero instance. This is pretty powerful, but it means that you need to send JavaScript to MozRepl. This approach is used with elisp to implement Zotero access for org-mode, zotero-plain.
If you certainly want export, the most expressive option is Bibliontology RDF, but not much out there understands it. MODS export from Zotero is also pretty solid, and it can be converted into pretty much anything else, using the superb bibutils package.
And the main place for questions like this is the mailing list zotero-dev, where you'll find just about everyone who works on programming in the broader Zotero ecosystem, so it may be worth stopping by there as well.
我出于自己的目的制作了一个 perl 模块,试图提高 mozrepl 通信的可靠性。请随意重复使用您需要的任何东西。来源是此处
I made a perl module for my own purposes that tries to improve the reliability of mozrepl communications. Feel free to reuse anything you need. Source is here