Full documentation for the DSL is in draft at Metadata Mapping DSL.
Exploring a mapping on a particular record
You can use the following steps if you are working on a mapping and have an original record that serves as a good example of the type of record you are trying to map.
Code Block | ||
---|---|---|
| ||
rec = Krikri::OriginalRecord.load('acf297689ae9fa3183663709e94a0e2a');
mapped_records = Krikri::Mapper.map(:nara_json, rec) # Specify the mapper that's relevant
agg = mapped_records.first
puts agg.dump(:ttl) |