This repository contains tools which enable better usage of CCMM.
While the internal structure of each tool may vary to accommodate specific requirements, they generally follow this convention:
scripts/: Source code and execution logic.output/: Destination for generated files and results.
An utility to normalize and merge multiple CCMM XSD files into one flattened schema. Once the merging script finishes, the workflow performs an integration test by validating CCMM XML samples against the generated XSD.
- Automation: This tool is triggered whenever the XSD schemas in the techlib/CCMM repository are updated.
- Credits: Special thanks to ccmm-invenio for the merge_schemas.py` script!
An utility to visualize CCMM XSD structures where mandatory parts are in bold.
- Automation: This tool is triggered if the visualization script is modified or if the flattened schema in flattenCCMM changes.
An utility transforming xml metadata conformant to the dataset/schema.xsd to the RDF representation using dataset/lifting.xslt. On the input there is xml metadata file, a repository and branch and on the output are serialized Turtle, XML/RDF and JSON-LD corresponding to the JSON-LD context given by the branch.
Utility also contains the script comparing generated files as a basic ground graph triples, blank nodes and full RDF canonicalization. This checks whether the graph behind specific serializations is the same.
| Tool | Primary Function | Run Trigger |
|---|---|---|
| flattenCCMM | Merges multiple XSDs into one. | Changes in techlib/CCMM XSDs. |
| ceCCMM | Visualizes schema requirements. | Changes to visualization scripts OR the flattened schema. |