Page MenuHomePhabricator

Add pdRationale to supplierData
Closed, ResolvedPublic

Description

Needs to check the templates on the file page as most of the reasons are not in the structured data yet. If any of the templates on https://se.wikimedia.org/wiki/Projekt:CommonsDB_registry/Mallmappning#Mapping exists, use the Wikidata ID to submit to the registry for pdRationale. If none of them exists, just skip it.

Note: this is still not implemented to show in the registry.

Liccium will change the API and schema to be aligned with this table: https://www.notion.so/openfuture/pdRationale-input-validation-with-Wikidata-QIDs-31ecc5c6b83d802c889edd4428c45f05

Event Timeline

Which of the values in the table should be in the request metadata? The text only talks about "values", but not which column that refers to.

On Mallmappning, does "PD-USGov-*" mean any template name starting with "PD-USGov-"?

Which of the values in the table should be in the request metadata? The text only talks about "values", but not which column that refers to.

The column Wikidata id. It got a bit more confusing after this edit, but just the Qid, for example "Q60332278".

Is there any risk that there are multiple templates for PD rationale? And if so, what's the order of priority?

On Mallmappning, does "PD-USGov-*" mean any template name starting with "PD-USGov-"?

Yes. There is a whole bunch of them.

Is there any risk that there are multiple templates for PD rationale? And if so, what's the order of priority?

I think that is possible. But the order doesn't really matter because all of them should be correct. So I think it is okay to just pick the first one.

Is PD-anon-70-EU (and PD-Ugglan below) supposed to be included? There's no WD object for them.

Is PD-anon-70-EU (and PD-Ugglan below) supposed to be included? There's no WD object for them.

We'll have to pass on them for now. It's not clear exactly how a WD item should look like.

I tried running with some of the files marked as PD on Pilotbilder and none of them matched the templates. I had a look at File:Johannes Vermeer - Het melkmeisje - Google Art Project.jpg and among the many templates used there (full list below) I found Template:PD-old-100-expired, which looks like the closest one. Is it safe to assume that any template whose title starts with one from the map should have that PD rationale? Otherwise the map will have to be expanded.

Templates
Amsterdam Airport Schiphol
Category:Aabenraa
Category:Ede
Creator:Piet Mondriaan
Creator:Piet Mondrian
Institution:Rijksmuseum Amsterdam
Module:Artwork
Module:Artwork/Artwork ID properties LUT
Module:Artwork/core
Module:Authority control
Module:Authority control/conf
Module:Autotranslate
Module:Calendar
Module:Check isxn
Module:City
Module:City/data
Module:Complex date
Module:Coordinates
Module:Core
Module:Creator
Module:Creator/styles.css
Module:DateI18n
Module:Declension
Module:Error
Module:Fallback
Module:Formatnum
Module:I18n/artwork
Module:I18n/complex date
Module:I18n/coordinates
Module:I18n/creator
Module:I18n/institution
Module:I18n/name
Module:I18n/oil on canvas
Module:Information/styles.css
Module:Institution
Module:Int
Module:ISOdate
Module:LangSwitch
Module:LanguageCodes
Module:Linguistic
Module:Message box
Module:Name
Module:NationAndOccupation
Module:NationAndOccupation/CountryAdjective2iso
Module:NationAndOccupation/nationalityLUT
Module:OneLang
Module:Resolve category redirect
Module:SDC tracking
Module:Size
Module:TagQS
Module:Technique
Module:Technique/synonyms
Module:Technique/WikidataLUT
Module:TemplatePar
Module:Template redirect regex
Module:Title
Module:TNT
Module:TNT/config
Module:Wikidata art
Module:Wikidata date
Module:Wikidata label
Module:Yesno
Template:Amsterdam
Template:And
Template:Art dealer
Template:Artwork
Template:Bern (city)
Template:Cc-pd-mark-footer
Template:City
Template:Clear
Template:Conj
Template:Conj-and
Template:Copenhagen
Template:CountryAdjective
Template:CountryAdjective/en
Template:CreateTag
Template:Creator
Template:Creator missing depicts
Template:Date
Template:Denmark
Template:Der weite Blick
Template:De wijde blik
Template:Domburg
Template:Fallback
Template:Family
Template:Formatnum
Template:Full stop
Template:GetFallback
Template:GetFallback2
Template:I18n/cat(alog)
Template:I18n/catalog
Template:I18n/cat. no.
Template:I18n/catno
Template:I18n/no.
Template:I18n/no catalog
Template:I18n/no x
Template:I18n/signature
Template:Infobox template tag
Template:Inscription
Template:Inscription/categorization
Template:Inscription/label
Template:Inscription/style
Template:Institution
Template:Int
Template:ISBN
Template:ISOdate
Template:Label
Template:LangSwitch
Template:Laren
Template:L'Europe des esprits, Die Magie des Unfassbaren von der Romantik bis zur Moderne
Template:L'Europe des esprits ou la fascination de l'occulte, 1750-1950
Template:License template tag
Template:Localized mw message
Template:London
Template:Molens op Schiphol
Template:Multilingual link
Template:Multilingual link/wrapper
Template:Munich
Template:Nationality
Template:New York City
Template:No catalog
Template:No./i18n/en
Template:North Brabant
Template:Occupation
Template:Occupation/en
Template:Other date
Template:Paris
Template:PD-art
Template:PD-Art
Template:PD-art-category
Template:PD-art-category/core
Template:PD-Art/en
Template:PD-Art/layout
Template:PD-Layout
Template:PD-old-100-expired
Template:PD-old-text
Template:PD-old-X-expired
Template:PD-US-expired-text
Template:Position
Template:Position parameter
Template:P-page
Template:Price
Template:Private collection
Template:Probably
Template:ProvenanceEvent
Template:RelativeLocation
Template:RelativeLocation/core
Template:Rijksmuseum Amsterdam
Template:Room
Template:Rotterdam
Template:SDC-PD-old
Template:SDC statement exist
Template:Small-caps
Template:Small-caps/styles.css
Template:Strasbourg
Template:Str ≤ len
Template:Str ≥ len
Template:Technique/WikidataLUT
Template:Transclude
Template:Trim
Template:Trunc
Template:With color image
Template:With image
Template:Works of authors who died more than 70 years ago

That is perhaps some good news. On the file page, there is only {{PD-Art|PD-old-100-expired}} which I thought would make the resulting template invisible to pywikibot, but it seems like that's not the case.

I'll add a few more to the list then based on this.