Projekt:CommonsDB registry/Mallmappning
On this page we will start mapping public domain templates on Wikimedia Commons so that the rationale for the image being in the public domain can be stored in the Metadata storage. This is how the API defines it:
| Object | Format | Required? | Metadata Storage | CommonsDB Registry | Description | Example or accepted enum values |
|---|---|---|---|---|---|---|
| pdRationale | string | No | Yes | No | Rationale for determination that a work is in the Public Domain. Only used if Rights Statement = Public Domain Mark. | "This work is in the public domain in its country of origin and other countries and areas where the copyright term is the author's life plus 70 years or fewer." |
The above also illustrates a good string for Template:PD-old-70. However, if we could store something machine-readable, it would also make it easier for us to look up a rationale to use as suggestion for selecting the proper license template when uploading an image. Therefore, we will store a Wikidata ID and map that both to a template, a human-readable rationale text (and possibly also a shorter version of that for display, similar to CC BY 4.0 for Creative Commons Attribution 4.0).
Mapping
Please help add templates to this list and make a suggestion for the rationale text for each of the templates you add to the list.
| Wikimedia CommonsTemplate | Wikidata ID | Short display text | Long display text | Comment |
|---|---|---|---|---|
| PD-old-100 | Q60332278 | PMA 100 | This work is in the public domain in its country of origin and other countries and areas where the copyright term is the author's life plus 100 years or fewer. | |
| PD-Art-100 | 〃 | 〃 | 〃 | |
| PD-art-old-100-expired | 〃 | 〃 | 〃 | |
| PD-old-100-1923 | 〃 | 〃 | 〃 | |
| PD-old-95 | Q114785307 | PMA 95 | This work is in the public domain in its country of origin and other countries and areas where the copyright term is the author's life plus 95 years or fewer. | |
| PD-old-90 | Q114785302 | PMA 90 | This work is in the public domain in its country of origin and other countries and areas where the copyright term is the author's life plus 90 years or fewer. | |
| PD-old-80 | Q61830521 | PMA 80 | This work is in the public domain in its country of origin and other countries and areas where the copyright term is the author's life plus 80 years or fewer. | |
| PD-old-75 | Q117408984 | PMA 75 | This work is in the public domain in its country of origin and other countries and areas where the copyright term is the author's life plus 75 years or fewer. | |
| PD-old-70 | Q59542795 | PMA 70 | This work is in the public domain in its country of origin and other countries and areas where the copyright term is the author's life plus 70 years or fewer. | |
| PD-old-70-expired | 〃 | 〃 | 〃 | |
| PD-old-70-1923 | 〃 | 〃 | 〃 | |
| PD-old-50 | Q59621182 | PMA 50 | This work is in the public domain in its country of origin and other countries and areas where the copyright term is the author's life plus 50 years or fewer. | |
| PDUSgov | Q60671452 | PD US Gov | This work is in the public domain in the United States because it is a work prepared by an officer or employee of the United States Government as part of that person’s official duties under the terms of Title 17, Chapter 1, Section 105 of the US Code. | |
| PD-USGov-* | 〃 | 〃 | 〃 | |
| PD-USCG | 〃 | 〃 | 〃 | |
| PD-anon-70-EU | Anon 70 EU | This work is in the public domain in the European Union and those countries with a copyright term of 70 years after the work was made available to the public and the author never disclosed their identity. | ||
| PD-Ugglan | 〃 | 〃 | 〃 | |
| Cc-zero | Q88088423 | PD OWN | This work has been dedicated to the public domain by the copyright holder. | |
| PD-user | 〃 | 〃 | 〃 | |
| PD-self | 〃 | 〃 | 〃 | |
| PD-author | 〃 | 〃 | 〃 | |
| PD-Sweden-photo | I don't think we can map this to one rationale as the template itself states it could be for either of two reasons and we have no way to know which is the case for each image. (Added to the template as it is common on many of the WMSE partnership uploads.) | |||
| PD-old-auto | Cannot easily be used since there is logic in the template calculating which pdRationale to use based on supplied parameters to the template. | |||
| PD-Art | 〃 | |||
| PD-old-auto-expired | 〃 | |||
| PD-Art-two-auto | 〃 | |||
| Licensed-PD-Art | 〃 |
Query with country copyright expirations and possible Commons template.
A bit more complex is the c:Template:Self. If we can find it and combine it with a valid license URL, perhaps we can then say something like "This work has been released with a Creative Commons license by the copyright holder."
Extracting templates from file page
Pywikibot has functions to extract templates from a page, see https://doc.wikimedia.org/pywikibot/stable/api_ref/textlib.html#textlib.extract_templates_and_params_regex_simple
Double licensing
On Wikimedia Commons, there are a lot of images with multiple licenses. For the registry, we should only pick one. Therefore, we need some logic for which one to pick.
- Pick a well-known system:
- CC licenses over any other license systems
- Pick the most free license:
- CC BY over CC BY-SA
- CC0 over CC BY
- PD over CC0
- Except for PD USGov templates, where CC0 should be picked over PD USGov
- Pick the newest version, for example CC BY 3.0 over CC BY 2.5
Rationales stored in Wikidata
The items above are used in the tool Paulina and there one can see the aspects of either all countries or the countries using a specific rationale, example for countries with 50 years pma: Q114763455.