generating a file containing Bioimages and Morphbank identifiers
✓ Published0🌍 Public
CCliffordAnderson
Last edited Dec 1, 2015
Created on Dec 1, 2015
This example shows how to retrieve recent image records from the Morphbank biodiversity database for the Bioimages group, then write a CSV file linking each external identifier to a Morphbank URL. It uses the Morphbank REST API via `fn:doc` to fetch XML data, then extracts `sourceId` elements with XPath. Two XQuery scripts generate the same output: one writes lines with `file:write` and an explicit item separator, while the other appends newline characters manually. The code relies on standard XQuery 3.0 functions, not external visualization libraries.
AI-generated description