https://bugzilla.wikimedia.org/show_bug.cgi?id=64503
Bug ID: 64503 Summary: Add time to harvest_template.py Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: Wikidata Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: maarten@mdammers.nl Depends on: 64501, 64502 Web browser: --- Mobile Platform: ---
Time is one of the new Wikibase datatypes. harvest_template.py should support importing time.
https://www.wikidata.org/wiki/User:Underlying_lk/harvest_template_old.py can be used as reference, but that code combines everything. I split it up in multiple bugs.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64503 Bug 64503 depends on bug 64501, which changed state.
Bug 64501 Summary: Modify pywikibot.Timestamp to support Wikidata https://bugzilla.wikimedia.org/show_bug.cgi?id=64501
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX
https://bugzilla.wikimedia.org/show_bug.cgi?id=64503
Maarten Dammers maarten@mdammers.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends on|64501 |
--- Comment #2 from Maarten Dammers maarten@mdammers.nl --- (In reply to John Mark Vandenberg from comment #1)
What are some example template fields which could be harvested to wikidata?
For example the date fields in https://en.wikipedia.org/wiki/Template:Persondata or in Dutch https://nl.wikipedia.org/wiki/Sjabloon:Infobox_persoon "geboortedatum" and "sterfdatum"
Thinking out loud: if we get precision of date, rather than time, is that good enough? It looks like Underlying_lk's version is only date.
For now that's the only thing we can implement anyway. Wikibase doesn't support a precision greater than a day at the moment so we should just focus on the date and ignore the time (for now).
I removed https://bugzilla.wikimedia.org/show_bug.cgi?id=64501 btw. This bug doesn't depend on it and it's wontfix anyway.
https://bugzilla.wikimedia.org/show_bug.cgi?id=64503
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Add time to |Add datatype time to |harvest_template.py |harvest_template.py for | |importing dates
https://bugzilla.wikimedia.org/show_bug.cgi?id=64503
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.wikimedia. | |org/show_bug.cgi?id=55004
https://bugzilla.wikimedia.org/show_bug.cgi?id=64503
--- Comment #3 from John Mark Vandenberg jayvdb@gmail.com --- To see this bug, run
$ python pwb.py scripts/harvest_template.py -simulate -family:wikipedia -lang:en -page:MediaWiki -template:Infobox_software released P580
https://bugzilla.wikimedia.org/show_bug.cgi?id=64503
--- Comment #4 from John Mark Vandenberg jayvdb@gmail.com --- (In reply to John Mark Vandenberg from comment #3)
To see this bug, run
$ python pwb.py scripts/harvest_template.py -simulate -family:wikipedia -lang:en -page:MediaWiki -template:Infobox_software released P580
Hmm. That should output 'time is not a supported datatype', but it doesnt.
http://git.wikimedia.org/blob/pywikibot%2Fcore.git/master/scripts%2Fharvest_...
https://bugzilla.wikimedia.org/show_bug.cgi?id=64503
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.wikimedia. | |org/show_bug.cgi?id=71699
https://bugzilla.wikimedia.org/show_bug.cgi?id=64503
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |High CC| |manpreetkaur9411@gmail.com
--- Comment #5 from John Mark Vandenberg jayvdb@gmail.com --- After bug 71699 was fixed, this now shows the problem
$ python pwb.py scripts/harvest_template.py -simulate -family:wikipedia -lang:en -page:MediaWiki -template:Infobox_software released P580 Finding redirects... Retrieving 1 pages from wikipedia:en.
MediaWiki <<<
time is not a supported datatype.
pywikipedia-bugs@lists.wikimedia.org