[Wikidata-bugs] [Maniphest] [Commented On] T246731: WDQS date handling produces errors for Julian dates

2020-06-29 Thread Toni_001
Toni_001 added a comment.


  Hello. I just ran into the same issue.
  
  For comparison, look at JSON instead: 
http://www.wikidata.org/entity/Q16931292.json
  There, the "value" object contains the following fields:
  
time: "+1498-06-22T00:00:00Z"
calendarmodel: "http://www.wikidata.org/entity/Q1985786";
  
  This means that JSON contains the original value, together with the calendar 
model to which the value corresponds.
  
  I do understand the logic provided by @Lucas_Werkmeister_WMDE. However, as 
developer, I missed the fact that in RDF, the `wikibase:timeValue` field 
contains the converted-to-Gregorian value instead of the value corresponding to 
the calendar - contrary to what JSON does.
  
  As developer, in certain situations, I'd like access to the original - 
unconverted - value, to faithfully extract the value entered in the user 
interface. This does not seem possible in RDF at the moment.
  
  I propose to add a field `wikibase:timeValueCorrespondingToOriginalCalendar` 
(better name to be discussed).

TASK DETAIL
  https://phabricator.wikimedia.org/T246731

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Toni_001
Cc: Toni_001, Lucas_Werkmeister_WMDE, Mahir256, Tagishsimon, Aklapper, CBogen, 
darthmon_wmde, Nandana, Namenlos314, Lahi, Gq86, GoranSMilovanovic, QZanden, 
EBjune, merbst, LawExplorer, _jensen, rosalieper, Scott_WUaS, Jonas, Xmlizer, 
jkroll, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs


[Wikidata-bugs] [Maniphest] [Commented On] T246731: WDQS date handling produces errors for Julian dates

2020-03-03 Thread Lucas_Werkmeister_WMDE
Lucas_Werkmeister_WMDE added a comment.


  I don’t see the problem. The exact value is 
`"1498-07-01T00:00:00Z"^^xsd:dateTime` (query 

 – the datatype is crucial). XSD date and time values 
 follow ISO 8601, which requires 
the Gregorian or proleptic Gregorian calendar. So the datatype already tells 
you how to interpret the value, and the `wikibase:timeCalendarModel` is 
therefore the calendar model of the value //before// it was converted to 
`xsd:dateTime`. When the RDF exporter encounters a date that it can’t convert 
to `xsd:datetime`, it emits a plain string instead – then, and only then, is 
the `wikibase:timeCalendarModel` also the calendar model of that string.
  
  Wikibase or the query service aren’t “representing the value as 1 July 1498 
Julian” – they’re just representing the value as some triples. It’s your 
interpretation of those triples that’s flawed, as far as I understand: “1 July 
1498 (proleptic Gregorian), originally specified as Julian” would be a closer 
English rendition of them, I believe.
  
  It might still be useful to also include the original, unconverted value in 
the RDF export (as a string, not an `xsd:dateTime`). But I don’t think there’s 
anything wrong with the current representation.

TASK DETAIL
  https://phabricator.wikimedia.org/T246731

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Mahir256, Tagishsimon, Aklapper, darthmon_wmde, 
Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Jonas, Xmlizer, jkroll, Smalyshev, 
Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
___
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs