Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timestamp for Wikidata export: +2021-00-00 versus +2021-01-01 #3694

Closed
emu-at opened this issue Mar 4, 2021 · 5 comments · Fixed by #3887
Closed

timestamp for Wikidata export: +2021-00-00 versus +2021-01-01 #3694

emu-at opened this issue Mar 4, 2021 · 5 comments · Fixed by #3887
Assignees
Labels
Type: Bug Issues related to software defects or unexpected behavior, which require resolution. wikibase Related to wikidata/wikibase integration
Milestone

Comments

@emu-at
Copy link

emu-at commented Mar 4, 2021

When exporting dates with a precision smaller than days, OpenRefine (Version 3.4.1) seems to export the year 1883 (as a random example) as +1883-01-01T00:00:00Z both with the export tool and QuickStatements.

However, if I understand those links correctly, it should be +1883-00-00T00:00:00Z (even though this isn’t ISO style):

https://www.wikidata.org/wiki/Help:Dates#Time_datatype
https://www.wikidata.org/wiki/Wikidata:Project_chat/Archive/2021/02#Dates_with_%3C11_precision
https://www.mediawiki.org/wiki/Wikibase/DataModel#Dates_and_times

While an argument could be made that Wikibase should normalize those entries, this isn’t the case at the moment, so I wondered if you could adjust OpenRefine’s behaviour. Thank you!

@emu-at emu-at added Type: Bug Issues related to software defects or unexpected behavior, which require resolution. Status: Pending Review Indicates that the issue or pull request is awaiting review by project maintainers or collaborators labels Mar 4, 2021
@wetneb wetneb added the wikibase Related to wikidata/wikibase integration label Mar 4, 2021
@loulankxh
Copy link
Contributor

Sir, I'd like to work on this issue and I wonder if I can get this assignment. Thanks

@loulankxh
Copy link
Contributor

For better understanding, it's deeply appreciated if the further information on how I can reproduce this problem(specifically where I can choose to export dates) could be given. Thanks again.

@wetneb
Copy link
Member

wetneb commented Mar 10, 2021

@loulankxh sure! You should be able to reproduce this by creating a Wikibase schema (for Wikidata, for instance) which adds an "inception date" of 1883 to a Wikidata sandbox item, and then observe the QuickStatements export. To get more familiar with this area of the tool check out https://www.wikidata.org/wiki/Wikidata:Tools/OpenRefine/Editing

@wetneb
Copy link
Member

wetneb commented Apr 18, 2021

Hi @loulankxh, how is it going? If you get stuck at any point feel free to reach out.

@loulankxh
Copy link
Contributor

Sorry sir. I got a little busy several days ago and I'm currently considering this issue.

loulankxh pushed a commit to loulankxh/OpenRefine that referenced this issue May 8, 2021
loulankxh pushed a commit that referenced this issue May 8, 2021
loulankxh pushed a commit to loulankxh/OpenRefine that referenced this issue May 8, 2021
loulankxh pushed a commit to loulankxh/OpenRefine that referenced this issue May 8, 2021
loulankxh pushed a commit to loulankxh/OpenRefine that referenced this issue May 8, 2021
@wetneb wetneb removed the Status: Pending Review Indicates that the issue or pull request is awaiting review by project maintainers or collaborators label May 8, 2021
loulankxh pushed a commit to loulankxh/OpenRefine that referenced this issue May 9, 2021
loulankxh pushed a commit to loulankxh/OpenRefine that referenced this issue May 9, 2021
wetneb pushed a commit that referenced this issue May 10, 2021
@wetneb wetneb added this to the 3.5 milestone May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issues related to software defects or unexpected behavior, which require resolution. wikibase Related to wikidata/wikibase integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants