Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for --allow-levels #127

Merged
merged 2 commits into from
Mar 12, 2022

Conversation

ajnelson-nist
Copy link
Contributor

This patch series addresses Issue 126.

This test demonstrates the current implementation state fails.
A follow-on patch will correct the issue.

References:
* RDFLib#126
* The general style of this test was adapted from
  `/test/issues/test_96.py`.

Signed-off-by: Alex Nelson <[email protected]>
This lets `allow_infos` to influence the `all_warn` variable
appropriately.  With this patch, the new `test_126.py` now passes.

References:
* RDFLib#126

Signed-off-by: Alex Nelson <[email protected]>
@ajnelson-nist
Copy link
Contributor Author

@ashleysommer : This patch series should settle the accidentally unimplemented part of PR 121. It does not handle documentation (README) revisions. I found there were other effects from recent updates, so I'll file a separate PR for that.

ajnelson-nist added a commit to ucoProject/UCO that referenced this pull request Feb 28, 2022
UCO CP-100 is the first proposal to make use of shapes of a severity
other than the default `sh:Violation`.  This patch allows an affirmative
SHACL conformance result with all non-Violation-level validation
results.

The flag used on `pyshacl` is `--allow-warnings`.  At the time of this
patch, `--allow-infos` is implemented, but not yet released (see pySHACL
PR 127).

The tests for semi-open vocabularies are accordingly revised to move the
Info-level validation results into the PASS sample file.

The Make-managed validation results files are regenerated in this patch.

References:
* [OC-12] (CP-100) UCO's idea of "Open vocabulary" does not agree with
  its implementation with owl:oneOf
* RDFLib/pySHACL#127

Signed-off-by: Alex Nelson <[email protected]>
@ashleysommer ashleysommer merged commit 1db6f10 into RDFLib:master Mar 12, 2022
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.

2 participants