将Web时间旅行引入MediaWiki:对Memento MediaWiki扩展的评估
Bringing Web Time Travel to MediaWiki: An Assessment of the Memento MediaWiki Extension
摘要:
我们已经实现了Memento MediaWiki扩展2.0版,它将Memento协议引入MediaWiki,并由维基百科和维基媒体基金会使用。测试结果表明,扩展对性能的影响可以忽略不计。Memento定义的两个302状态码日期时间协商模式已经被用于扩展:模式1.1,需要2个请求,模式2.1,需要3个请求。我们的测试结果和数学回顾发现,与直觉相反,由于MediaWiki中的特性,模式2.1比模式1.1表现得更好。除了实现Memento之外,2.0版允许管理员选择可选的200风格的日期时间协商模式1.2,而不是模式2.1。它还允许管理员让Memento MediaWiki Extension返回完整的HTTP 400和500状态代码,而不是使用标准的MediaWiki错误页面。最后,2.0版允许管理员根据需要关闭推荐的Memento头文件。鉴于我们的大部分工作都集中在响应用户的日期时间输入来生成wiki页面的正确版本,我们还将研究如何找到嵌入式资源(包括图像、样式表和JavaScript)的正确版本;确定问题并讨论是否必须更改MediaWiki以支持此功能。
英文摘要:
We have implemented the Memento MediaWiki Extension Version 2.0, which brings the Memento Protocol to MediaWiki, used by Wikipedia and the Wikimedia Foundation. Test results show that the extension has a negligible impact on performance. Two 302 status code datetime negotiation patterns, as defined by Memento, have been examined for the extension: Pattern 1.1, which requires 2 requests, versus Pattern 2.1, which requires 3 requests. Our test results and mathematical review find that, contrary to intuition, Pattern 2.1 performs better than Pattern 1.1 due to idiosyncrasies in MediaWiki. In addition to implementing Memento, Version 2.0 allows administrators to choose the optional 200-style datetime negotiation Pattern 1.2 instead of Pattern 2.1. It also permits administrators the ability to have the Memento MediaWiki Extension return full HTTP 400 and 500 status codes rather than using standard MediaWiki error pages. Finally, version 2.0 permits administrators to turn off recommended Memento headers if desired. Seeing as much of our work focuses on producing the correct revision of a wiki page in response to a user's datetime input, we also examine the problem of finding the correct revisions of the embedded resources, including images, stylesheets, and JavaScript; identifying the issues and discussing whether or not MediaWiki must be changed to support this functionality.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。