Hi,
I am Chinmay Naik, an undergrad in CS at Bangalore,India. I hope to contribute to CrowsourcingBiology through GSOC 2013. The project i am interested is "convert bot to write to wikidata". Currently the bot does this database ---> wikipedia. The proposal is this database ----> wikidata -----> wikipedia.
I have the basic idea of how to capture gene info onto wikidata. I was wondering about the inclusion syntax of wikidata. I had a look at the current inclusion of wikidata v0.3 meta. Some things are unclear to me. How best it is to map wikidata items on to wiki articles.??
Currently, the bot uses templates. The template structure is http://en.wikipedia.org/wiki/Template:GNF_Protein_box. The bot fills a various gene templates http://en.wikipedia.org/wiki/Template:PBB/100. These gene templates are included on gene wikipedia articles.
I tried to work out on the italian wikipedia. When i try to include a template(mapped to wikidata item) onto an wiki article, the wikidata properties were not displayed. So is it not possible to include wikidata items in template namespace?? So transclusion where data is retreived from wikidata item not supported??
Kindly pardon me if this is not the right mailing list to post to about this.
Thanks in advance, Chinmay
Hey, that's a great project. The current situation with ProteinBoxBot is not ideal. We don't want to create a separate template for every protein. I suppose they do that now to make the articles slightly shorter, but Wikidata will allow us to accomplish the same thing without the confusing extra templates and ultimately to synchronize the infobox data across different language Wikipedias. With Wikidata the idea is that you will eventually just be able to write {{GNF Protein box}} at the top of the protein article and you will get what you want. If you look at our current list of biology properties though, there are still some that need to be added to fully support protein box.http://www.wikidata.org/wiki/Wikidata:List_of_properties#Biology_.2F_Biologi... You can start adding data for the current properties already though. I just added the Entrez ID to adenosine deaminase. http://www.wikidata.org/wiki/Q356093 A list of human proteins on Wikipedia is here. http://en.wikipedia.org/wiki/Category:Human_proteins You can access the list through code by using a MediaWiki API request like this: http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&... use cmcontinue to get them in pages of 500 at a time until you have all 10000. To go from article title to Wikidata item use something like this:http://wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titl... Then you'll want to propose a bot to automatically add properties. http://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot The property inclusion syntax refers to the item on the article that transcludes the template. So all of the extra templates that ProteinBoxBot is currently making would all have identical wiki markup if it was fully using Wikidata.Date: Tue, 16 Apr 2013 19:46:25 +0530 From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org Subject: [Wikidata-l] Regarding wikidata inclusion syntax
Hi,
I am Chinmay Naik, an undergrad in CS at Bangalore,India. I hope to contribute to CrowsourcingBiology through GSOC 2013. The project i am interested is "convert bot to write to wikidata". Currently the bot does this database ---> wikipedia. The proposal is this database ----> wikidata -----> wikipedia.
I have the basic idea of how to capture gene info onto wikidata. I was wondering about the inclusion syntax of wikidata. I had a look at the current inclusion of wikidata v0.3 meta. Some things are unclear to me. How best it is to map wikidata items on to wiki articles.??
Currently, the bot uses templates. The template structure is http://en.wikipedia.org/wiki/Template:GNF_Protein_box. The bot fills a various gene templates http://en.wikipedia.org/wiki/Template:PBB/100. These gene templates are included on gene wikipedia articles.
I tried to work out on the italian wikipedia. When i try to include a template(mapped to wikidata item) onto an wiki article, the wikidata properties were not displayed. So is it not possible to include wikidata items in template namespace??
So transclusion where data is retreived from wikidata item not supported??
Kindly pardon me if this is not the right mailing list to post to about this.
Thanks in advance,
Chinmay
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
If you are saying that the parser functions ({{#property:...}}) aren't being evaluated after the template is transcluded then I guess the feature isn't fully implemented yet.
From: hale.michael.jr@live.com To: wikidata-l@lists.wikimedia.org Date: Tue, 16 Apr 2013 15:11:35 -0400 Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
Hey, that's a great project. The current situation with ProteinBoxBot is not ideal. We don't want to create a separate template for every protein. I suppose they do that now to make the articles slightly shorter, but Wikidata will allow us to accomplish the same thing without the confusing extra templates and ultimately to synchronize the infobox data across different language Wikipedias. With Wikidata the idea is that you will eventually just be able to write {{GNF Protein box}} at the top of the protein article and you will get what you want. If you look at our current list of biology properties though, there are still some that need to be added to fully support protein box.http://www.wikidata.org/wiki/Wikidata:List_of_properties#Biology_.2F_Biologi... You can start adding data for the current properties already though. I just added the Entrez ID to adenosine deaminase. http://www.wikidata.org/wiki/Q356093 A list of human proteins on Wikipedia is here. http://en.wikipedia.org/wiki/Category:Human_proteins You can access the list through code by using a MediaWiki API request like this: http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&... use cmcontinue to get them in pages of 500 at a time until you have all 10000. To go from article title to Wikidata item use something like this:http://wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titl... Then you'll want to propose a bot to automatically add properties. http://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot The property inclusion syntax refers to the item on the article that transcludes the template. So all of the extra templates that ProteinBoxBot is currently making would all have identical wiki markup if it was fully using Wikidata.Date: Tue, 16 Apr 2013 19:46:25 +0530 From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org Subject: [Wikidata-l] Regarding wikidata inclusion syntax
Hi,
I am Chinmay Naik, an undergrad in CS at Bangalore,India. I hope to contribute to CrowsourcingBiology through GSOC 2013. The project i am interested is "convert bot to write to wikidata". Currently the bot does this database ---> wikipedia. The proposal is this database ----> wikidata -----> wikipedia.
I have the basic idea of how to capture gene info onto wikidata. I was wondering about the inclusion syntax of wikidata. I had a look at the current inclusion of wikidata v0.3 meta. Some things are unclear to me. How best it is to map wikidata items on to wiki articles.??
Currently, the bot uses templates. The template structure is http://en.wikipedia.org/wiki/Template:GNF_Protein_box. The bot fills a various gene templates http://en.wikipedia.org/wiki/Template:PBB/100. These gene templates are included on gene wikipedia articles.
I tried to work out on the italian wikipedia. When i try to include a template(mapped to wikidata item) onto an wiki article, the wikidata properties were not displayed. So is it not possible to include wikidata items in template namespace??
So transclusion where data is retreived from wikidata item not supported??
Kindly pardon me if this is not the right mailing list to post to about this.
Thanks in advance,
Chinmay
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
Hi , Thanks Michael for the info. Yes, the properties in the templates have to be yet created. http://www.wikidata.org/wiki/Wikidata:Molecular_Biology_task_force/Propertie.... We already have a bot in python to query wikipedia. I wanted to know whether the parser functions{{property:...}} are being evaluated after a template is transcluded. Hope to see that this feature would be implemented soon.
Ideally, we just want {{GNF_proteinBox}} at the beginning of the wiki article. If the parser functions would not be supported, then what would be the best approach? Other than passing arguments to {{GNF_ProteinBox}} in the wiki gene article. This would increase the length of each wiki gene article.
Thanks in advance, Chinmay
On Wed, Apr 17, 2013 at 12:48 AM, Michael Hale hale.michael.jr@live.comwrote:
If you are saying that the parser functions ({{#property:...}}) aren't being evaluated after the template is transcluded then I guess the feature isn't fully implemented yet.
From: hale.michael.jr@live.com To: wikidata-l@lists.wikimedia.org Date: Tue, 16 Apr 2013 15:11:35 -0400 Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
Hey, that's a great project. The current situation with ProteinBoxBot is not ideal. We don't want to create a separate template for every protein. I suppose they do that now to make the articles slightly shorter, but Wikidata will allow us to accomplish the same thing without the confusing extra templates and ultimately to synchronize the infobox data across different language Wikipedias. With Wikidata the idea is that you will eventually just be able to write {{GNF Protein box}} at the top of the protein article and you will get what you want. If you look at our current list of biology properties though, there are still some that need to be added to fully support protein box.
http://www.wikidata.org/wiki/Wikidata:List_of_properties#Biology_.2F_Biologi...
You can start adding data for the current properties already though. I just added the Entrez ID to adenosine deaminase. http://www.wikidata.org/wiki/Q356093
A list of human proteins on Wikipedia is here. http://en.wikipedia.org/wiki/Category:Human_proteins You can access the list through code by using a MediaWiki API request like this: http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&... The use cmcontinue to get them in pages of 500 at a time until you have all 10000.
To go from article title to Wikidata item use something like this:
http://wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titl...
Then you'll want to propose a bot to automatically add properties. http://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot
The property inclusion syntax refers to the item on the article that transcludes the template. So all of the extra templates that ProteinBoxBot is currently making would all have identical wiki markup if it was fully using Wikidata.
Date: Tue, 16 Apr 2013 19:46:25 +0530 From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org Subject: [Wikidata-l] Regarding wikidata inclusion syntax
Hi,
I am Chinmay Naik, an undergrad in CS at Bangalore,India. I hope to contribute to CrowsourcingBiology through GSOC 2013. The project i am interested is "convert bot to write to wikidata". Currently the bot does this database ---> wikipedia. The proposal is this database ----> wikidata -----> wikipedia.
I have the basic idea of how to capture gene info onto wikidata. I was wondering about the inclusion syntax of wikidata. I had a look at the current inclusion of wikidata v0.3 meta. Some things are unclear to me. How best it is to map wikidata items on to wiki articles.??
Currently, the bot uses templates. The template structure is http://en.wikipedia.org/wiki/Template:GNF_Protein_box. The bot fills a various gene templates http://en.wikipedia.org/wiki/Template:PBB/100. These gene templates are included on gene wikipedia articles.
I tried to work out on the italian wikipedia. When i try to include a template(mapped to wikidata item) onto an wiki article, the wikidata properties were not displayed. So is it not possible to include wikidata items in template namespace?? So transclusion where data is retreived from wikidata item not supported??
Kindly pardon me if this is not the right mailing list to post to about this.
Thanks in advance, Chinmay
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
My understanding is that scenario will definitely be supported. I have no idea if it is already or if the parser functions only currently work in articles.
Date: Wed, 17 Apr 2013 11:17:43 +0530 From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
Hi , Thanks Michael for the info. Yes, the properties in the templates have to be yet created. http://www.wikidata.org/wiki/Wikidata:Molecular_Biology_task_force/Propertie.... We already have a bot in python to query wikipedia.
I wanted to know whether the parser functions{{property:...}} are being evaluated after a template is transcluded. Hope to see that this feature would be implemented soon.
Ideally, we just want {{GNF_proteinBox}} at the beginning of the wiki article. If the parser functions would not be supported, then what would be the best approach? Other than passing arguments to {{GNF_ProteinBox}} in the wiki gene article. This would increase the length of each wiki gene article.
Thanks in advance, Chinmay
On Wed, Apr 17, 2013 at 12:48 AM, Michael Hale hale.michael.jr@live.com wrote:
If you are saying that the parser functions ({{#property:...}}) aren't being evaluated after the template is transcluded then I guess the feature isn't fully implemented yet.
From: hale.michael.jr@live.com To: wikidata-l@lists.wikimedia.org Date: Tue, 16 Apr 2013 15:11:35 -0400
Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
Hey, that's a great project. The current situation with ProteinBoxBot is not ideal. We don't want to create a separate template for every protein. I suppose they do that now to make the articles slightly shorter, but Wikidata will allow us to accomplish the same thing without the confusing extra templates and ultimately to synchronize the infobox data across different language Wikipedias. With Wikidata the idea is that you will eventually just be able to write {{GNF Protein box}} at the top of the protein article and you will get what you want. If you look at our current list of biology properties though, there are still some that need to be added to fully support protein box. http://www.wikidata.org/wiki/Wikidata:List_of_properties#Biology_.2F_Biologi...
You can start adding data for the current properties already though. I just added the Entrez ID to adenosine deaminase. http://www.wikidata.org/wiki/Q356093
A list of human proteins on Wikipedia is here. http://en.wikipedia.org/wiki/Category:Human_proteins You can access the list through code by using a MediaWiki API request like this: http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&... The use cmcontinue to get them in pages of 500 at a time until you have all 10000. To go from article title to Wikidata item use something like this:http://wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titl...
Then you'll want to propose a bot to automatically add properties. http://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot
The property inclusion syntax refers to the item on the article that transcludes the template. So all of the extra templates that ProteinBoxBot is currently making would all have identical wiki markup if it was fully using Wikidata. Date: Tue, 16 Apr 2013 19:46:25 +0530 From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org
Subject: [Wikidata-l] Regarding wikidata inclusion syntax
Hi,
I am Chinmay Naik, an undergrad in CS at Bangalore,India. I hope to contribute to CrowsourcingBiology through GSOC 2013. The project i am interested is "convert bot to write to wikidata". Currently the bot does this database ---> wikipedia. The proposal is this database ----> wikidata -----> wikipedia.
I have the basic idea of how to capture gene info onto wikidata. I was wondering about the inclusion syntax of wikidata. I had a look at the current inclusion of wikidata v0.3 meta. Some things are unclear to me. How best it is to map wikidata items on to wiki articles.??
Currently, the bot uses templates. The template structure is http://en.wikipedia.org/wiki/Template:GNF_Protein_box. The bot fills a various gene templates http://en.wikipedia.org/wiki/Template:PBB/100. These gene templates are included on gene wikipedia articles.
I tried to work out on the italian wikipedia. When i try to include a template(mapped to wikidata item) onto an wiki article, the wikidata properties were not displayed. So is it not possible to include wikidata items in template namespace??
So transclusion where data is retreived from wikidata item not supported??
Kindly pardon me if this is not the right mailing list to post to about this.
Thanks in advance,
Chinmay
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
Yes, it seems to be working. I did a preview of deleting the flag parameter on the Italian article for Turin and it still showed up. The template uses an {{#if:...}} like this: {{#if:{{Wikidata|P41|{{{Bandiera|}}}}}|[[File:{{Wikidata|P41|{{{Bandiera|}}}}}|125x125px|border|{{#if:{{{Nome|}}}|{{{Nome}}}|{{PAGENAME}} }} – Bandiera]]}}
From: hale.michael.jr@live.com To: wikidata-l@lists.wikimedia.org Date: Wed, 17 Apr 2013 02:02:24 -0400 Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
My understanding is that scenario will definitely be supported. I have no idea if it is already or if the parser functions only currently work in articles.
Date: Wed, 17 Apr 2013 11:17:43 +0530 From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
Hi , Thanks Michael for the info. Yes, the properties in the templates have to be yet created. http://www.wikidata.org/wiki/Wikidata:Molecular_Biology_task_force/Propertie.... We already have a bot in python to query wikipedia.
I wanted to know whether the parser functions{{property:...}} are being evaluated after a template is transcluded. Hope to see that this feature would be implemented soon.
Ideally, we just want {{GNF_proteinBox}} at the beginning of the wiki article. If the parser functions would not be supported, then what would be the best approach? Other than passing arguments to {{GNF_ProteinBox}} in the wiki gene article. This would increase the length of each wiki gene article.
Thanks in advance, Chinmay
On Wed, Apr 17, 2013 at 12:48 AM, Michael Hale hale.michael.jr@live.com wrote:
If you are saying that the parser functions ({{#property:...}}) aren't being evaluated after the template is transcluded then I guess the feature isn't fully implemented yet.
From: hale.michael.jr@live.com To: wikidata-l@lists.wikimedia.org Date: Tue, 16 Apr 2013 15:11:35 -0400
Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
Hey, that's a great project. The current situation with ProteinBoxBot is not ideal. We don't want to create a separate template for every protein. I suppose they do that now to make the articles slightly shorter, but Wikidata will allow us to accomplish the same thing without the confusing extra templates and ultimately to synchronize the infobox data across different language Wikipedias. With Wikidata the idea is that you will eventually just be able to write {{GNF Protein box}} at the top of the protein article and you will get what you want. If you look at our current list of biology properties though, there are still some that need to be added to fully support protein box. http://www.wikidata.org/wiki/Wikidata:List_of_properties#Biology_.2F_Biologi...
You can start adding data for the current properties already though. I just added the Entrez ID to adenosine deaminase. http://www.wikidata.org/wiki/Q356093
A list of human proteins on Wikipedia is here. http://en.wikipedia.org/wiki/Category:Human_proteins You can access the list through code by using a MediaWiki API request like this: http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&... The use cmcontinue to get them in pages of 500 at a time until you have all 10000. To go from article title to Wikidata item use something like this:http://wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titl...
Then you'll want to propose a bot to automatically add properties. http://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot
The property inclusion syntax refers to the item on the article that transcludes the template. So all of the extra templates that ProteinBoxBot is currently making would all have identical wiki markup if it was fully using Wikidata. Date: Tue, 16 Apr 2013 19:46:25 +0530 From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org
Subject: [Wikidata-l] Regarding wikidata inclusion syntax
Hi,
I am Chinmay Naik, an undergrad in CS at Bangalore,India. I hope to contribute to CrowsourcingBiology through GSOC 2013. The project i am interested is "convert bot to write to wikidata". Currently the bot does this database ---> wikipedia. The proposal is this database ----> wikidata -----> wikipedia.
I have the basic idea of how to capture gene info onto wikidata. I was wondering about the inclusion syntax of wikidata. I had a look at the current inclusion of wikidata v0.3 meta. Some things are unclear to me. How best it is to map wikidata items on to wiki articles.??
Currently, the bot uses templates. The template structure is http://en.wikipedia.org/wiki/Template:GNF_Protein_box. The bot fills a various gene templates http://en.wikipedia.org/wiki/Template:PBB/100. These gene templates are included on gene wikipedia articles.
I tried to work out on the italian wikipedia. When i try to include a template(mapped to wikidata item) onto an wiki article, the wikidata properties were not displayed. So is it not possible to include wikidata items in template namespace??
So transclusion where data is retreived from wikidata item not supported??
Kindly pardon me if this is not the right mailing list to post to about this.
Thanks in advance,
Chinmay
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
Thanks michael. Its clear to me now. I had one more issue. We still have to use property syntax in main wiki article. consider the following ex: 1) {{GNF_proteinBox|id=q1111}} (include in article ie link to item q111- gene wikidata item) In the main template structure we introduce parser functions{{#property: of wikidata item....}}
2) {{GNF_proteinBox| specify property syntax here}}
case 2 is supported. what about case 1??
On Wed, Apr 17, 2013 at 11:57 AM, Michael Hale hale.michael.jr@live.comwrote:
Yes, it seems to be working. I did a preview of deleting the flag parameter on the Italian article for Turin and it still showed up. The template uses an {{#if:...}} like this: {{#if:{{Wikidata|P41|{{{Bandiera|}}}}}|[[File:{{Wikidata|P41|{{{Bandiera|}}}}}|125x125px|border|{{#if:{{{Nome|}}}|{{{Nome}}}|{{PAGENAME}} }} – Bandiera]]}}
From: hale.michael.jr@live.com To: wikidata-l@lists.wikimedia.org Date: Wed, 17 Apr 2013 02:02:24 -0400
Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
My understanding is that scenario will definitely be supported. I have no idea if it is already or if the parser functions only currently work in articles.
Date: Wed, 17 Apr 2013 11:17:43 +0530 From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
Hi , Thanks Michael for the info. Yes, the properties in the templates have to be yet created. http://www.wikidata.org/wiki/Wikidata:Molecular_Biology_task_force/Propertie.... We already have a bot in python to query wikipedia. I wanted to know whether the parser functions{{property:...}} are being evaluated after a template is transcluded. Hope to see that this feature would be implemented soon.
Ideally, we just want {{GNF_proteinBox}} at the beginning of the wiki article. If the parser functions would not be supported, then what would be the best approach? Other than passing arguments to {{GNF_ProteinBox}} in the wiki gene article. This would increase the length of each wiki gene article.
Thanks in advance, Chinmay
On Wed, Apr 17, 2013 at 12:48 AM, Michael Hale hale.michael.jr@live.comwrote:
If you are saying that the parser functions ({{#property:...}}) aren't being evaluated after the template is transcluded then I guess the feature isn't fully implemented yet.
From: hale.michael.jr@live.com To: wikidata-l@lists.wikimedia.org Date: Tue, 16 Apr 2013 15:11:35 -0400 Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
Hey, that's a great project. The current situation with ProteinBoxBot is not ideal. We don't want to create a separate template for every protein. I suppose they do that now to make the articles slightly shorter, but Wikidata will allow us to accomplish the same thing without the confusing extra templates and ultimately to synchronize the infobox data across different language Wikipedias. With Wikidata the idea is that you will eventually just be able to write {{GNF Protein box}} at the top of the protein article and you will get what you want. If you look at our current list of biology properties though, there are still some that need to be added to fully support protein box.
http://www.wikidata.org/wiki/Wikidata:List_of_properties#Biology_.2F_Biologi...
You can start adding data for the current properties already though. I just added the Entrez ID to adenosine deaminase. http://www.wikidata.org/wiki/Q356093
A list of human proteins on Wikipedia is here. http://en.wikipedia.org/wiki/Category:Human_proteins You can access the list through code by using a MediaWiki API request like this: http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&... The use cmcontinue to get them in pages of 500 at a time until you have all 10000.
To go from article title to Wikidata item use something like this:
http://wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titl...
Then you'll want to propose a bot to automatically add properties. http://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot
The property inclusion syntax refers to the item on the article that transcludes the template. So all of the extra templates that ProteinBoxBot is currently making would all have identical wiki markup if it was fully using Wikidata.
Date: Tue, 16 Apr 2013 19:46:25 +0530 From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org Subject: [Wikidata-l] Regarding wikidata inclusion syntax
Hi,
I am Chinmay Naik, an undergrad in CS at Bangalore,India. I hope to contribute to CrowsourcingBiology through GSOC 2013. The project i am interested is "convert bot to write to wikidata". Currently the bot does this database ---> wikipedia. The proposal is this database ----> wikidata -----> wikipedia.
I have the basic idea of how to capture gene info onto wikidata. I was wondering about the inclusion syntax of wikidata. I had a look at the current inclusion of wikidata v0.3 meta. Some things are unclear to me. How best it is to map wikidata items on to wiki articles.??
Currently, the bot uses templates. The template structure is http://en.wikipedia.org/wiki/Template:GNF_Protein_box. The bot fills a various gene templates http://en.wikipedia.org/wiki/Template:PBB/100. These gene templates are included on gene wikipedia articles.
I tried to work out on the italian wikipedia. When i try to include a template(mapped to wikidata item) onto an wiki article, the wikidata properties were not displayed. So is it not possible to include wikidata items in template namespace?? So transclusion where data is retreived from wikidata item not supported??
Kindly pardon me if this is not the right mailing list to post to about this.
Thanks in advance, Chinmay
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
All you will have to put in the articles is {{GNF_proteinBox}}. Then when it renders the page first it will write out the template. Then any {{#property:...}} calls that are inserted will be replaced with the data from Wikidata. You never have to specify the Wikidata ID manually. The #property finds the ID automatically based on the title of the article that transcludes the template.
Date: Wed, 17 Apr 2013 12:58:03 +0530 From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
Thanks michael. Its clear to me now. I had one more issue. We still have to use property syntax in main wiki article. consider the following ex: 1) {{GNF_proteinBox|id=q1111}} (include in article ie link to item q111- gene wikidata item)
In the main template structure we introduce parser functions{{#property: of wikidata item....}}
2) {{GNF_proteinBox| specify property syntax here}}
case 2 is supported. what about case 1??
On Wed, Apr 17, 2013 at 11:57 AM, Michael Hale hale.michael.jr@live.com wrote:
Yes, it seems to be working. I did a preview of deleting the flag parameter on the Italian article for Turin and it still showed up. The template uses an {{#if:...}} like this: {{#if:{{Wikidata|P41|{{{Bandiera|}}}}}|[[File:{{Wikidata|P41|{{{Bandiera|}}}}}|125x125px|border|{{#if:{{{Nome|}}}|{{{Nome}}}|{{PAGENAME}} }} – Bandiera]]}}
From: hale.michael.jr@live.com To: wikidata-l@lists.wikimedia.org
Date: Wed, 17 Apr 2013 02:02:24 -0400 Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
My understanding is that scenario will definitely be supported. I have no idea if it is already or if the parser functions only currently work in articles.
Date: Wed, 17 Apr 2013 11:17:43 +0530
From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
Hi , Thanks Michael for the info. Yes, the properties in the templates have to be yet created. http://www.wikidata.org/wiki/Wikidata:Molecular_Biology_task_force/Propertie.... We already have a bot in python to query wikipedia.
I wanted to know whether the parser functions{{property:...}} are being evaluated after a template is transcluded. Hope to see that this feature would be implemented soon.
Ideally, we just want {{GNF_proteinBox}} at the beginning of the wiki article. If the parser functions would not be supported, then what would be the best approach? Other than passing arguments to {{GNF_ProteinBox}} in the wiki gene article. This would increase the length of each wiki gene article.
Thanks in advance, Chinmay
On Wed, Apr 17, 2013 at 12:48 AM, Michael Hale hale.michael.jr@live.com wrote:
If you are saying that the parser functions ({{#property:...}}) aren't being evaluated after the template is transcluded then I guess the feature isn't fully implemented yet.
From: hale.michael.jr@live.com To: wikidata-l@lists.wikimedia.org Date: Tue, 16 Apr 2013 15:11:35 -0400
Subject: Re: [Wikidata-l] Regarding wikidata inclusion syntax
Hey, that's a great project. The current situation with ProteinBoxBot is not ideal. We don't want to create a separate template for every protein. I suppose they do that now to make the articles slightly shorter, but Wikidata will allow us to accomplish the same thing without the confusing extra templates and ultimately to synchronize the infobox data across different language Wikipedias. With Wikidata the idea is that you will eventually just be able to write {{GNF Protein box}} at the top of the protein article and you will get what you want. If you look at our current list of biology properties though, there are still some that need to be added to fully support protein box.
http://www.wikidata.org/wiki/Wikidata:List_of_properties#Biology_.2F_Biologi...
You can start adding data for the current properties already though. I just added the Entrez ID to adenosine deaminase. http://www.wikidata.org/wiki/Q356093
A list of human proteins on Wikipedia is here. http://en.wikipedia.org/wiki/Category:Human_proteins You can access the list through code by using a MediaWiki API request like this: http://en.wikipedia.org/w/api.php?action=query&list=categorymembers&...
The use cmcontinue to get them in pages of 500 at a time until you have all 10000. To go from article title to Wikidata item use something like this:http://wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titl...
Then you'll want to propose a bot to automatically add properties. http://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot
The property inclusion syntax refers to the item on the article that transcludes the template. So all of the extra templates that ProteinBoxBot is currently making would all have identical wiki markup if it was fully using Wikidata.
Date: Tue, 16 Apr 2013 19:46:25 +0530 From: chin.naik26@gmail.com To: wikidata-l@lists.wikimedia.org
Subject: [Wikidata-l] Regarding wikidata inclusion syntax
Hi,
I am Chinmay Naik, an undergrad in CS at Bangalore,India. I hope to contribute to CrowsourcingBiology through GSOC 2013. The project i am interested is "convert bot to write to wikidata". Currently the bot does this database ---> wikipedia. The proposal is this database ----> wikidata -----> wikipedia.
I have the basic idea of how to capture gene info onto wikidata. I was wondering about the inclusion syntax of wikidata. I had a look at the current inclusion of wikidata v0.3 meta. Some things are unclear to me. How best it is to map wikidata items on to wiki articles.??
Currently, the bot uses templates. The template structure is http://en.wikipedia.org/wiki/Template:GNF_Protein_box. The bot fills a various gene templates http://en.wikipedia.org/wiki/Template:PBB/100. These gene templates are included on gene wikipedia articles.
I tried to work out on the italian wikipedia. When i try to include a template(mapped to wikidata item) onto an wiki article, the wikidata properties were not displayed. So is it not possible to include wikidata items in template namespace??
So transclusion where data is retreived from wikidata item not supported??
Kindly pardon me if this is not the right mailing list to post to about this.
Thanks in advance,
Chinmay
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l
_______________________________________________ Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
On 17.04.2013 09:28, chinmay naik wrote:
Thanks michael. Its clear to me now. I had one more issue. We still have to use property syntax in main wiki article. consider the following ex:
- {{GNF_proteinBox|id=q1111}} (include in article ie link to item q111- gene
wikidata item) In the main template structure we introduce parser functions{{#property: of wikidata item....}}
- {{GNF_proteinBox| specify property syntax here}}
case 2 is supported. what about case 1??
Currently we only support transclusion of data from the item that is directly linked to the page. Transcluding data from other items is not yet supported, because it requires us to track which item is used where. That needs some schema changes in the database and more complex infrastructure for purging effected pages when an item changes.
it is planned though.
-- daniel
Thanks michael and Daniel. I will get back here, if i have any more questions.
@Michael I tried it using Italian wiki. But it currently supports only case 1. Basically, as Daniel pointed it out "transcluding data from other items" is not supported as of now.
On Wed, Apr 17, 2013 at 1:18 PM, Daniel Kinzler <daniel.kinzler@wikimedia.de
wrote:
On 17.04.2013 09:28, chinmay naik wrote:
Thanks michael. Its clear to me now. I had one more issue. We still have
to use
property syntax in main wiki article. consider the following ex:
- {{GNF_proteinBox|id=q1111}} (include in article ie link to item
q111- gene
wikidata item) In the main template structure we introduce parser functions{{#property:
of
wikidata item....}}
- {{GNF_proteinBox| specify property syntax here}}
case 2 is supported. what about case 1??
Currently we only support transclusion of data from the item that is directly linked to the page. Transcluding data from other items is not yet supported, because it requires us to track which item is used where. That needs some schema changes in the database and more complex infrastructure for purging effected pages when an item changes.
it is planned though.
-- daniel
-- Daniel Kinzler, Softwarearchitekt Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V.
Wikidata-l mailing list Wikidata-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-l
2013/4/17 chinmay naik chin.naik26@gmail.com:
Thanks michael and Daniel. I will get back here, if i have any more questions.
@Michael I tried it using Italian wiki. But it currently supports only case 1. Basically, as Daniel pointed it out "transcluding data from other items" is not supported as of now.
Dear Chinmay,
I'm from Italian Wikipedia, so I probably can give you some help. At the moment, I'm not able to read the whole thread 'cause I'm at work, but please feel free to ask me for help if you need it. I'll try to take a look at the thread in the lunch break, and I offer to help you in reaching the Italian community.