Module talk:License

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Thoughts on flow of license (& copyright)

[edit]

I'm pretty sure we (me and Jarekt) discussed this before, but let's list this here. This module should be a decision tree based on SDC that starts with copyright and based on the different fields, will invoke the regular templates with the right parameters. So it starts with (the preferred value of) copyright status (P6216):

Let's focus on the copyrighted tree first and worry about the PD part later. I see you grab the copyright license (P275) to get to Creative Commons Attribution-ShareAlike 2.0 Generic (Q19068220) and follow topic's main template (P1424) to get to Template:Cc-by-sa-2.0 (Q6058246) Template:Cc-by-sa-2.0. Probably need to document this to make it easier for others to understand? We should probably make some kind of audit page to make it easy to spot licenses where this chain is broken. Multichill (talk) 11:25, 11 December 2021 (UTC)[reply]

Yes, so far I focused on Copyrighted fork focused on CC and GNU family. The code should handle both styles of modeling copyrights, although I have tested so far only the more common style. The Commons:Structured data/Modeling/Copyright should serve as main documentation, and I will be working on Module:License/doc to show what is implemented. I was planning to see if I can survey the copyright licenses in use at the moment in SDC but WCQS] seems to be down. I try to add other more rare licenses next like Open Government Licence v3.0 (Q99891702), Artistic License 1.0 (Q14624823), Free Art License (Q152332), etc. I will also write better handling of Category:Multi-license license tags. I wonder how important it is to correctly capture templates like Template:GFDL or cc-by-nc-3.0. --Jarekt (talk) 04:00, 13 December 2021 (UTC)[reply]
One thought on attribution, while it makes some sense to think most times the creator (P170) value is the rights holder, this is not true for all cases, especially organizations (e.g., work owned by an institution performed by an employee). There's also the problem of people using this field for the depicted work, but the photo license belongs to the photographer (e.g., Wikimedian takes a picture of a historic sculpture). I would stick to either copyright holder (P3931) or attribution text (P8264) for filling in the license attribution. Dominic (talk) 21:16, 6 March 2022 (UTC)[reply]

Non-free licenses

[edit]

@Jarekt: I noticed that some files (like File:KNUST hub Library Wikibase Training 63.jpg) have been uploaded with only non-free licenses in the structured data. Could this module detect that and add a warning/deletion tag, like if you tried to upload a file with {{Cc-by-nc-4.0}} normally? Adding the deletion tag redirects to the license template wikidata items could work, but seems like an ugly hack to me. AntiCompositeNumber (talk) 15:57, 3 May 2024 (UTC)[reply]

AntiCompositeNumber, this module was an experiment to see if one could store license info in the SDC and convert it into actual templates by a generic template. However the template is not used much at the moment with less then 300 transclusions. Template also has no knowledge of any other license templates which might be in the wikitext. I think that in this case the best bet is to rely on Category:Files with no machine-readable license. As for this batch of files I tagged them with {{No license}} --Jarekt (talk) 01:41, 4 May 2024 (UTC)[reply]

Public domain works

[edit]

We had a small meetup at Wikimania discussing SDC modeling and usage. One outcome was a wish for this template to support public domain works, even if only the most simple cases were supported initially. I personally wish to use this template in a batch uploading tool I'm working on as a replacement for the Pattypan uploading tool.

Pinging @Multichill @Spinster @Lokal Profil. Abbe98 (talk) 12:53, 10 August 2024 (UTC)[reply]

