lto-demo {stoRy} | R Documentation |
LTO demo data
Description
A family of datasets extracted from LTO v0.3.3, comprising 2872 LTO themes and 335 thematically annotated The Twilight Zone American media franchise stories.
Found in the data are thematic annotations for
156 The Twilight Zone (1959) television series episodes
3 Twilight Zone: The Movie (1983) film sub-stories
110 The Twilight Zone (1985) television series episodes
3 Twilight Zone: Rod Serling's Lost Classics (1994) film sub-stories
43 The Twilight Zone (2002) television series episodes
20 The Twilight Zone (2019) television series episodes
Format
The data consists of four tibble
class objects:
-
metadata_tbl
: atibble
of LTO demo data summary information with 7 rows and 2 columns:name: Metadatum name (e.g. version, encoding, etc.) value: Metadatum value (e.g. "demo", "UTF-8", etc.) -
themes_tbl
: atibble
of LTO demo data themes with 2872 rows (themes) and 11 columns:theme_index: Integer ID (unique) theme_name: Theme name (unique) description: Theme definition notes: Theme definition elaborations and caveats aliases: Theme name aliases template: Theme special cases parents: Parent themes ancestors: Ancestor themes examples: Example usages references: Reference URLs source: Path to file where theme is defined -
stories_tbl
: atibble
of LTO demo data stories with 335 rows (stories) and 10 columns:story_index: Integer ID (unique) story_id: Story ID (unique) title: Official title date: Release date description: Information used for identifying the story component_story_ids: Sub-story story IDs (used for frame stories) collections: Collection IDs of collections to which the story belongs references: Reference URLs themes: Thematic annotations source: Path to file where story is defined -
collections_tbl
: atibble
of LTO demo data collections with 5 rows (story collections) and 9 columns:collection_index: Integer ID (unique) collection_id: Collection ID (unique) title: The collection ID stripped of all colon separated prefixes date: Earliest and latest dates of stories in the collection description: Minimal information defining the collection component_story_ids: Story IDs of member stories of the collection references: Reference URLs themes: Collection level thematic annotations source: Path to file where collection is defined
Note
The data is stored internally in the package ‘R/sysdata.rda’ file and cannot be accessed directly. Check the examples below for more on how to best explore the data.
Source
Theme Ontology. (2021, October 31). LTO v0.3.3. https://github.com/theme-ontology/theming/releases/tag/v0.3.3
References
The Twilight Zone. (2021, July 25). In Wikipedia https://en.wikipedia.org/wiki/The_Twilight_Zone
Examples
# Print a copy of LTO demo version metadata to console:
set_lto("demo")
demo_metadata_tbl <- clone_active_metadata_tbl()
demo_metadata_tbl
# Print a copy of LTO demo themes to console:
set_lto("demo")
demo_themes_tbl <- clone_active_themes_tbl()
demo_themes_tbl
# Print a copy of LTO demo stories to console:
set_lto("demo")
demo_stories_tbl <- clone_active_stories_tbl()
demo_stories_tbl
# Print a copy of LTO demo collections to console:
set_lto("demo")
demo_collections_tbl <- clone_active_collections_tbl()
demo_collections_tbl
# Print collection IDs to console:
demo_collections_tbl$collection_id
# Print The Twilight Zone (2019) component story IDs to console:
library(dplyr)
collection_id <- "Collection: tvseries: The Twilight Zone (2019)"
demo_collections_tbl %>%
filter(collection_id %in% !!collection_id) %>%
pull(component_story_ids) %>%
unlist(use.names = FALSE)