Shortcut: WD:M

Help:合并

From Wikidata
Jump to navigation Jump to search
This page is a translated version of the page Help:Merge and the translation is 61% complete.

Other languages:
Cymraeg • ‎Deutsch • ‎English • ‎Esperanto • ‎Frysk • ‎Lëtzebuergesch • ‎Nederlands • ‎Ripoarisch • ‎Scots • ‎Türkçe • ‎Zazaki • ‎azərbaycanca • ‎català • ‎dansk • ‎español • ‎français • ‎italiano • ‎latviešu • ‎norsk bokmål • ‎occitan • ‎polski • ‎português • ‎português do Brasil • ‎suomi • ‎svenska • ‎čeština • ‎Ελληνικά • ‎македонски • ‎русский • ‎српски / srpski • ‎українська • ‎հայերեն • ‎ייִדיש • ‎العربية • ‎فارسی • ‎کوردی • ‎नेपाली • ‎हिन्दी • ‎বাংলা • ‎ગુજરાતી • ‎தமிழ் • ‎ქართული • ‎中文 • ‎日本語 • ‎한국어

当同一主题,概念或对象上的两个或更多项目存在于Wikidata中时,会执行合并。合并是一个多步骤过程,首先要求将有关项目的集合数据集中在一个页面中(收件人项目),最后导致将过时页面重定向到收件人项目。

通过将 sitelinks statements移动到一个项目,然后 redirecting,可以自动或手动完成合并。陈旧的物品。与合并小工具自动合并更容易处理。

本指南介绍如何通过激活preferences中的合并小工具或使用Special:MergeItems工具启用自动合并。如果失败了,那么它还解释了为了执行手动合并而要遵循的步骤。

检查确认

确认被合并的项是对应着同一个主题、概念或物件。那些项可能存在着细微的差异,而因此需要多个项的存在。

例子

en:tree → de:Baum(德语“树木”)
可以合并?YesY
原因:这些条目描述的是同一对象(“树木”),所以应该合并至一个(多语言)项(tree (Q10884))中
en:tree → de:Eichen(德语“行道树”)
可以合并?YesY
原因:这些条目描述的对象近似,但是存在些微的差异,所以应继续保持为两个不同的项:tree (Q10884)Quercus (Q12004)

If you are unsure (for example, due to difficulty translating different languages), or come across items with sitelinks that appear to be inconsistent, it is best to bring up the problem at interwiki conflicts.

自动化合并

使用合并小工具

有两种方法实现自动化合并:Merge小工具或“合并两项”特殊页面。

Please bear in mind, that while automated merges will be terminated if an interwiki conflict is found, you should still always check that the items are the same since the tools simply perform merging that you select to be done. Special:MergeItems can resolve conflicts that are merely due to redirects.

合并小工具

Merge.js是由Ebraminio开发的帮助移动站点链接、标签、声明、别称、以及报表引用的小工具

使用后,它将以自动生成的原因自动提请删除或者直接删除项(仅限管理员)。

Special:MergeItems

Special:MergeItems can be used to trigger a merge of two items where all labels, descriptions, aliases, sitelinks and statements are moved. Enter the Q#### (not item label) in the fields specifying which is the recipient item ("The id to merge to") and which is the obsolete item ("The id to merge from").

QuickStatements

The QuickStatements 2 (Q29032512) tool, and its predecessor, QuickStatements (Q20084080) allow users to merge a series of items.

标记为重复

If two items can't be merged because of two different articles at a Wikipedia, these can be marked for merging with markasduplicate.js.

The script also adds instance of (P31) = Wikimedia duplicated page (Q17362920) to the redundant item.

手动合并:逐步解释

自动化合并通常会优先于这一过程。

选择保留项

一旦很明显有两个或多个相关项应被合并,那么其中一个将被选中放置链接与属性信息。被选中的项通常被更多的使用(可能是拥有更多链接和报表)。如果您无法确定,就最好选择最下面的Q####,因为那会是较早创建的(这意味着它早于其他的创建)。

移动链接

Sitelinks can be moved manually from one item to another by first removing the link(s) from the obsolete item(s) (i.e. the item(s) you are merging from), and then adding it to the recipient item. If you try to add the sitelink to the recipient item before removing it from the obsolete item(s), there will be a conflict. There is a gadget in your preferences called Move that gives users the ability to move sitelinks quickly. Once the gadget is enabled, go to the obsolete item, click the icon next to the sitelink you wish to move, then input the Q#### of the recipient item.

移动标签与描述

