Re: [Wikidata-l] A question about wikidata for templates

2013-04-01 Thread Jianyong Zhang
I think that I haven't got it completely: On Mon, Apr 1, 2013 at 11:15 AM, Michael Hale wrote: > The basic idea is to update templates like Infobox film to prefer to pull > data from Wikidata. So for a film article whose corresponding item on > Wikidata is fairly complete you can just put {{Infob

Re: [Wikidata-l] A question about wikidata for templates

2013-04-01 Thread Michael Hale
The data will be in the Wikidata pages (called items). It will be in the items for the articles, not the template. http://www.wikidata.org/wiki/Q217189 The mechanism has already launched on some Wikipedias. It will be on all of them soon. Details are here. http://blog.wikimedia.de/2013/03/27/yo

Re: [Wikidata-l] A question about wikidata for templates

2013-04-01 Thread Jianyong Zhang
I'm little confused here: I mean that in a template wikidata page such as http://www.wikidata.org/wiki/Q6171351, will we add statements in it? It is like a meta-data (schema) in a template. Such as, in the above page, we may add a statement as: label: Directed by data: {{{director|{{#property:p57

Re: [Wikidata-l] A question about wikidata for templates

2013-04-01 Thread Michael Hale
We may eventually add statements to the items for templates, but none of our current properties make sense for them. http://www.wikidata.org/wiki/Wikidata:List_of_properties However, the Infobox film template is included in 76000 articles. Each of those articles has an item on Wikidata that will

Re: [Wikidata-l] A question about wikidata for templates

2013-04-01 Thread Jianyong Zhang
Thanks for the detailed explanation. Now I got the current implementation. On Mon, Apr 1, 2013 at 3:49 PM, Michael Hale wrote: > We may eventually add statements to the items for templates, but none of > our current properties make sense for them. > http://www.wikidata.org/wiki/Wikidata:List_of_p

[Wikidata-l] How does wikidata handle topic redirect/merge/split

2013-04-01 Thread Jianyong Zhang
Hi, Wikidata is a very useful effort. It seems associating an item with a wikipedia article. Then I'm thinking the following scenarios to understand it further: Say, an article is associated with an item Qx. 1) It becomes redirect to another article, will Qx be changed in this scenario? 2) It

Re: [Wikidata-l] How does wikidata handle topic redirect/merge/split

2013-04-01 Thread Michael Hale
As far as I know, changing an article never automatically changes an item in Wikidata. I think many of the items in Wikidata are created by scanning the new pages feed. http://en.wikipedia.org/wiki/Special:NewPages I could be wrong though. Date: Mon, 1 Apr 2013 18:29:57 +0800 From: zhjy...@gmai

Re: [Wikidata-l] How does wikidata handle topic redirect/merge/split

2013-04-01 Thread Michael Hale
Although you can create a new item that doesn't correspond to an article here: http://www.wikidata.org/wiki/Special:NewItem I'm going to practice some with the Wikidata API later today by trying to import all of the Infobox film data. Then when we update the template after the inclusion syntax i

[Wikidata-l] Running "Infobox film" import script

2013-04-01 Thread Michael Hale
I've been practicing using the Wikidata and MediaWiki APIs today. Even though the Wikidata API is still being developed, using it was more pleasant than parsing the templates. The good news is I'll probably be able to reuse a lot of that code for other infoboxes that still need to be imported. I

Re: [Wikidata-l] Running "Infobox film" import script

2013-04-01 Thread Michael Hale
Here's the contributions from my IP address if you want to monitor it: http://www.wikidata.org/wiki/Special:Contributions/108.235.225.145 From: hale.michael...@live.com To: wikidata-l@lists.wikimedia.org Date: Tue, 2 Apr 2013 00:58:05 -0400 Subject: [Wikidata-l] Running "Infobox film" import scri

Re: [Wikidata-l] Running "Infobox film" import script

2013-04-01 Thread legoktm
Hi Michael, I had blocked your IP before I saw this email. We have a bot policy ( https://www.wikidata.org/wiki/Wikidata:Bot) that requires coders to get approval before they can run their scripts (see https://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot). Your script did look prett

Re: [Wikidata-l] Running "Infobox film" import script

2013-04-01 Thread Michael Hale
Oh, I thought bot approval was just for tasks that have an indefinite running time like cleaning vandalism, etc. I added a user-agent string to identify my IP address, but I hadn't run into problems on Wikipedia without one before. Am I supposed to re-apply each time I change a script? From: le

Re: [Wikidata-l] Running "Infobox film" import script

2013-04-01 Thread Federico Leva (Nemo)
Michael Hale, 02/04/2013 07:31: Oh, I thought bot approval was just for tasks that have an indefinite running time like cleaning vandalism, etc. I added a user-agent string to identify my IP address, but I hadn't run into problems on Wikipedia without one before. Am I supposed to re-apply each ti

Re: [Wikidata-l] Running "Infobox film" import script

2013-04-01 Thread legoktm
Bot approval is needed for any task that's going to be editing at high speeds or is (semi-)automated, which yours was. You can just request approval for "adding claims based off of Wikipedia infoboxes" and say you're going to start with films, and that will be good enough, so you won't need to requ

Re: [Wikidata-l] Running "Infobox film" import script

2013-04-01 Thread Michael Hale
Ok, I created a request. From: legoktm.wikipe...@gmail.com Date: Tue, 2 Apr 2013 00:57:36 -0500 To: wikidata-l@lists.wikimedia.org Subject: Re: [Wikidata-l] Running "Infobox film" import script Bot approval is needed for any task that's going to be editing at high speeds or is (semi-)automated,