Files
Nemera/docs/technical/UbiquitousLanguage.md
T

7.2 KiB

Ubiquitous Language

General Concepts

  • Media Library: The overall collection of various media types
  • Metadata: Information describing a media item
  • User: A person who interacts with the media library
  • Playlist: A curated list of media items, potentially cross-media-type
  • Tag: A label for categorizing and organizing media items
  • Collection: A user-defined group of any media items
  • File: The actual digital file of a media item
  • Stream: A media item accessed via streaming rather than local storage
  • Language Track: An audio or text track in a specific language

Video Content

  • TV Show: A series of episodes typically organized into seasons
  • Season: A grouping of episodes within a TV show
  • Episode: An individual installment of a TV show
  • Movie: A standalone film
  • Film Series: A collection of related movies (e.g., The Lord of the Rings trilogy)
  • Film Franchise: A broader collection of related movies (e.g., James Bond films)
  • Concert Video: Recording of a live music performance
  • Documentary: Non-fiction film or series
  • Tutorial/Instructional Video: Educational content
  • Home Video: Personal recordings
  • Anime: Japanese animation, which may have different categorization needs
  • YouTube Video: A video hosted on YouTube, with its own metadata structure
  • Music Video: A video representation of a song

Audio Content

  • Song: An individual music track
  • Album: A collection of songs
  • Artist: The creator of music content
  • Audiobook: A narrated version of a book
  • Live Recording: Audio or video of a live performance
  • Interview: Audio or video recording of a conversation
  • Cover Song: A rendition of a song performed by an artist other than the original
  • Remix: A modified version of an original song
  • Sound Effect: A short audio clip used for specific purposes
  • Podcast: A series of audio episodes
  • Podcast Episode: An individual installment of a podcast

Written Content

  • Book: A standalone written work
  • E-book: A digital version of a book
  • Book Series: A collection of related books
  • Comic Book: A single issue of a comic
  • Comic Series: A collection of related comic books
  • Magazine: A periodical publication
  • Magazine Issue: A single edition of a magazine
  • Manga: Japanese comics with specific formatting and reading direction
  • Graphic Novel: Long-form comic book
  • Academic Paper: Scholarly article
  • Sheet Music: Musical notation for songs

Visual Content

  • Photo: An individual image
  • Photo Album: A collection of related photos

Miscellaneous Media

  • Subtitle File: Text file synchronized with video content
  • Lyrics: Text of a song, potentially time-synced
  • Album Artwork: Visual representation of an album
  • Movie Poster: Promotional image for a film
  • Screenplay: Script for a film or TV show

Entities

  • TVShow
  • Season
  • Episode
  • Movie
  • FilmSeries
  • ConcertVideo
  • Documentary
  • TutorialVideo
  • HomeVideo
  • Anime
  • YouTubeVideo
  • MusicVideo
  • Song
  • Album
  • Artist
  • Audiobook
  • LiveRecording
  • Interview
  • CoverSong
  • Remix
  • SoundEffect
  • Podcast
  • PodcastEpisode
  • Book
  • BookSeries
  • ComicBook
  • ComicSeries
  • Magazine
  • MagazineIssue
  • Manga
  • GraphicNovel
  • AcademicPaper
  • SheetMusic
  • Photo
  • PhotoAlbum
  • User
  • Playlist
  • Collection
  • SubtitleFile
  • Lyrics
  • AlbumArtwork
  • MoviePoster
  • Screenplay
  • File
  • Stream
  • LanguageTrack

