Shortcuts: WD:BC, WD:Bonnie and Clyde

Help:Handling sitelinks overlapping multiple items

From Wikidata
Jump to navigation Jump to search

Ideas about how to handle sitelinks that overlap multiple concepts, from the Wikidata perspective. This issue is often referred to as the Bonnie and Clyde problem. This issue arises periodically, most often when editors new to Wikidata identify an issue local to their subject expertise.

Description of the problem[edit]

Wikidata items are meant to represent individual concepts. Items are also used to store sitelinks that interconnect various Wikimedia site articles representing the same concept.

However, in some cases, a given Wikimedia site article describes multiple distinct but closely related concepts, such as:

People[edit]

  • a team and its members, such as two people forming a duo (e.g. Clyde Barrow and Bonnie Parker)
  • an enterprise and its founder(s)

Places[edit]

  • a town and the island it is located on (that are named the same)
  • a municipality and its capital city

Objects[edit]

  • two objects systematically used together (e.g. mortar and pestle)
  • subjects bundled into single articles because of semantic similarities in specific languages (e.g. "painters" create "paintings" using the manufacturing process of "painting")
  • an enterprise and its founder(s)

Concepts[edit]

  • Various types of insurance (auto/boat/house) or government subsidies (unemployment/tax deductions/social security) or health subjects (broken leg/cast/bone setting)
  • A general category (plates) and subcategories (disposable plates).

The difficulty is that specific Wikipedias may combine multiple items in a single article (e.g. en:Bonnie and Clyde), while other Wikipedias will have two articles to describe concepts separately (e.g. pt:Bonnie Parker and pt:Clyde Barrow).

Even if there is no disagreement between Wikipedias, there is no good way to link between part of a Wikipedia page that discusses an item (e.g., disposable plates) to a Wikidata item on it.

Use of anchor links on Wikipedia[edit]

In the pre-Wikidata world before 2012, those Wikipedias containing a specific article on "Bonnie Parker" (i.e. pt:Bonnie Parker) could locally be linked either directly to a section of the "Bonnie AND Clyde" page on another Wikipedia (i.e. "en:Bonnie_and_Clyde#Bonnie_Parker") or they could be linked indirectly by a link pointing to a redirect page (e.g. Bonnie Parker) which then in turn points to the section of the article.

These interlanguage-links pointing to a section or an anchor (instead of to the article as a whole) are called "anchor links". They are still possible today (by adding a direct wiki-to-wiki link to to the wikitext source code of a page locally), and such links do not use Wikidata at all.

Such anchor links cannot be used as sitelinks on Wikidata, because even though the subjects may have separate items on Wikidata and be linked on Wikidata with various properties, e.g. Bonnie and Clyde (Q219937) has part (P527) Bonnie Parker (Q2319886), there is a hard limit on Wikidata to only have one sitelink per Wikipedia project per item. This is by design, because in the pre-Wikidata world, bots would struggle to update and "correct" circular references between various Wikipedia projects. Keeping the unique "one sitelink per Wikipedia page" relationship solves that problem, which resulted in many unnecessary edits and confusing error messages.

Note that is perfectly fine to create a Wikidata item for an anchor-linked topic on Wikipedia, even though it is not possible to create a sitelink to that anchor-link from the item. Just make sure that the item is linked to the parent item as described below (e.g. with the "part of (P361)" relationship).

Wikidata handling until a better solution is identified[edit]

Items[edit]

A general agreement, respecting Wikidata ontology, is that Wikidata should hold one item for each individual page on Wikipedia, which may include one item representing the combined entity (such as Bonnie Parker (Q2319886), Clyde Barrow (Q3320282) and Bonnie and Clyde (Q219937)). Sitelinks of different language wikipedias should be associated to the item matching the best choice of the concept of each article.

Note that not all items need to have a Wikipedia page.

Relationship links on Wikidata[edit]

Has part

These items should be linked to each other using has part (P527) and part of (P361), such as:

Subclass of
"Depicts" vs. "Based on" vs. "Different from"
  • An artwork might be a copy of another artwork, in which case it depicts (P180) that original artwork and if it is not a 1-1 relationship such as a specific documented copy, then it is different from (P1889) all of the other items that it may or may not be an exact copy of.
  • If not a copy, an artwork can be based on (P144) another artwork, and otherwise it depicts (P180) smething specific, such as a popular sculpture, painting, engraving, a scene from a poem, book, or play.

Other relations, such as located in the administrative territorial entity (P131), might better fit different concepts.

Interwikis[edit]

Redirects[edit]

In many problematic cases where different Wikipedias handle such concepts differently, there will often already be existing redirects from the individuals to the group, or to subsections of it.

One possibility for restoring interwiki sitelinks is to link WD items representing individual concepts to WP redirect pages (such as Bonnie Parker (Q2319886) associated to en:Bonnie Parker). However, since Wikidata software (as of April 2015) automatically follows the WP redirect to the target page when an attempt is made to associate a redirect to a Wikidata item, it is not straightforward to create such an association.

Here is the procedure if you are nonetheless willing to associate a WD item to a WP redirect:

  1. Access the WP redirect page
  2. Temporarily deactivate the redirection and save
  3. Associate the WD item to the WP (disabled) redirect
  4. Revert the WP redirect page back to its original state

Given that the current Wikidata model doesn't support using redirects and Wikidata development explicitly(?) doesn't plan any support for this, it's not clear if this approach should be used. Numerous duplicate items are due to redirects.

Adding interwikis locally[edit]

If some Wikipedia language versions decide that specific pages should lead to another page at another Wikipedia, this can be done by placing "old style" interwikis on the page.

This can also be done through LUA modules, e.g. by importing one of the modules at Module:Interwiki (Q20819069) or Module:Interwiki from P460 (Q21533309) to Wikipedia.

Infoboxes[edit]

To use infoboxes in articles articles combining information from several Wikidata items, one would need to specify the Wikidata item(s) explicitly.

Sample:

To use fr:Template:Infobox Biographie2 on fr:Bonnie et Clyde (Q219937), for each of them, one would use:
{{Infobox Biographie2|wikidata=Q2319886}}
{{Infobox Biographie2|wikidata=Q3320282}}

Discuss the solutions[edit]

A WikiProject is dedicated to the compilation of all related problems and to discussion of potential solutions on the broader problem of interwikis hard to handle : WD:XLINK.

There is also a current "Request for comment" to allow the creation of links to redirects.

And, there's a goal task, though stalled, that tries to decrease the "only one link per sites in one item" limitation so that Incubator support would be possible.

See also[edit]