Sunday, August 7, 2016

Week 15 (06th August - 12th August)

  • Started building the Birthday trigger view, for the base case, at this level, I limited all the subjects just to 10 and the trigger returned birthdays of entities on Wikidata.
  • Birthday trigger build using the Wikidata Query Service and SPARQL queries integrated into the flask app.
  • Created RSS for the birthday trigger which can be found in the popular_persons_birthday.xml template and also added a Unit tests for birthday trigger which is passing on tool labs.
  • Debugging of IFTTT endpoint tests for birthday trigger.
  • Birthday trigger endpoint test now passing on IFTTT and also tested it by creating a sample personal recipe and got an action for birthdays of people in Wikidata.
  • Improvement on the Birthday trigger so that it can use the lang trigger field to get the birthdays. This trigger field will be set on IFTTT recipe configuration by the user creating the trigger.
  • Fixed bug which prevented RSS content for the triggers to be translatable, now the RSS views for all the triggers are translatable in various languages provided the localization is available.
  • Modified the birthday trigger to get information about recent birthdays and ordering it in descending order of date. An example instance of the query can be found here: Recent birthdays for computer scientists and the query is below:
  • SELECT ?entity ?itemLabel ?propertyLabel ?date (year(?date) as ?year) 
    WHERE 
    {   
      ?entityS wdt:P569 ?date .   
       ?entityS wdt:P106 wd:Q82594 . 
        values ?property { wd:P106 } . 
        values ?item { wd:Q82594 } . 
                  SERVICE wikibase:label {
                   bd:serviceParam wikibase:language "en" . 
                             ?entityS rdfs:label ?entity . 
                       ?item rdfs:label ?itemLabel . 
                       ?property rdfs:label ?propertyLabel
                  } 
                FILTER (datatype(?date) = xsd:dateTime && month(?date) = month(now()) && day(?date) <= day(now()))
    } ORDER BY DESC(day(?date)) DESC(?year)
    • Added more trigger ingredients in the birthday trigger. Ingredients are now 3 instead of 1 which are; <lang>, <property> and <item>. These trigger ingredients optimizes the query to produce letter results and also gives room for the IFTTT users to customize the query to suite their needs.
    • Added options for property and item ingredients on the IFTTT front-end for users to select various options in creating recipes for birthday triggers.
    • Cleaned up the RSS view for birthday trigger to accommodate the new results that are returned like; age of the person, date of birth, properties and items etc....

No comments:

Post a Comment