Jc3s5h added a comment. In https://phabricator.wikimedia.org/T85296#1531136, @thiemowmde wrote in part:
> > > we do know which Gregorian and Julian dates exist. > > > I think we do not (https://en.wikipedia.org/wiki/February_30), but even if we > do, how does this change anything? Why should it be forbidden to store e.g. > the birth date of a fictional comic book character that was born on February > 31? I suggest to read > http://blog.wikimedia.de/2013/02/22/restricting-the-world/ again. Above there is a brief discussion of the parser vs. the validator. If I understand correctly, the validator is only active when the data is stored, and is irrelevant for data currently in Wikidata. The parser is obviously needed to parse input (one for the API and a different set for the user interface?) I expect parsing is also needed when doing queries and outputting results, either in JSON or the user interface. What is not clear is whether the validator or parser(s) consider the calendar model. If not, and if there is no willingness to change them so they do, then the solution sees to be to go with a month-by-month requirement on the allowed date ranges, with [1...29] for February. February 30 is a real date in the Swedish calendar. If I'm not allowed to enter https://www.wikidata.org/wiki/Q1130275 as the calendar, then it is an invalid date. It is a fictional date in //The Lord of The Rings//. If I'm not allowed to enter https://www.wikidata.org/wiki/Q15228 as the calendar model, then February 30 is an invalid date. I see this as a set of changes: the parsers, the validators, the user interface, and the documentation. If there is no willingness to change the whole set, then we should take the view that only valid Gregorian or Julian dates are allowed. If the parsers and validator allow February 29 in every year, that is a programming expedient, and it is nevertheless an error for an editor to introduce such a date. TASK DETAIL https://phabricator.wikimedia.org/T85296 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Jc3s5h Cc: Lydia_Pintscher, Jc3s5h, Liuxinyu970226, Ricordisamoa, Addshore, thiemowmde, JanZerebecki, Aklapper, daniel, Smalyshev, Wikidata-bugs, aude, Malyacko _______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
