This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note: this is all pseudocode to mock up a DSL at this point. | |
# THIS IS A VERY INCOMPLETE EXAMPLE; much work to do for mods. | |
bpl_mods_mapper = Krikri::Mapper.new | |
bpl_mods_mapper.build do | |
input_format :xml # :json, :csv, :tsv others? | |
selector type: :xpath, "//record" | |
# select an XPath relative to `selector` as the default parent for mappings |