learner's database
July 11, 2023 · View on GitHub
learner's database
learner connects to a postgres/postgis database, named Africa.
Tables
The following are the names of primary tables in the order in which they appear in AfricaSandbox. There are a number of others appearing in the current version of the database that are not listed here, as these are development dross that are not used directly by learner.
Tables that are related to learner's functioning are indicated by an *.
-
assignment_data: Stores information on individual assignments completed by workers, including start and completion times, accuracy, HIT ids, etc.
-
assignment_history: Tracks assignments and details of related payments for each worker, which is used by assignment review interface that can be accessed by individual workers.
-
configuration: Parameters called on by a variety of
learner's processes. -
error_data: Contains scoring components output from
kml_accuracy, the accuracy assessment function that is invoked when learner's complete a quality (Q) assessment site. (Current table is in process of being replaced to reflect changes to scoring procedure). -
hit_data: Records information about HITs (human intelligence tasks), such as creation and deletion times. Note: A HIT is defined mapping task, which can be undertaken by one or more workers, whereas an assignment is an individual worker's mapping efforts for a given HIT.
-
incoming_names*: Table that is populated by
learner, which sends the names of new grid cells that need to be mapped by workers. -
kml_data: Records the names of grid cells that are queued up for HIT creation, including the type of HIT (Q, F, N, or I) and how many times the HIT created for that sites has been mapped.
-
kml_data_static: Contains the names of cells that serve as Q (quality control) and I (initial qualification) HITs. These are in a separate table to preserve them in order to populate the production database's kml_data, which is initially empty.
-
master_grid*: Contains the 0.005 reference grid covering Africa, including the unique name (two-letter country code plus country grid cell number), x and y coordinates of centroid, and (still being added) start and end months of the dry and wet seasons.
-
qaqcfields: Contains the reference geometries for Q sites, which are read in by
kml_accuracyto score a worker's maps. -
qual_error_data: Serves the same role as error_data, but for qualification (I) sites.
-
qual_user_maps: Stores the geometries created by workers during their initial qualification tests (I).
-
roles: Defines the specific roles of platform users.
-
scene_data*: Currently empty table designed to hold information (e.g. provider name, scene ID) about the satellite imagery that is referenced to each grid cell in master_grid (i.e. the imagery that
learnerwill classify and the learners will interpret). This should probably be combined with WMS_data (see below). -
spatial_ref_sys: A postgis table containing spatial references.
-
system_data: Tracks the current values of certain parameters that are dynamically updated by
learner, such as the gid of the most recently created Q HIT. -
user_invites: Records the details of invitations sent to join the platform.
-
user_maps: Geometries created by workers for F, N, and Q assignments. These are ultimately converted to the labels used to train
learner. -
users: Details of registered platform users.
-
user_roles: Cross-references user IDs with their roles.
-
worker_data: Tracks moving averages of workers' quality scores, which is used to assess bonus payments.