Hello Raul.
While there is indeed some inconsistency with year-precision dates (some use
01-01 for month and day, some use 00-00), I cannot reproduce the issue you
report. Looking at the JSON form of Q216, I see +2014-00-00, as expected. I
connot find 2013 anywhere in the JSON. Am I missing something?
Here is the entire statement in JSON:
[
{
"mainsnak": {
"snaktype": "value",
"property": "P1082",
"datavalue": {
"value": {
"amount": "+539939",
"unit": "1",
"upperBound": "+539940",
"lowerBound": "+539938"
},
"type": "quantity"
},
"datatype": "quantity"
},
"type": "statement",
"qualifiers": {
"P585": [
{
"snaktype": "value",
"property": "P585",
"hash": "a1c4aa51810ae8ef53dd5e243264e9d977c02081",
"datavalue": {
"value": {
"time": "+2014-00-00T00:00:00Z",
"timezone": 0,
"before": 0,
"after": 0,
"precision": 9,
"calendarmodel":
"http:\/\/www.wikidata.org\/entity\/Q1985727"
},
"type": "time"
},
"datatype": "time"
}
]
},
"qualifiers-order": [
"P585"
],
"id": "Q216$2a0bbe8d-4281-d178-93b0-9e6ff904ea91",
"rank": "normal",
"references": [
{
"hash": "3c680f0b30bc470385ebab96c739ddd1c84be724",
"snaks": {
"P854": [
{
"snaktype": "value",
"property": "P854",
"datavalue": {
"value":
"http:\/\/db1.stat.gov.lt\/statbank\/selectvarval\/saveselections.asp?MainTable=M3010211&PLanguage=1&TableStyle=&Buttons=&PXSId=9116&IQY=&TC=&ST=ST&rvar0=&rvar1=&rvar2=&rvar3=&rvar4=&rvar5=&rvar6=&rvar7=&rvar8=&rvar9=&rvar10=&rvar11=&rvar12=&rvar13=&rvar14=",
"type": "string"
},
"datatype": "url"
}
]
},
"snaks-order": [
"P854"
]
}
]
}
]
Am 31.08.2015 um 19:19 schrieb Raul Kern:
Hi,
how is the datetime value with precision of one year stored?
For example for birt date in
https://www.wikidata.org/wiki/Q299687
fine grain value for "1700" is "1.01.1700"
But for population date field in
https://www.wikidata.org/wiki/Q216
the fine grain value for "2014" is "30.11.2013"
Which is kind of unexpected.
--
Raul
_______________________________________________
Wikidata-tech mailing list
Wikidata-tech(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
--
Daniel Kinzler
Senior Software Developer
Wikimedia Deutschland
Gesellschaft zur Förderung Freien Wissens e.V.