Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New CLI tool & Relational metadata model #23

Merged
merged 10 commits into from
Apr 11, 2024
Merged

New CLI tool & Relational metadata model #23

merged 10 commits into from
Apr 11, 2024

Conversation

YourMJK
Copy link
Owner

@YourMJK YourMJK commented Apr 11, 2024

New CLI tool dreimetadaten

… with subcommands:

  • migrate: Migrate previous JSON dataset to new relational database.
  • export: Export dataset into various (more convenient) formats.
    • web: Export dataset for the web data directory.
  • webbuild: Generate HTML code for the web page using a template file.

Replaces previous tools D3F-MetadataExporter, D3F-WebGenerator (and its companion script webBuild.sh) which are moved into code/_legacy/.

Relational metadata model

A new relational model (MetadataObjectModel.swift) which aims to properly capture all the correct data, attributions and relationships without redundancies in preparation for – and with a direct mapping to – a proper SQL database (#14).

Incomplete list of notable changes:

  • Table for "person"
  • Attributions for "autor", "hörspielskriptautor", "sprecher", "pseudonym" and "rolle" by ID (not string) with N:M relations for former three (i.e. referencing multiple "person" is possible)
  • Table for "medium" (CD) and not using "teile" for media that doesn't narratively partition a "hörspiel" anymore.
  • A "hörspiel" is strictly made up of "kapitel" which reference a single "track" on a "medium"

@YourMJK YourMJK added the Erweiterung Neues Feature oder Wunsch label Apr 11, 2024
@YourMJK YourMJK added this to the v2.0 milestone Apr 11, 2024
@YourMJK YourMJK self-assigned this Apr 11, 2024
@YourMJK YourMJK merged commit db6da8a into v2.0 Apr 11, 2024
@YourMJK YourMJK deleted the new-cli branch April 12, 2024 23:24
@YourMJK YourMJK mentioned this pull request Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Erweiterung Neues Feature oder Wunsch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant