From 4edb7998012bcc804482a76277cd25b90fb373c9 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sat, 1 Oct 2022 21:08:59 +1000 Subject: Update READMEs and .gitignore --- backend/hist_data/wikidata/README.md | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'backend/hist_data/wikidata/README.md') diff --git a/backend/hist_data/wikidata/README.md b/backend/hist_data/wikidata/README.md index 35dad34..d5b2c5e 100644 --- a/backend/hist_data/wikidata/README.md +++ b/backend/hist_data/wikidata/README.md @@ -6,23 +6,6 @@ This directory holds files obtained/derived from [Wikidata](https://www.wikidata Format info can be found at . # Other Files -- `gen_events_data.py`
- Used to generate a database holding event information from the dump. - `offsets.dat`
Holds bzip2 block offsets for the dump. Generated and used by - gen_events_data.py for parallel processing of the dump. -- `events.db`
- Generated by `gen_events_data.py`.
- Has one table `events`: - - Columns: `id INT, title TEXT, start INT, start_upper INT, end INT, end_upper INT, fmt INT, ctg TEXT` - - Contains a Wikidata ID, Wikipedia title, start and end dates, and an event category. - - If `start_upper` is not NULL, `start` and `start_upper` denote an uncertain range of start times. - And similarly for 'end' and 'end_upper'. - - `fmt` indicates format info for `start`, `start_upper`, `end`, and `end_upper`. - - If 1, they denote a Julian date (with 0.5 removed to align with midnight). - This allows simple comparison of events with day-level precision, but only goes back to 4713 BCE. - - If 2, same as 1, but dates are preferably displayed using the Gregorian calendar, not the Julian calendar. - For example, William Shakespeare's birth appears 'preferably Julian', but Samuel Johnson's does not. - - If 3, same as 1, but 'end' and 'end_upper' are 'preferably Gregorian'. - For example, Galileo Galilei's birth date appears 'preferably Julian', but his death date does not. - - If 0, they denote a number of years CE (if positive) or BCE (if negative). + `../gen_events_data.py` for parallel processing of the dump. -- cgit v1.2.3