Aggregates

  • VideoLibrary (root: VideoLibrary, entities: TVShow, Season, Episode, Movie, FilmSeries, ConcertVideo, Documentary, TutorialVideo, HomeVideo, Anime, YouTubeVideo, MusicVideo)

  • AudioLibrary (root: AudioLibrary, entities: Song, Album, Artist, Audiobook, LiveRecording, Interview, CoverSong, Remix, SoundEffect)

  • PodcastLibrary (root: PodcastLibrary, entities: Podcast, PodcastEpisode)

  • WrittenContentLibrary (root: WrittenContentLibrary, entities: Book, BookSeries, ComicBook, ComicSeries, Magazine, MagazineIssue, Manga, GraphicNovel, AcademicPaper, SheetMusic, Screenplay)

  • PhotoLibrary (root: PhotoLibrary, entities: Photo, PhotoAlbum, AlbumArtwork, MoviePoster)

  • UserProfile (root: User, entities: Playlist, Collection)

  • SupplementaryContentLibrary (root: SupplementaryContentLibrary, entities: SubtitleFile, Lyrics, LanguageTrack)

  • FileManagement (root: File, entities: Stream)

  • WrittenContentLibrary

    • BookLibrary (root: BookLibrary)

      • Entities: Book, BookSeries
      • Value Objects: BookMetadata, SeriesInfo
    • ComicLibrary (root: ComicLibrary)

      • Entities: ComicBook, ComicSeries, Manga, GraphicNovel
      • Value Objects: ComicMetadata, SeriesInfo
    • PeriodicalLibrary (root: PeriodicalLibrary)

      • Entities: Magazine, MagazineIssue
      • Value Objects: PeriodicalMetadata, IssueInfo
    • AcademicLibrary (root: AcademicLibrary)

      • Entities: AcademicPaper
      • Value Objects: AcademicMetadata, CitationInfo
    • MiscWrittenContentLibrary (root: MiscWrittenContentLibrary)

      • Entities: SheetMusic, Screenplay
      • Value Objects: SheetMusicMetadata, ScreenplayMetadata

Value Objects

  • BaseMetadata
  • VideoMetadata
  • MovieMetadata
  • TVShowMetadata
  • DocumentaryMetadata
  • TutorialMetadata
  • AnimeMetadata
  • AudioMetadata
  • PodcastMetadata
  • AudiobookMetadata
  • LiveRecordingMetadata
  • InterviewMetadata
  • RemixInfo
  • BookMetadata
  • ComicMetadata
  • MagazineMetadata
  • MangaMetadata
  • AcademicMetadata
  • PhotoMetadata
  • SheetMusicInfo
  • SubtitleInfo
  • LyricsInfo
  • ArtworkInfo
  • FileInfo
  • StreamInfo
  • StreamingQuality
  • UserPreferences
  • Rating
  • Genre
  • ReleaseInfo
  • LanguageInfo

Domain Services

  • MediaScanner (with specialized scanners for each media type)
  • MetadataFetcher (with different strategies for various media types and sources)
  • TranscodingService
  • StreamingService
  • AudiobookPlaybackService
  • LiveContentManager
  • RemixDetectionService
  • AnimeCategorizationService
  • AcademicContentIndexer
  • LyricsMatchingService
  • ArtworkManagementService
  • SearchService
  • RecommendationEngine
  • FileManagementService
  • LanguageTrackManager
  • CrossMediaRelationshipManager
  • ContentCurationService
  • UserActivityTrackingService
  • ContentSynchronizationService

Domain Events

  • MediaItemAdded
  • MediaItemRemoved
  • PlaylistCreated
  • PlaylistUpdated
  • UserPreferencesChanged
  • MetadataUpdated
  • FileTranscoded
  • StreamStarted
  • StreamEnded

Bounded Contexts

  • MediaManagement
    • Aggregates: VideoLibrary, AudioLibrary, PodcastLibrary, WrittenContentLibrary, PhotoLibrary
    • Services: MediaScanner, MetadataFetcher, TranscodingService
  • UserExperience
    • Aggregates: UserProfile
    • Services: RecommendationEngine, ContentCurationService, UserActivityTrackingService
  • ContentDelivery
    • Aggregates: FileManagement
    • Services: StreamingService, ContentSynchronizationService
  • MetadataManagement
    • Aggregates: SupplementaryContentLibrary
    • Services: LyricsMatchingService, ArtworkManagementService

Repositories

  • VideoRepository
  • AudioRepository
  • PodcastRepository
  • WrittenContentRepository
  • PhotoRepository
  • UserRepository
  • PlaylistRepository
  • CollectionRepository
  • FileRepository
  • StreamRepository