Correct labels, descriptions and aliases that are present in the obsolete item, but not present in the recipient item, should simply be added to the recipient item. If a different label is already present, you can add the label of the obsolete item as an alias. To check which labels, descriptions and aliases are present in various languages, it is advisable to turn on the labelLister gadget in your preferences. To activate the labelLister gadget for a given item, click on the "Label List" tab at the top right of the item page. Upon clicking on it, you will see a pop-up with a list of all labels, descriptions, and aliases available by language code.

The autoEdit gadget (also under preferences) can in some cases be used to generate new labels and descriptions for the recipient item, which may be easier than moving them from the obsolete item. Once activated, the gadget will appear in the left sidebar menu under "Tools" with the label "Automatic addition."

Locating the labelLister gadget on an item page
Locating the autoEdit gadget on an item page
Locating the Merge gadget on an item page


移动属性

Correct statements that are present in the obsolete item, but not present in the recipient item, should simply be added to the recipient item. Be sure not to add statements that are already present but keep in mind that it's possible to add multiple values to one property in Wikidata.

创建重定向

一旦所有附加链接,属性,标签和说明已被移动并复制到收件人项目中,过时的项目就可以被重定向。 合并小工具提供了最简单的方法。重定向也可以使用Special:RedirectEntity创建。

Furthermore, User:PLbot will create redirects for all merged items which are not redirected yet (Task 10).

如果您对合并条目有疑问,您随时可以到互助客栈页面提出。

Items to be merged with sitelink conflicts

If there is a sitelink conflict, items can't be merged as only one link per site is possible.

Until the two pages at the site (e.g. articles at English language Wikipedia) are merged, two items have to be kept at Wikidata.

  1. One of the two items should be marked with instance of (P31)  Wikimedia duplicated page (Q17362920) and qualifier of (P642)  the other (main) item. Usually the more recent item should be marked. Wikidata:Database reports/Identified duplicates lists all such items.
  2. Statements, other sitelinks and labels/descriptions can be moved from the redundant item to the main item.
  3. Once the articles at the site are merged, the two items can be merged and instance of (P31)  Wikimedia duplicated page (Q17362920) deleted.

If the sitelink conflict is due to an article and a redirect pointing to the same article, the redirect can be removed and the items merged. Special:MergeItems even allows to merge them directly.

我在哪里可以找到合并的项?

现在你已知道如何合并,你能在维基数据上有可能的重复被创立/列出的各个地方使用你的新技能。这些地方包括:

维基数据游戏
制作成小游戏界面的维基媒体工具,非常方便用户判断两项是否应该合并
User:Ivan A. Krestinin/To merge
基于相似的页面标题字符串的合并候选列表
Projectmerge
基于重复网站链接名的合并候选列表
CommonsmergeUniquemerge
基于两项相同的属性值的合并候选列表
Bene's Lonely Items tool
finds items containing only one sitelink to a Wikimedia site (which therefore may need to be merged with other items linked to different Wikimedia language versions of the same page)
不在其他语言
依指定分类列出链入维基百科A语言版条目但未链入维基百科B语言版的项
Constraint violations
summary of constraint violations for properties; in particular, "Unique value" violations may indicate a duplication
Wikidata:True duplicates
list of items having at least one sitelink which is due to a bug used in another item
Wikidata:Database reports/identical birth and death dates:基于date of birth (P569)date of death (P570)
Wikidata:Database reports/Identified duplicates
items with Wikimedia duplicated page (Q17362920) waiting for Wikipedia to merge

Other pages and projects in the Category:Merge candidates

请随意添加更多有用页面,或删除不再活跃的页面!

取消合并

取消错误合并只需几步:

  1. Go to the history page of the item onto the merge has been done and restore the revision just before the merge.
  2. Go to the history page of the merged item and restore the revision just before the merge.

The order is important (especially if the item has sitelinks) because articles can be linked to at most one item. So they should first be deleted on the item which got all the linked before they could be restored on the other one.

Some bots (KrBot for example) are known to replace the redirected items in statements with their target redirects a certain period of time (24 hours for KrBot) after the merge. The next step is to ping bot owners (like Ivan A. Krestinin) so they can run the code to cancel the if that period of time passed and some bot did the substitution, so that the statements can be restored with the right item.

On a closely related topic, the help page Help:Split an item will help you if the item has not been merged but if statements on two topic are mixed-up on a unique item for some reason. It has guidelines on how to divide the statements on two items without re-entering the information by hand.

参见

相关的帮助页面参见:

额外的信息和指引参见: