https://bugzilla.wikimedia.org/show_bug.cgi?id=64501
Bug ID: 64501
Summary: Modify pywikibot.Timestamp to support Wikidata
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Wikidata
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
Pywikibot currently contains a Timestamp class (see
https://git.wikimedia.org/blob/pywikibot%2Fcore.git/HEAD/pywikibot%2F__init__.py).
This class should be modified like Coordinate to support Wikidata.
Example how to add a time claim:
'action' => 'wbcreateclaim',
'entity' => 'Q82',
'property' => 'P11',
'snaktype' => 'value',
'value' =>
'{"time":"+00000002010-01-02T00:00:00Z","timezone":0,"before":0,"after":0,"precision":11,"calendarmodel":"http://www.wikidata.org/entity/Q1985727"}',
'bot' => 1,
(from https://www.mediawiki.org/wiki/Extension:Wikibase_Repository/API)
Should probably at least implement "toWikibase" and "fromWikibase"
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l