Query across collections in ExistDB
✓ Published0🌍 Public
CCliffordAnderson
Last edited Dec 22, 2013
Created on Dec 22, 2013
This example shows how a single XQuery query can aggregate and expose metadata from multiple Shakespearean text collections stored in an eXist-db database. The query uses the `fn:collection()` function to traverse the `db/shakespeare` path, selecting all `tei:seriesStmt` elements from the TEI namespace, which describe series-level publication information. The visualization renders the resulting XML as a structured graph, with nodes and edges built from the query output using D3.js’s `d3.forceSimulation` for layout. The concrete approach relies on eXist-db’s native XQuery engine to fetch and return the TEI data, which is then parsed and bound to visual elements, demonstrating a direct pipeline from database query to interactive graphic.
AI-generated description