Skip to content

amagimedia/metadata

This branch is 33 commits behind main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7922201 · Feb 14, 2025
Jan 17, 2025
Jan 17, 2025
Sep 10, 2024
Dec 6, 2023
Nov 20, 2024
Nov 26, 2024
Jul 10, 2024
Apr 18, 2023
Feb 14, 2025
Sep 13, 2024
Jul 16, 2024
Sep 18, 2024
Sep 18, 2024
Sep 18, 2024

Repository files navigation

Metadata

Repository to capture all schemas for metadata representation.

Tools to be installed

mkdocs

Steps to install mkdocs

pip3 install -r requirements.txt

GithubIO deploy

mkdocs gh-deploy

Protege View Ontology

  • Open Protege
  • File -> Open .../ebucore/amagi_ebucoreExtension.ttl

Conversion from ttl to XML/RDF

To convert run the following command

riot --out=RDF/XML amagi_ebucoreExtension.ttl > amagi_ebucoreExtension.rdf

Note:- riot is a command line tool that comes with Jena. You can download Jena from here

Generation of CSV from skos

cd tools
python genre_skos_to_json_csv.py csv
python ratings_skos_tojson_csv.py csv

# Copy the generated csv files to docs folder

Steps for updating skos

  • All skos changes should be done manually in the turtle skos files with suffix _amgext.ttl
  • Once the changes are done use riot cli to create the xml serialization of the skos. E.g. riot --out=RDF/xml ./skos/ebu_ParentalGuidanceCodeCS_amgext.ttl > ./skos/ebu_ParentalGuidanceCodeCS_amgext.rdf
  • Generate the csv files using the python script genre_skos_to_json_csv.py and ratings_skos_tojson_csv.py in the tools folder. E.g. python genre_skos_to_json_csv.py csv
  • All above changes should be committed and reviewed before merging to main branch.

List omissions in amgrss_master.xml

$ cd .../metadata
$ ./scripts/report_masterxml_omissions.sh -h
$ ./scripts/report_masterxml_omissions.sh

References:

  1. Jena CLI tools