Commit e539856
Restructure example notebooks and add cross-table merge support (#45)
* Restructure example notebooks and add cross-table merge support
Split the monolithic examples/vowl_usage_patterns_demo.ipynb (91 cells) into
three focused, self-contained notebooks under their own folders:
- 1_core_tutorial/ setup, running a validation, understanding results
- 2_multiple_sources/ validating one contract across multiple sources
- 3_real_databases/ server-side validation with Testcontainers
Each notebook resolves the shared dataset paths on its own (repo-root walk-up),
imports what it needs, and writes generated artifacts to a local outputs/ folder.
Section numbering/titles are scoped per notebook, and doc links in README.md and
docs/usage-patterns.md are updated to the new paths.
Also lands the cross-table-merge annotated-output work: a subquery-projected
referential check now merges onto its anchor table instead of becoming a residue
(src/vowl/validation/result.py), with expanded tests and expected outputs.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Fix markdown formatting to satisfy prettier lint
Apply `prettier --write` to the three files the lint CI job flagged:
table column-padding and `*emphasis*` → `_emphasis_` normalization.
No content changes.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Deprecate consolidated failed-rows output in favour of annotated output
Mark get_consolidated_output_dfs() and output_mode="failed_rows"/"both"
as deprecated, steering users to get_annotated_output() / output_mode="annotated".
- get_consolidated_output_dfs() now emits a DeprecationWarning and delegates
to a private _get_consolidated_output_dfs() so internal callers (save() in
failed_rows/both mode) reuse the grouping without warning.
- save() warns on the deprecated paths: implicit default (upcoming flip to
"annotated"), explicit "failed_rows", and the failed-rows half of "both".
"annotated" stays silent. All warnings use stacklevel=2.
- ValidationConfig.output_mode docstring notes the default will change.
- Tests assert the warnings fire and that the private helper stays silent;
internal/golden callers switched to the private helper.
- CHANGELOG Deprecated entry; README/getting-started/known-issues updated.
- Notebook TOC anchor-link fixes.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Split core tutorial into basic + advanced usage notebooks
Rename 1_core_tutorial/core_tutorial.ipynb to
1_basic_tutorial/basic_tutorial.ipynb and move the two denser sections
(Explicitly Defined Adapter incl. PooledAdapter, and Filtering Rows
Before Validation) into a new 4_advanced_usage/advanced_usage.ipynb so
the basic tutorial stays focused on the everyday workflow.
- Renumber the basic tutorial sections and fix its Contents/anchors
- Link the "cross-table check that merges" note out to known-issues
instead of duplicating the mechanics
- Update cross-references in README, docs, examples/README, and the
multiple-sources / real-databases notebooks
- Replace non-ASCII typographic symbols (em-dashes, arrows, ellipses)
with ASCII equivalents in both notebooks
- Re-execute both notebooks top-to-bottom so outputs and execution
counts are consistent
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Tighten annotated-output prose in known-issues
Clarify which non-mergeable checks produce residues vs. appear only in
summary.json, and replace em-dash asides with plainer punctuation.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Regenerate example outputs from a clean re-run
Delete and regenerate the outputs/ artifacts for the basic tutorial and
multiple-sources notebooks so nothing is stale. Re-executing both
notebooks top-to-bottom also removes an orphaned join-output CSV that
the current multi-source run no longer produces.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Drop deprecated consolidated-output section from basic tutorial
Remove the "Consolidated Failed Rows (per table)" section, which
demonstrates the deprecated get_consolidated_output_dfs() accessor.
The annotated output is now the recommended per-table view. Re-execute
the notebook so execution counts stay contiguous.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Drop deprecated get_consolidated_output_dfs from README reference
Remove the get_consolidated_output_dfs() row from the ValidationResult
method table and trim it from the save() deprecation note, matching its
removal from the basic tutorial. The docs (getting-started, known-issues)
keep their deprecation notices for users still on the legacy accessor.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6dec980 commit e539856
51 files changed
Lines changed: 7287 additions & 6346 deletions
File tree
- docs
- examples
- 1_basic_tutorial
- outputs
- 2_multiple_sources
- outputs
- 3_real_databases
- 4_advanced_usage
- src/vowl
- validation
- tests
- employee
- expected_outputs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
497 | | - | |
498 | 497 | | |
499 | 498 | | |
500 | 499 | | |
| |||
505 | 504 | | |
506 | 505 | | |
507 | 506 | | |
508 | | - | |
| 507 | + | |
509 | 508 | | |
510 | 509 | | |
511 | 510 | | |
| |||
568 | 567 | | |
569 | 568 | | |
570 | 569 | | |
571 | | - | |
| 570 | + | |
572 | 571 | | |
573 | 572 | | |
574 | 573 | | |
| |||
604 | 603 | | |
605 | 604 | | |
606 | 605 | | |
607 | | - | |
| 606 | + | |
608 | 607 | | |
609 | 608 | | |
610 | 609 | | |
| |||
619 | 618 | | |
620 | 619 | | |
621 | 620 | | |
| 621 | + | |
| 622 | + | |
622 | 623 | | |
623 | 624 | | |
624 | 625 | | |
| |||
700 | 701 | | |
701 | 702 | | |
702 | 703 | | |
703 | | - | |
| 704 | + | |
704 | 705 | | |
705 | 706 | | |
706 | 707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
0 commit comments