lcnetdev/marc2bibframe2 — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a MARCXML to BIBFRAME 2.0 converter based on this repo.

I want to be able to give it a MARCXML record or collection and get back RDF/XML using the BIBFRAME and MADS RDF vocabularies. It should support the normal conversion stylesheet, and also the optional preprocessing step that splits a MARC record into multiple records for different Instances of the same Work.

Please make it usable from the command line with a simple example command, and let me pass options like the base URI, the record ID field, the identifier source, local Library of Congress handling, BCP47 script inference, and generation date. The default output can just be RDF/XML.

Also include the configuration files for language and subject mappings, keep the existing test approach with XSpec, and make sure there are sample MARCXML files and expected outputs so I can verify it works. If you need details about current BIBFRAME or MARCXML behavior, look up the Library of Congress docs online.

Want more depth? Deep Reverse