7.8 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
- Media Contributor: A person, group, or organization that contributed to a media item, together with the role they played
- Direct Play: Delivery of a track's audio as stored, because the player can demux its container and decode its codec
- Remux: Delivery of a track's audio with its codec repackaged into a container the player can demux, without re-encoding it
- Transcode: Delivery of a track's audio re-encoded into a codec the player can decode
- Playback Capabilities: The container and codec combinations a player advertises it can demux and decode directly
- Delivery Shape: The way delivered audio is addressed and seeked, by byte range or as fixed duration, time addressed segments
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
- Track: An individual music track, the smallest unit of music in a music library (the entity is named Track, not Song)
- Album: A release that gathers the tracks of an artist
- Artist: The creator of music content, the root of the music library aggregate
- MusicReleaseType: The set of content types a music release can carry, like Album, Single, Ep, Compilation, AudioBook, Interview, Live, Remix, Soundtrack or SpokenWord
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
- Track
- Album
- Artist
- Podcast
- PodcastEpisode
- Book
- BookSeries
- ComicBook
- ComicSeries
- Magazine
- MagazineIssue
- Newspaper
- Manga
- GraphicNovel
- AcademicPaper
- SheetMusic
- Photo
- PhotoAlbum
- User
- Playlist
- Collection
- SubtitleFile
- Lyrics
- AlbumArtwork
- MoviePoster
- Screenplay
- File
- Stream
- LanguageTrack
- MediaContributor
Aggregates
-
VideoLibrary (root: VideoLibrary, entities: TVShow, Season, Episode, Movie, FilmSeries, ConcertVideo, Documentary, TutorialVideo, HomeVideo, Anime, YouTubeVideo, MusicVideo)
-
MusicLibrary (root: Artist, entities: Album, Track)
-
PodcastLibrary (root: PodcastLibrary, entities: Podcast, PodcastEpisode)
-
WrittenContentLibrary (root: WrittenContentLibrary, entities: Book, EBook, BookSeries, ComicBook, ComicSeries, Magazine, MagazineIssue, Newspaper, 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)
-
FileSystemManagement (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, Newspaper
- 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 (abstract)
- AudioRating
- Genre
- Mood
- ReleaseInfo
- LanguageInfo
- AlbumMetadata
- MusicMediaContributor
- MusicBrainzId
- MusicArea
- MusicArtistAlias
- MusicWork
- Isrc
- Barcode
Domain Services
- Music Library Type Scanner
- Music File System Discovery Job
- Music Metadata Extraction Job
- 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, MusicLibrary, PodcastLibrary, WrittenContentLibrary, PhotoLibrary
- Services: Music Library Type Scanner, Music File System Discovery Job, Music Metadata Extraction Job
- UserExperience
- Aggregates: UserProfile
- Services: RecommendationEngine, ContentCurationService, UserActivityTrackingService
- ContentDelivery
- Aggregates: FileSystemManagement
- Services: StreamingService, ContentSynchronizationService
- MetadataManagement
- Aggregates: SupplementaryContentLibrary
- Services: LyricsMatchingService, ArtworkManagementService
Repositories
- VideoRepository
- AudioRepository
- PodcastRepository
- WrittenContentRepository
- PhotoRepository
- UserRepository
- PlaylistRepository
- CollectionRepository
- FileRepository
- StreamRepository