Shortcuts: WD:M, WD:MERGE
Help:合并
此页简而言之: 当合并项时,请绝对要確定主题是相同的。不要手动移动声称,否则重定向不会被创建。如果您不确定,请發问。 |
当同一主题,概念或对象上的两个或更多项目存在于Wikidata中时,会执行合并。合并是一个多步骤过程,首先要求将有关项目的集合数据集中在一个页面中(接收项目),最后将廢棄页面重定向到接收项目。
通过将網站連結和陳述移动到一个项目,然后重定向廢棄的項目。使用合并小工具來自动合并會更容易处理。
本指南介绍如何通过激活偏好設定中的合并小工具以及其他一些方式。
如果您对合并条目有疑问,您随时可以到互助客栈页面提出。
警告: Wikidata项目ID被设计为固定的标识符。因此,合并后的项目应该被重定向。切勿将合并的项目再用于其他用途。 |
检查确认
确认被合并的项是对应着同一个主题、概念或物件。那些项可能存在着细微的差异,而因此需要多个项的存在。
例子
- en:tree → de:Baum(德语“树木”)
- 可以合并?
- 原因:这些条目描述的是同一对象(“树木”),所以应该合并至一个(多语言)项(tree (Q10884))中
- en:tree → de:Eichen(德语“行道树”)
- 可以合并?
- 原因:这些条目描述的对象近似,但是存在些微的差异,所以应继续保持为两个不同的项:tree (Q10884)和Quercus (Q12004)。
- Miller (姓) → Miller (消歧义页)
- 可以合并?
- 原因:尽管有些消歧义页包括姓,此二者仍为不同概念,因此应继续保持为两个不同的项:Miller (Q1605060)和Miller (Q304896)。
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是由Ebrahim开发的帮助移动站点链接、标签、声明、别称、以及报表引用的小工具。
使用后,它将以自动生成的原因自动提请删除或者直接删除项(仅限管理员)。要启用此功能,请打开首选项、选择小工具,选中“合并”框,然后点击“保存”按钮。要使用它,请打开收件人或过时的项目,转到顶部栏中的下拉菜单 (在默认皮肤中,它位于“搜索”的左侧),选择“合并...”,然后在合并向导中输入其他项目的ID。完成后单击“合并”。
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").
若你在使用特殊页面时需要帮助,请使用Wikidata:Project chat。
Special:MergeLexemes
Special:MergeLexemes can be used to trigger a merge of two lexemes if (only if) the lemma, the language and the lexical category are identical. If one of them isn't identical, it may be that this can be corrected first.
Enter the L#### in the fields specifying which is the recipient lexeme ("The ID to merge to") and which is the obsolete lexeme ("The id to merge from").
QuickStatements
The QuickStatements 2 (Q29032512) tool, and its predecessor, QuickStatements (Q20084080) allow users to merge a series of items. See the instructions.
标记为重复
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."
移动属性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.
- 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.
- Statements, other sitelinks and labels/descriptions can be moved from the redundant item to the main item.
- Once the articles at the site are merged, the two items can be merged and instance of (P31)Wikimedia duplicated page (Q17362920) deleted.
Note the tool Mark as duplicate above.
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.
Dealing with items where both have a Wikipedia link to the same Wikipedia
A Wikidata item can only have one Wikipedia link so it's not possible to re-add both links after merging. If one link is to a redirect and the other is to a proper Wikipedia article, then remove the link to the redirect and merge. If, however, both links are to proper Wikipedia articles, you should not leave any of those Wikipedia articles without a linked Wikidata item. Sometimes that means moving the Wikipedia link to a more appropriate item. Other times it means asking in Wikipedia for the articles to be merged when they are duplicates. If Wikipedia doesn't merge their articles, we don't merge the items here on Wikidata.
我在哪里可以找到合并的项?
现在你已知道如何合并,你能在维基数据上有可能的重复被创立/列出的各个地方使用你的新技能。这些地方包括:
- 维基数据游戏
- 制作成小游戏界面的维基媒体工具,非常方便用户判断两项是否应该合并
- User:Ivan A. Krestinin/To merge
- 基于相似的页面标题字符串的合并候选列表
- Projectmerge
- 基于重复网站链接名的合并候选列表
- Commonsmerge和Uniquemerge
- 基于两项相同的属性值的合并候选列表
- 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语言版的项
- summary of constraint violations for properties; in particular, "Unique value" violations may indicate a duplication
- 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
Wikidata:VIAF/cluster/linking to multiple Wikidata items
- items which, according to VIAF (see VIAF ID (P214)), are related to the same person - VIAF may sometimes be wrong
Other pages and projects in the Category:Merge candidates
请随意添加更多有用页面,或删除不再活跃的页面!
取消合并
取消错误合并只需几步:
- Go to the history page of the item onto which the merge has been done and restore the revision just before the merge.
- 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 merge if that period of time passed and some bot did the substitution, so that the statements can be restored with the right item. KrBot creates edit groups when fixing redirects, which may be reverted en masse using the EditGroups tool.
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 topics 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.
参见
- Help talk:Merge, to propose or request a merge
相关的帮助页面参见:
- Help:Deduplication
- Help:Conflation of two people
- Help:Sitelinks,解释了什么是网站链接以及它们遵循哪些规则
- Wikidata:Interwiki conflicts,用于报告跨wiki冲突
- Wikidata:Requests for deletions,提请删除项
- Wikidata:Tools,工作于维基数据的工具
额外的信息和指引参见:
- 互助客栈,讨论维基数据的各个方面
- Wikidata:Glossary,在此使用的术语表和其他帮助页面
- Help:FAQ,维基数据社群的常见问题与解答
- Help:Contents,帮助门户,包括所有用于维基数据的文档