Skip to main content
100%

Gist 162dbae87c5cab9f59fd433e235bafb2

✓ Published0🌍 Public
CCliffordAnderson
Last edited Sep 27, 2019
Created on Sep 27, 2019

This example demonstrates how to extract and collate poems from the Victorian Women Writers Project, a corpus of TEI P5-encoded texts. It shows the process of filtering documents by genre, retrieving individual poems, and normalizing their text. The code uses XQuery 3.1 with the BaseX database and its `fn:collection`, `fn:doc`, and `fn:normalize-space` functions. It outputs the results as CSV using BaseX's serialization options, specifying comma separators and headers, while converting poem text to lowercase.

AI-generated description

Similar vizzes