Wikidata:Wikimedia Commons/Development
This is a draft about how Wikidata could support Wikimedia Commons in managing both connections with other projects, as well as the basic metadata of the stored medias.
Please use the discussion page to propose changes to this proposal.
Phase 1 (sitelinks) successfully launched on September 23 2013.
Phase 1 (Interlinks)[edit]
Linking from Wikidata[edit]
Direct interwiki links via Wikidata for Commons were enabled on September 23, 2013.[1] Wikidata:Notability has been amended to include items linking to Commons pages such as categories and galleries. The new functionality is only one-directional, reflecting previous interwiki linking practice. A Commons page displays interwiki links to Wikipedia pages but Wikipedia pages don't display the interproject link to the joined Commons page directly. Reverse linking is possible through some properties (Commons category (P373), topic's main category (P910), category's main topic (P301), Commons gallery (P935)) but they are not really functional as interwiki links.
There are no namespace restrictions on linking items with galleries and categories.[2] However Wikidata currently supports linking each item directly to a single Commons page only. So unless and until this changes, a Wikidata item cannot be directly linked to both the relevant Commons category and Commons gallery. The Commons category also cannot be linked to both the article Wikidata item and the category Wikidata item. Interwiki links on the unlinked page then cannot be served by Wikidata. These problems will be present until Wikidata adapts its structure to item logic or Commons changes its linking practices.
Linking from Commons[edit]
Commons categories correspond to both Wikipedia articles and Wikipedia categories. A Commons category page can thus link to either Wikipedia categories (if they exist) or to Wikipedia articles. Links to Wikipedia articles are more common, but sometimes links to Wikipedia categories are preferred.
While every real item should have only one unique Wikipedia article (within one project), unique Wikipedia category (within one project) and unique Commons category, Commons galleries are generally not intended to be unique. A single item can be illustrated by more than a single gallery, perhaps focusing on different aspects of the topic, or just split for ease of navigation (e.g. London Underground stations A-L & M-Z). In some ways, galleries are more like files than articles. Different gallery pages can have interwiki links to the same Wikipedia articles (as can the parent category of the gallery - e.g. commons:Category:Albert Einstein and commons:Albert Einstein). By the way, there are many more categories than mainspace gallery pages, and there have been many more interwiki links from Commons categories to Wikipedia articles than from gallery pages.
Before Commons pages could be linked directly to Wikidata items, the template On Wikidata was created and experimentally used. The template can be enhanced with new functionalities if needed.
Linking from Wikipedias[edit]
Links from Wikipedia articles and Wikipedia categories to Commons (and other sister projects) are not generally implemented through standard interwiki links yet, but through templates such as {{Commons}}, {{Commons category}} and {{Sister project links}} or through various infobox fields.
Bugzilla, proposals, discussions[edit]
- bugzilla:708 Interproject links
- bugzilla:35960 add config variable to hide incubator test wikipedia langlinks on wikipedia projects by default
Wikidata:Project chat/Archive/2012/10#Two questions: Deleting a dataset, and "other projects" – It doesn't seem to be possible to link to Commons. Will this be added? ("likely in the future")partly resolved by Property:P373Wikidata:Property proposal/Place#Commonscat linkresolved by Property:P373Wikidata:Property_proposal/Generic#Commons_categoryresolved by Property:P373- Commonscat statistics (Multichill)
- Commons:Commons:Village pump/Archive/2013/03#Inter-Wikipedia links
- Wikidata:Project chat/Archive/2012/12#Interwiki and Commons
- Wikidata:Project chat/Archive/2013/01#Add "Commons:" to the list of "languages"
- Commons:Village pump/Archive/2013/04#On Wikidata, Commons:Village pump#On Wikidata (2013 August 08)
- bugzilla:45975 – provide copy-and-paste-friendly wikitext export of interwikis
- meta:Talk:Wikidata/Notes/Inclusion syntax v0.4#Implement Copypaste.py as a parser function
- Wikidata:Property proposal/Sister projects#Commons gallery, property linking to the gallery page (see also )Property talk:P373#Galleries on Commons
- Wikidata:Property proposal/Generic#category (en), Wikidata:Requests for comment/Merge article interwikis and category interwikis – relation between items and their categories
- Commons:Commons:Village pump#Need simple way to add Commons category interwiki links (13 July 2013)
- Commons:Commons:Village pump/Archive/2013/03#Wikidata and interwiki links
- Why not link to the relevant wikidata page? People can follow the interwiki links from there. We can make a template for that, and/or do something (script?) to allow the wikidata link to be placed into the Toolbox. (Rd232)
- Commons:Commons:Village pump/Archive/2013/04#Wikidata
- Commons:Commons:Village pump/Archive/2013/06#Commons interwiki links generator tool
- Wikidata:Project chat/Archive/2013/07#Need simple way to add Commons category interwiki links (13 July 2013)
- en:Wikipedia:Village pump (technical)/Archive 114#Need simple way to add Commons category interwiki links (13 July 2013)
- Commons:Commons:Village pump/Archive/2013/03#Wikidata and interwiki links
- A sample provisional solution: "I just add a single interwiki link to a single wikipedia and wait for wikidata support for Commons" (Maybe, some bots import the rest interwikis?)
- Copypaste.py tool (here and here) generate an interwiki list from the Q number. The tool is not integrated into Commons.
- commons:Commons:Village pump/Archive/2013/09#Interwiki links via Wikidata coming soon
- commons:Commons:Village pump#Wikidata is here!
- Wikidata:Requests for comment/Commons links
- Wikidata:Project_chat/Archive/2015/02#Links to Commons
- Wikidata:Project_chat/Archive/2015/04#Linking to commons
- Wikidata:Project_chat/Archive/2015/05#How to merge two items?
- Wikidata:Project chat#Commons category under Statement or Other sites ? (24 June 2015) (Wikidata:Project chat/Archive/2015/06#Commons category under Statement or Other sites ?)
- Wikidata:Project chat#Commons linking (27 June 2015) (Wikidata:Project chat/Archive/2015/06#Commons linking)
- Phabricator:T104162 Transform Wikidata:Property:P373 to functional interproject link
- Phabricator:T103698 Enable to create Wikidata item through Extension:Interlanguage even without interlanguage link / enable easy creating of missing Wikidata item to join inteproject link (using project code instead of language code, e.g. enable "c:" instead of "en:")
- Phabricator:T60852 Autocompletion in properties linking Commons pages
- Phabricator:T103684 Order of interproject links in the left menu
Com:category-w:category, com:gallery-w:article[edit]
One possibility would be to limit the linking to one between Wikipedia categories and Commons categories. In other words:
OK Wikipedia article = Commons gallery
OK Wikipedia category = Commons category
On hold Wikipedia article = Commons category
Connection can be treated by auxiliary properties as topic's main category (P910) (from the main space item to the category item) and Commons category (P373) (from the main space item directly to the Commons category).
However, this proposal is based on the misapprehension that Commons galleries are equivalents of Wikipedia articles and doesn't help maintain interwiki links from Commons categories to Wikipedia articles.
Com:category-w:article[edit]
Another proposal has been to primarily link Wikipedia articles with Commons categories on Wikidata, with ancillary items created for Wikipedia categories and Commons galleries. For example (with the pages in each column being directly linked in Wikidata):
Sample item | Wikipedia categories (linked through WD interwikis) |
Articles/Commons categories (linked through WD interwikis) |
Commons galleries (linked through WD interwikis) |
---|---|---|---|
Commons | -/- | commons:Category:Pablo Picasso | commons:Pablo Picasso |
Wikidata (WD) | Q9062435 | Q5593 | Q14916142 |
Wikipedias (e.g. en) | en:Category:Pablo Picasso | en:Pablo Picasso | -/- |
Properties would be used to record linkages across the columns.
Item structure of Wikidata[edit]
Another proposal has been to organize Wikidata primarily by item (not by the type of the linked pages), i.e. one Wikidata item should collect links to both articles and categories relating to that item. Relevant galleries and list articles might also be linked.
This solution would be the most systematic. Regrettably, it was not considered in time (before Phase I) and today would require Wikidata essentially be rebuilt.
Multiple Commons links per item[edit]
A less radical change to Wikidata would be to just allow multiple links to Commons pages from each item. This would enable galleries and articles having the same interwiki links to have these maintained in Wikidata. However, this change doesn't resolve the urge to link to both articles and categories from Commons category pages.
Implementation[edit]
- Commons category (P373) was created (2013-03-31 by Multichill). However, the Commons link is not displayed in Wikipedia articles and the Wikidata item link and interwikis are not displayed at the Commons category page yet.
- Dexbot (operated by Ladsgroup) is importing Commonscat links from en:wikipedia to Wikidata as Commons category (P373). Some connections were imported (without stated source) also by BotMultichill (operated by Multichill).
- MerlIwBot is importing interwikis from Wikidata to Commons.
- some language versions of the Template:Commons category (Q48029) template at Wikipedias display the Wikidata property P373 as the default Commons category (example at the English Wikipedia, since 25 April 2013), and/or compare their attribute with Wikidata and categorize the page according to the accordance/discrepancy/absence of the Wikidata property P373.
- c:Template:On Wikidata (created 2013-04-29 by Jean-Frédéric) allows link from Commons page to Wikidata item
- Direct interwiki links via Wikidata for Commons (just one Commons page with one Wikidata item page can be connected) were enabled on September 23, 2013.[3]
Infoboxes and information sharing[edit]
- Information from Creator namespace could be transferred from Commons to Wikidata
- Information from Category:Book templates could be transferred from Commons to Wikidata
- Category:Institution templates could be transferred from Commons to Wikidata
- In the other direction, all three of these will require Access to data from arbitrary items (bugzilla:47930) before details can be drawn from the relevant Q-numbers on Wikidata.
- Campaign pages?
- Category:License templates may draw information from Wikidata
- The "information" templates on the file description pages (information about the file and about the item/manifestation) can be replaced by structured data records maintained as subpages or "attachments" to the page.
- Wiksource draws information from the file description on Commons, such information should be transformed to meta information about the work/manifestation
- One canonical photo for every item can be suggested at Wikidata. (Wikidata supports the
commonsMedia
datatype, meaning properties can link to Wikimedia Commons media − see P18 “image”, P51 “audio” and P10 “video”) - Wikidata item description can be used as the default intro of Commons category
Media meta data[edit]
Meta data about media files on commons could be maintained as structured data using the same technology that powers wikidata.org. See commons:Commons:Wikidata for media info for a proposal.
- bugzilla:17503 – Provide metadata support on Wikimedia Commons
Internationalization[edit]
Multilingual Wikidata item labels and item descriptions can help to internalisation of Commons category names, category descriptions and image descriptions and multilingual searching.
- bugzilla:29928 – Show translated titles per user language in categories too
- CommoUser:Kozuch/Wikidata, talk (internationalization)
Categorization structure[edit]
Prospectively, the categorization structure (relation between categories) can be supported by Wikidata and shared with other projects (primarily with Wikipedias). It can reflect not only simple hierarchy (subcategory/parent category) but also a kind of the relation (hyponymy, meronymy, location, timing, other attribute, agentive and influence relation, modification or derivation, other affiliation etc.) and allow to reference the relations transparently. Maybe, to replace category system with something based on item properties and file properties will be urged.
Currently planned Wikidata phases handle only with basic items. Issue of cross-item categories and meta categories and their interwikis is not solved yet. Some shift from strict modular principle of categorization to some kind of keyword or tag categorization is discussed sometimes (there is a complication on Commons that one file on Commons can have more relevant subjects).
Statistics[edit]
11 August 2014
- Commons: 112,000 galleries, 3,386,000 categories (excluding redirects)
- En wiki: 4,629,000 articles, 1,137,000 categories
- Wikidata: 937,000 items with property:P373
- Commons:User:Multichill/Commonscat stats
(274,521) |
---|
|