Skip to content

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
@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.

3 participants