Sample code for extracting, transforming, and loading IA metadata into BaseX
✓ Published0🌍 Public
CCliffordAnderson
Last edited Nov 4, 2016
Created on Oct 20, 2016
This example demonstrates an XQuery 3.1 pipeline for harvesting Open Library search results and persisting them as structured XML in a BaseX database. It first fetches JSON via `fetch:text` and parses it with `json:parse`, then converts each record into a canonical `book` element with attributes for key and full-text availability, and child elements for title, authors, dates, publishers, and subjects. Subsequent scripts extend the process to paginate through large result sets, and a final query retrieves full book texts from the Internet Archive, storing them alongside the metadata.
AI-generated description