Thanks! FYI, @SIryn is testing various often-occurring PD cases and investigating which are already supported by the template, which not. Spinster (talk) 13:18, 10 August 2024 (UTC)[reply]
@SIryn and Spinster: If you are testing the template please add results to Module:License/doc#Examples. If it gets too big we can place it at some designated page, and link to it from Module:License/doc. --Jarekt (talk) 04:42, 13 August 2024 (UTC)[reply]
Thanks @Jarekt will do! SIryn (talk) 07:55, 13 August 2024 (UTC)[reply]
@Jarekt: I hope you can help here. Using File:Oliver Tarbell Eddy - Self-Portrait - 113474 - SAAM-2019.6.3 1.tif / Self-Portrait (Q128797488) as example
As mentioned above every file must have copyright status (P6216) and the valid options are copyrighted (Q50423863), copyrighted, dedicated to the public domain by copyright holder (Q88088423) & public domain (Q19652). If not (not at all or wrong target), the template should display an error and add tracker category.
digital representation of (P6243) should be followed to get data from Wikidata item.
Local statements can also be used and might override the Wikidata item. Qualifier applies to part (P518) set to analog work (Q112134971) or Wikimedia Commons file (Q51954352) is used for that.
If public domain (Q19652) is present with preferred rank with determination method (P459) -> faithful reproduction of two-dimensional public domain work of art (Q79719208) & applies to jurisdiction (P1001) -> countries where faithful reproduction of a 2D work of art do not have additional copyrights (Q80258411), the PD-art logic should kick in. Not complete variants should probably still work, but add a tracker category so we can clean up
For the PD-art logic:
Combine that into something like {{PD-old-100-expired}}. If that doesn't work:
Look for inception (P571), if available, use {{PD-old-auto-expired}}, otherwise {{PD-old-auto}}. Look for creator (P170) and if it has date of death (P570), add the pd-old-auto(-expired) template. Probably also some trackers to fill the data gaps
If that all fails, just fall back to {{PD-old}} like the normal template
If the file also has a license, use {{Licensed-PD-Art}} instead of {{PD-Art}}. For the license, use the logic you already made. This doesn't cover everything (like Template:PD-scan (Q15536353)), but should get us started. Multichill (talk) 19:55, 12 August 2024 (UTC)[reply]
Started File:Rembrandt Harmensz van Rijn - Rembrandt in Cap and Scarf - CHSDM-1949-100-3MattFlynn.tif as example of without an item. Multichill (talk) 22:03, 12 August 2024 (UTC)[reply]
@Multichill: When I was writing this template 3 years ago I was mostly following the data model outlined in d:Help:Copyrights for works with "complicated" copyrights that might apply to different parts, jurisdictions, coauthors, etc. I also added support for "simple" copyrights I observed being added on Commons, which I outlined in Commons:Structured data/Modeling/Copyright and which mostly applies to works uploaded by the authors. SDC was meant to store data related to the files and Wikidata metadata related to the artworks, so in case of File:Oliver Tarbell Eddy - Self-Portrait - 113474 - SAAM-2019.6.3 1.tif (aka. M151421848) most license related stuff should come from Self-Portrait (Q128797488) and
  • {{#invoke:License|SDC_license|id=Q128797488|debug=1}} gives "{{PD-old-100-expired}}"
  • {{#invoke:License|SDC_license|id=M151421848|debug=1}} gives "{"copyright_license":"Q6938433","copyright_status":"Q19652"}"
I will have to check the code of the module (I did not look at it in 3 years), but I think the output is an error message pointing out that we have CC0 copyright license attached to PD work, which makes no sense in either "complicated" or "simple" models. I will look more into it. I also would like to check if a file with data which follows expected model would give proper license template. --Jarekt (talk) 04:37, 13 August 2024 (UTC)[reply]
Thanks for your help. It's been a while since we worked on this. Multichill (talk) 20:10, 14 August 2024 (UTC)[reply]

Freedom of Panorama

[edit]

I am wondering if the template could also support showing SDC that indicates Freedom of Panorama.

  • Once we agree on a common data model for expressing FoP in SDC, such statements could be added in batch to probably hundreds of thousands of Commons files, on a country per country base. Data model still needs to be decided though. I made a proposal for that here on the talk page of the Copyright SDC data modeling page.
  • Maybe FoP-related structured data can be shown even if the uploader has not explicitly added the {{FoP-Somewhere}} template in the wikitext.

Spinster (talk) 15:54, 12 August 2024 (UTC)[reply]

No entity lua error

[edit]

If SDC is not on the page, we'll get "Lua error in Module:License at line 393: attempt to index local 'entity' (a nil value)." Multichill (talk) 17:47, 12 August 2024 (UTC)[reply]

I see it: {{#invoke:License|SDC_license|id=M151435821|debug=1}}: "{{Cc-by-2.0}}" does not crash anymore --Jarekt (talk) 03:44, 13 August 2024 (UTC)[reply]
Multichill, Fixed --Jarekt (talk) 03:46, 13 August 2024 (UTC)[reply]