Learn R Programming

stoRy (version 0.2.2)

lto-demo: 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

Arguments

Format

The data consists of four tibble class objects:

  1. metadata_tbl: a tibble 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.)
  2. themes_tbl: a tibble 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
  3. stories_tbl: a tibble 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
  4. collections_tbl: a tibble 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

References

The Twilight Zone. (2021, July 25). In Wikipedia https://en.wikipedia.org/wiki/The_Twilight_Zone

Examples

Run this code
# 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)

Run the code above in your browser using DataLab