Skip to content

update: - #209

Merged
harshith-d merged 2 commits into
mainfrom
aa-rating
Jul 14, 2026
Merged

update: #209
harshith-d merged 2 commits into
mainfrom
aa-rating

Conversation

@anirudhrka

@anirudhrka anirudhrka commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Introduction of default ebucore codes for ratings:
parentalguidance:_0 -> 0.1, 0.2, 0.3

Rating vocabulary update report: No ratings present in https://amagimedia.github.io/metadata/ratings.html were absent in rdf/ttl.

{
  "rule_1_added": {
    "description": "rating_labels in ratings.csv missing from the TTL file",
    "count": 0,
    "entries": []
  },
  "rule_2_updated": {
    "description": "rating_id present in both files but prefLabel mismatch — updated TTL to match CSV",
    "count": 1,
    "entries": [
      {
        "rating_id": "31.1.2",
        "rating_body": "JA-CERO",
        "csv_label": "B",
        "ttl_en_label_was": "Green",
        "ttl_en_label_now": "B",
        "action": "Changed duplicate @en prefLabel 'Green' to skos:altLabel; primary @en prefLabel 'B' retained",
        "note": "The TTL had two @en prefLabel triples ('B' and 'Green') for the same concept — an RDF violation. 'Green' moved to altLabel as it's the colour description, not the rating code."
      }
    ]
  },
  "rule_3_preserved": {
    "description": "Entries present in TTL but not in ratings.csv — left untouched",
    "count": 198,
    "note": "198 leaf concepts exist in the TTL (e.g. AU-ACMA criteria nodes 4.2.x, HK-HKBA criteria nodes 16.2.x, extended ES/CA/BR sub-ratings, etc.) that have no corresponding row in ratings.csv and were not modified."
  }
}

https://amagiengg.atlassian.net/browse/AN30-21769

https://amagiengg.atlassian.net/wiki/spaces/MI/pages/5365563394/Preserve+Ratings+on+no+Fuzzy+Match+and+Raise+Metadata+Errors

…skos:prefLabel — both B@en and Green@en. Since CSV says the label is B, the Green@en entry was demoted to skos:altLabel, making B the sole @en prefLabel.
@anirudhrka
anirudhrka requested a review from harshith-d July 14, 2026 09:44
@harshith-d
harshith-d merged commit d695993 into main Jul 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants