« StatBot » : différence entre les versions
Aller à la navigation
Aller à la recherche
Ligne 38 : | Ligne 38 : | ||
:: Get "Naissance" event date (use first hyperword for name) | :: Get "Naissance" event date (use first hyperword for name) | ||
:: Return error code if the naissance event does not follow the correct syntaxe | :: Return error code if the naissance event does not follow the correct syntaxe | ||
=== Exists entry page_name=== | |||
::: Arguments(page_name), returns (true or false) | |||
===Database write === | ===Database write === | ||
Ligne 43 : | Ligne 46 : | ||
:: Columns for each variable name | :: Columns for each variable name | ||
:: Check if the entry for page_name already exists and overwrite it | :: Check if the entry for page_name already exists and overwrite it | ||
===Database Load column=== | ===Database Load column=== | ||
:::Arguments (Column name list), Returns nd list consisting of all the data in the order specified in column name list argument | :::Arguments (Column name list), Returns nd list consisting of all the data in the order specified in column name list argument | ||
===Database Read entry=== | ===Database Read entry=== | ||
:::Arguments (page_name), returns dictionary of all properties from the entry number | :::Arguments (page_name), returns dictionary of all properties from the entry number |
Version du 9 avril 2019 à 19:41
Mission Statement
Datapoints on named entities
- Birth year
- Life expectancy
- Add to entity page?
- Gender (maybe gender probability)
- Use name-gender bias
- Add to the entity page?
- Travel distance
- Solid angle encomposing all locations?
- Shortest path distance summed between locations specified in chronological order?
- Correlate location data with actual points in google maps?
- Profession
- Where can this information be retrieved?
- Relation score between two entities
- Using life time span, location overlap, referenced pages
Analysis
- Birth year distribution of the Wikipast database
- life expectancy of members in Wikipast
- Life expectancy at birth from Wikipast data
- Travel radius as function of Birth year
- Mean degrees of seperation between entities of Wikipast
Technicalities
Should the datapoints be stored in a page here on wikipast to be read from for analytics, or should it be kept in a local file? Should a biometrics section be added to the pages in order to store this gender data and other parameters?
Work Plan
Get Naissance from page
- Argument (page_name), Returns (Name, birthplace, birth day , month, year) use 0 if not present
- Load up the page of the entity
- Get "Naissance" event date (use first hyperword for name)
- Return error code if the naissance event does not follow the correct syntaxe
Exists entry page_name
- Arguments(page_name), returns (true or false)
Database write
- Arguments (page_name , dictionary('parameter', value)), Returns (success or failure)
- Columns for each variable name
- Check if the entry for page_name already exists and overwrite it
Database Load column
- Arguments (Column name list), Returns nd list consisting of all the data in the order specified in column name list argument
Database Read entry
- Arguments (page_name), returns dictionary of all properties from the entry number
Page Write
In Statbot section of the entity page
- Arguments(page_name, property:value)
- Check if existing and modify
- If section as a whole does not exist then create it