Experimental (i.e. in flux, and lacking in many places) Rust crate for reading/writing CMDI metadata. Cover two CMDI v1.1 profiles used in MPI Nijmegen's FLAT archiving software:
- FLAT Collection, a.k.a.
lat-corpus
.- Profile
clarin.eu:cr1:p_1407745712064
- Schema
- Profile
- FLAT Bundle, a.k.a.
lat-session
:- Profile
clarin.eu:cr1:p_1407745712035
- Schema
- Profile
Usage (not yet on crates.io):
Cargo.toml
:
[dependencies]
cmdi-lat = {git = "https://github.com/jenslar/cmdi_lat.git"}
src/main.rs
:
use std::path::Path;
use cmdi_lat::Cmd;
fn main() -> std::io::Result<()> {
let path = Path::new("MYCMDI.cmdi");
let cmd = Cmd::deserialize(&path)?;
println!("{cmd:#?}");
Ok(())
}