OpenPecha / Requests

RFWs and RFCs for all OpenPecha repositories
0 stars 0 forks source link

[RFC0011] OpenPecha Catalog on Database #23

Open 10zinten opened 2 years ago

10zinten commented 2 years ago

Table of Contents

Housekeeping

Please add ref in specified format into RFC title, e.g [RFC9999] if corresponding RFW is [RFW9999].

Please add into this RFC and related PR's titles [RFC_id] e.g [RFC_9999].

ALL BELOW FIELDS ARE REQUIRED

Named Concepts

Summary

Current OpenPecha's catalog is in this csv file. To make our catalog more robust to enable data integrity and search functionality, we need to store it database.

Reference-Level Explanation

Architecture ture Diagram

OpenPecha Catalog Service excalidraw

ER Diagram

erDiagram
    Pecha {
        string id "Pecha ID"
        string lagacy_id "Old Pecha ID"
        string default_language
        string source "Source of etext"
        string initial_creation_type
        string imported "Imported datetime"
        string last_modified "last modified datatime"
        string source_metadata "source metadata in JSON"
        string licence
        int work_id
        int collection_id
    }

    Work {
        string id
        string title
        string author
    }

    Collection {
        string id
        string title
        string author
    }

    Alignment {
        string id
        string created
    }

    Work ||--|{ Pecha: has
    Collection ||--|{ Pecha: has
    Alignment ||--|{ Pecha: has

Alternatives

csv file:

Rationale

csv file:

Drawbacks

Useful References

https://github.com/OpenPecha-Data/catalog

Unresolved Questions

  • What is there that is unresolved (and will be resolved as part of fulfilling this request)?
  • Are there other requests with same or similar problems to solve?

Parts of the System Affected

Future possibilities

Infrastructure

Testing

Describe the kind of testing procedures that are needed as part of fulfilling this request.

Documentation

Describe the level of documentation fulfilling this request involves. Consider both end-user documentation and developer documentation.

Version History

History of changes to this RFC. Following semantic versioning pattern and v0.1.2 for style.

Recordings

Links to audio recordings of related discussion.

Work Phases

Non-Coding

Keep original naming and structure, and keep as first section in Work phases section

Implementation

A list of checkboxes, one per PR. Each PR should have a descriptive name that clearly illustrates what the work phase is about.

ngawangtrinley commented 1 year ago

@ngawangtrinley review this!

ngawangtrinley commented 1 year ago

Elies' comment:

I think we also need to add more fields to the catalog csv (namely software and batch when relevant)