Introduction
OpenStax Notes and Highlighting is a feature in the OpenStax reading experience (REX) where a user can log-in and make highlights and take notes for any of OpenStax's textbooks on the website.
What can be found in the Notes and Highlights data?
Do we need further description here or will schema suffice?
How to query Notes and Highlights data
Larissa has no idea.
References
Known Working Code Examples
Connect to the Highlights RDS instance and return simple known clean information (number of rows, etc.).
Click me to see the sample R snippet
Technical Data Docs Index
Schema
curator_scopes
| Field | Type | Defaults | Description |
|---|
| id | uuid | -> { "gen_random_uuid()" } | |
| curator_id | uuid | | |
| scope_id | uuid | | |
highlights
| Field | Type | Defaults | Description |
|---|
| id | uuid | -> { "gen_random_uuid()" } | |
| user_id | uuid | | |
| source_type | integer | 0 | |
| source_id | string | | |
| source_metadata | jsonb | | |
| anchor | text | | |
| highlighted_content | text | | |
| annotation | text | | |
| color | string | | |
| location_strategies | jsonb | | |
| created_at | datetime | | |
| updated_at | datetime | | |
| scope_id | string | | |
| order_in_source | float | | |
| prev_highlight_id | uuid | | |
| next_highlight_id | uuid | | |
| content_path | integer | | |
precalculusteds
| Field | Type | Defaults | Description |
|---|
| data_type | string | info | |
| data | json | | |
user_sources
| Field | Type | Defaults | Description |
|---|
| id | uuid | -> { "gen_random_uuid()" } | |
| user_id | uuid | | |
| source_id | string | | |
| source_type | string | | |
| num_highlights | integer | 0 | |
users
| Field | Type | Defaults | Description |
|---|
| id | uuid | -> { "gen_random_uuid()" } | |
| num_annotation_characters | integer | 0 | |
| num_highlights | integer | 0 | |