Domain Model

This section introduces the main domain objects present in the PYBOSSA system (see the RESTful API section for details about how you can access some of the objects using the API).

Overview

PYBOSSA has 5 main domain objects:

  • Project: the overall Project (formerly named Application) to which Tasks are associated.
    • HasMany: Tasks
    • HasA: Category
  • Task: an individual Task which can be performed by a user. A Task is associated to a project.
    • HasA: Project
    • HasMany: TaskRuns
  • TaskRun: the results of a specific User performing a specific task
    • HasA: Task
    • HasA: User
  • User: a user account
  • Category: a project category

There are some attributes common across most of the domain objects notably:

  • create_time: the Datetime (as an integer) when object was created.
  • info: a ‘blob-style’ attribute into which one can store arbitrary JSON. This attribute is use to any additional information one wants (e.g. Task configuration or Task results on TaskRun)

The following excerpts directly from the PYBOSSA source to provide documentation of main model attributes.

Project

Category

Task

TaskRun

User