Purpose
Currently, the upload2commons command "just" uploads the file to (Beta) Commons with wikitext including templates and variables. But without Structured Data on Commons (SDC).
This command should create some SDC statements, and ideally do so in a way that will make adapting this command to the actual Wikimedia Commons easy.
Copilot will help.
Approach
Ground break:
- Update upload2commons to push captured with (P4082) = Lingua Libre (Q60024037) into the file's SDC.
Expand:
- Define the relevant properties to push as structured data
- Update upload2commons so these properties to be written ...
- write wikipage: to new Commons audio file
- update: on existing Commons audio file
List of Lingua Libre properties
For references, these are the list of possible properties on Lingua Libre v2.
Example:
Selection (ask Yug)
!IMPORTANT : Not completed. Ask Yug to review chat.wav above and others files (signed, etc) more thoroughly.
Properties to push to SDC :
- captured with (P4082) = Lingua Libre (Q60024037)
- copyright status (P6216) = [ public domain (Q19652) , copyrighted (Q50423863) ]
- copyright license (P275) = [ Creative Commons CC0 License (Q6938433) , Creative Commons Attribution 4.0 International (Q20007257) , Creative Commons Attribution-ShareAlike 4.0 International (Q18199165) ] Note: ccby (Q6905323); ccbysa (Q6905942).
- transliteration or transcription (P2440) = recording writing (string pronounced or signed)
- language of work (P407) = recording's Wikidata language
- recording date (P10135) = YYYY-MM-DD
- recordist (P10893) =
- Qualifier: Wikimedia username (P4174) = <username>
- Lingua Libre ID (P10369) : audio Qid from Lingualibre
- spoken by (P10894) =
- Qualifier: Lingua Libre ID (P10369) : locutor Qid from Lingualibre
- Qualifier: author name string (P2093) : <username string>
If items generated with Wikidata or Lexeme generators :
- Wikidata Q identifier (Q43649390) = recording wikidata or Lexeme Qid
If a SPOKEN language:
- instance of (P31) = pronunciation file (Q108167708)
- audio (P51) = pronunciation file (Q108167708)
- audio transcription (P9533) = recording writing (string pronounced)
If a SIGNED language:
- instance of (P31) = video recording (Q34508)
Task update:
Please test directly on Commons (prod) with small amounts of files.
