Skip to content

Commit

Permalink
Default case_validate.validate inference parameter to None rather tha…
Browse files Browse the repository at this point in the history
…n "none"

This is a continuation of PR 123.

References:
* #123

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Aug 23, 2023
1 parent 6f9b6c9 commit 00f1360
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions case_utils/case_validate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def validate(
case_version: Optional[str] = None,
supplemental_graphs: Optional[List[str]] = None,
abort_on_first: bool = False,
inference: Optional[str] = "none",
inference: Optional[str] = None,
**kwargs: Any,
) -> ValidationResult:
"""
Expand All @@ -75,7 +75,7 @@ def validate(
be used.
:param supplemental_graphs: The supplemental graphs to use. If None, no supplemental graphs will be used.
:param abort_on_first: Whether to abort on the first validation error.
:param inference: The type of inference to use. If "none", no inference will be used.
:param inference: The type of inference to use. If "none" (type str), no inference will be used. If None (type NoneType), pyshacl defaults will be used. Note that at the time of this writing (pySHACL 0.23.0), pyshacl defaults are no inferencing for the data graph, and RDFS inferencing for the SHACL graph, which for case_utils.validate includes the SHACL and OWL graphs.
:param **kwargs: The keyword arguments to pass to the underlying pyshacl.validate function.
:return: The validation result object containing the defined properties.
"""
Expand Down

0 comments on commit 00f1360

Please sign in to comment.