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

case_validate: Default inference flag to None rather than "none" #123

Merged
merged 1 commit into from
Aug 23, 2023

Conversation

ajnelson-nist
Copy link
Member

Defaulting to the string "none" has a functional consequence in downstream pySHACL operations, as encoded at the time of this writing (pySHACL version 0.23.0). inference in the pyshacl.validate(...) arguments is propagated down two code paths that both impact the validation operation, but that use different default values. The --metashacl (SHACL-SHACL validation graph for reviewing shape syntax)- aligned code path defaults to rdfs inference, and the Validator class defaults to the string "none".

Defaulting to the string `"none"` has a functional consequence in
downstream pySHACL operations, as encoded at the time of this writing
(pySHACL version 0.23.0).  `inference` in the `pyshacl.validate(...)`
arguments is propagated down two code paths that both impact the
validation operation, but that use different default values.  The
`--metashacl` (SHACL-SHACL validation graph for reviewing shape syntax)-
aligned code path defaults to `rdfs` inference, and the `Validator`
class defaults to the string `"none"`.

Signed-off-by: Alex Nelson <[email protected]>
@ajnelson-nist ajnelson-nist added the bug Something isn't working label Aug 21, 2023
@ajnelson-nist ajnelson-nist changed the title case_validate: Default to None rather than "none" case_validate: Default inference flag to None rather than "none" Aug 21, 2023
@ajnelson-nist ajnelson-nist added this to the 0.12.0 milestone Aug 21, 2023
@ajnelson-nist ajnelson-nist mentioned this pull request Aug 21, 2023
@ajnelson-nist ajnelson-nist marked this pull request as ready for review August 23, 2023 12:31
@ajnelson-nist ajnelson-nist requested a review from a team as a code owner August 23, 2023 12:31
@kchason kchason merged commit 85cf1d8 into develop Aug 23, 2023
2 checks passed
@kchason kchason deleted the BugFix-case_validate-inference-default branch August 23, 2023 12:33
ajnelson-nist added a commit that referenced this pull request Aug 23, 2023
…n "none"

This is a continuation of PR 123.

References:
* #123

Signed-off-by: Alex Nelson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants