The OAI input is converted to a JSON object in it's entirety. However, the integrity of the original XML records isn't guaranteed. If we use the raw handler, we can extract the XML records from the OAI enveloppe and deal with them separately:
catmandu convert OAI --url http://collections.britishart.yale.edu/oaicatmuseum/OAIHandler --handler raw
Which would also allow us to separate fetching records from parsing / transforming them to another format (json or yaml)
This issue is relevant for extracting LIDO data and sending it to another data sink.
The Catmandu-OAI module allows imports from an OAI endpoint like this:
The OAI input is converted to a JSON object in it's entirety. However, the integrity of the original XML records isn't guaranteed. If we use the raw handler, we can extract the XML records from the OAI enveloppe and deal with them separately:
Which would also allow us to separate fetching records from parsing / transforming them to another format (json or yaml)
This issue is relevant for extracting LIDO data and sending it to another data sink.