Skip to content

Add unit tests to validate / invalidate examples based on SHACL#68

Closed
mgrub wants to merge 2 commits into
mainfrom
add_unit_tests
Closed

Add unit tests to validate / invalidate examples based on SHACL#68
mgrub wants to merge 2 commits into
mainfrom
add_unit_tests

Conversation

@mgrub

@mgrub mgrub commented Jul 24, 2025

Copy link
Copy Markdown
Collaborator

This (draft) pull request adds the possibility to verify valid / falsify invalid individuals against provided SHACL constraints as part of the CI pipeline.

As of now, only constraints with regard to "si:PrefixedUnits" are provided, but this can be extended easily (without changes to the Python code).

The process is not fully automated and (as of now) the developer is required to check, if really every invalid example is actually invalidated. I will think about a way to automate this.

@mgrub mgrub self-assigned this Jul 24, 2025
@mgrub mgrub mentioned this pull request May 22, 2026
mgrub added a commit that referenced this pull request May 27, 2026
- merge multiple tests into one python file
- remove duplicate reasoner.py (and keep equivalent test_reasoner.py)
- rename unit_shacl.ttl to unit_definition_shacl.ttl
- redefine testing of resbod
- add additional tests for prefixed units as proposed in #68
@mgrub

mgrub commented May 29, 2026

Copy link
Copy Markdown
Collaborator Author

The core idea of this PR was implemented via #87 .

@mgrub mgrub closed this May 29, 2026
@mgrub mgrub deleted the add_unit_tests branch May 29, 2026 05:46
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