Skip to content

Conversation

@o-muzyka
Copy link

@o-muzyka o-muzyka commented Oct 17, 2025

Description

Introduces AdaptiveGraph to centralize SAMM version management, with automated detection, namespace validation, and CLI‑driven upgrades that eliminate version mismatches across the codebase.

  • Core: Added adaptive_graph.py with AdaptiveGraph (wraps rdflib.Graph, auto-detects SAMM version, validates, upgrades via SAMM CLI prettyprint).
  • Validation: Added a _validate_samm_namespace_version method to SAMMGraph that checks RDF graph namespaces for SAMM version consistency and raises a ValueError if a mismatch is detected.
  • CI: Updated workflow to install and run download-samm-cli for automated upgrades in builds/tests.
  • Tests: unit + integration

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

@o-muzyka o-muzyka force-pushed the feature/check-samm-version branch 7 times, most recently from 2d2bee1 to 8f2eea9 Compare October 23, 2025 22:02
@o-muzyka o-muzyka force-pushed the feature/check-samm-version branch 6 times, most recently from 5e310da to 73494a9 Compare October 29, 2025 20:39
@o-muzyka o-muzyka marked this pull request as ready for review October 29, 2025 20:54
@o-muzyka o-muzyka changed the title Add SAMM version validation to SAMMGraph load_aspect_model Auto‑Detect, Validate & Upgrade SAMM files via CLI prettyprint Oct 30, 2025
@o-muzyka o-muzyka changed the title Auto‑Detect, Validate & Upgrade SAMM files via CLI prettyprint Detect, Validate & Upgrade SAMM files via CLI prettyprint Oct 30, 2025
- Refactor SAMM CLI path retrieval for cross-platform compatibility
- Enhance SAMM CLI functions with capture output option and update tests
- Add archive extraction functionality to download_samm_cli
- Add SAMM CLI installation and native dependencies to CI workflow
- Refactor resource path in test_cli_functions to improve clarity and maintainability
- Stop running tests after the first failure
- Upgrade JAVA_CLI_VERSION from 2.10.2 to 2.11.1
@o-muzyka o-muzyka force-pushed the feature/check-samm-version branch from 73494a9 to 286a277 Compare October 30, 2025 01:08
@o-muzyka o-muzyka force-pushed the feature/check-samm-version branch from 286a277 to 469339d Compare October 30, 2025 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant