Phase 2: XQuery analytics (aggregation, top-holdings, look-through) - #2
Merged
Merged
Conversation
XQuery_Examples/: aggregate-by-assettype, top-holdings (external var n), fund-summary (version-agnostic + reconciliation), look-through (fund-of-funds readiness). Position<->Asset joined by UniqueID; no XML namespace so they run unchanged on 4.2.9/4.1.0/4.0.0. invocation/: Saxon CLI (run-xquery.sh) and native Java s9api (RunXQuery.java) verified; Python saxonche reference; BaseX documented. README documents Saxon Query's bare name=value external-variable syntax. CI: added an XQuery smoke step (all four queries run, output well-formed, Holding count asserted). Top-level index updated. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This was referenced May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 2 of the enterprise FundsXML showcase. Builds on Phase 1 (PR #1, merged). One commit on top of
main.Added
XQuery_Examples/— XQuery 3.1, all verified locally with Saxon-HE:aggregate-by-assettype.xq— exposure grouped by AssetType (Position↔Asset joined by UniqueID) + grand-total reconciliationtop-holdings.xq— N largest holdings, names resolved; external variablenfund-summary.xq— fund/doc overview + reconciliation; version-agnostic (handles 4.0.0 having noVersion)look-through.xq— fund-of-funds look-through readiness (flagsSCpositions + weights)invocation/— Saxon CLI and native Java s9api (both verified); Pythonsaxonchereference; BaseX documented. README notes SaxonQuery's barename=valueexternal-variable syntax.Holdingcount asserted). Top-level index row → ✅.No XML namespace in FundsXML 4.x → queries run unchanged on 4.2.9 / 4.1.0 / 4.0.0.
Roadmap remaining: Phase 3 XML signature (Apache Santuario) · 4 DB integration · 5 large-file/stream · 6 data binding/JSON.
🤖 Generated with Claude Code