Showing posts with label ToolScript. Show all posts
Showing posts with label ToolScript. Show all posts

Tuesday, October 21, 2014

#Wikidata - Thank you Magnus


Mr A. H. Halsey is the first person who can be put to rest now that the ToolScript works again. Mr Halsey was a sociologist, he died 14 October 2014.

Thank you Magnus, you are wonderful.
Thanks,
     GerardM

Monday, September 08, 2014

#Wikidata - The #Ukrainian - #Russian #War 2014

Soldiers die in the Ukraine. With depressing regularity they appear in the ToolScript I use to find people who died in 2014. I think many of them can be found in this category.. Currently there are 294 entries.

The Ukrainian Russian war is just one of the wars that are happening today. Sadly most other conflicts are not documented with the same quality of detail. Consider the cultures of Iraq and Syria that are being wiped away including their people. All the "little" wars in Africa. These conflicts are huge in their impact on people and cultures.

We hardly know them.
Thanks,
     GerardM

Friday, April 25, 2014

#ToolScript - Where is that script

The best tools are the tools that are used. As they are used, they get maintained. More functionality gets added and, at some stage it breaks the ability to add more. This is why ToolScript brings tools together it has the output of one tool as the input for the next. It brings us all the dead of 2014 that are NOT known as dead in Wikidata.

One problem is that you have to copy a script into the ToolScript every time. This proved to be a major nuisance and as Magnus eats his own dog food, a solution was found by importing scripts from "Pastebin".

The new script in Pastebin is a big improvement over the last one. It indicates the major variables on top. The category and the language that is considered and, the missing property in Wikidata. Even I can use it and change it for my purposes.

Other people like Amir, could take this even further when the result of ToolScript is in the format of an API; this will enable him to develop all kinds of wonderful stuff on top of the results.
Thanks,
     GerardM


Wednesday, April 23, 2014

#Wikidata - More 2014 deaths

When you are interested what notable people died in 2014, you will find that Wikidata is more complete than any Wikipedia. The ToolScript tool provides a wonderful opportunity to add even more people to this list.

Sadly for many people recognition at being notable is left for the moment when they die. Then again, it is a perfect moment to write a Wikipedia article as an obituary. Magnus wrote yet another script that creates an item for the articles that did not have one yet.

This is the script that finds all the items that are in need of some attention..
all_items = ts.getNewList('','wikidata');
cat = ts.getNewList('it','wikipedia').addPage('Category:Morti nel 2014').getWikidataItems().loadWikidataInfo();
$.each ( cat.pages[0].wd.sitelinks , function ( site , sitelink ) {
  var s = ts.getNewList(site).addPage(sitelink.title); // Page list for that site, with category
  if ( s.pages[0].page_namespace != 14 ) return ; // Not a category
  var items = ts.categorytree({language:s.language,project:s.project,root:s.pages[0].page_title,redirects:'none'}).getWikidataItems().hasProperty("P570",false);
  all_items = all_items.join(items);
} )
all_items.show();
Yes, ToolScript comes with documentation :)
Thanks,
    GerardM