Skip to content

Commit 00f1360

Browse files
committed
Default case_validate.validate inference parameter to None rather than "none"
This is a continuation of PR 123. References: * #123 Signed-off-by: Alex Nelson <alexander.nelson@nist.gov>
1 parent 6f9b6c9 commit 00f1360

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

case_utils/case_validate/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def validate(
6464
case_version: Optional[str] = None,
6565
supplemental_graphs: Optional[List[str]] = None,
6666
abort_on_first: bool = False,
67-
inference: Optional[str] = "none",
67+
inference: Optional[str] = None,
6868
**kwargs: Any,
6969
) -> ValidationResult:
7070
"""
@@ -75,7 +75,7 @@ def validate(
7575
be used.
7676
:param supplemental_graphs: The supplemental graphs to use. If None, no supplemental graphs will be used.
7777
:param abort_on_first: Whether to abort on the first validation error.
78-
:param inference: The type of inference to use. If "none", no inference will be used.
78+
: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.
7979
:param **kwargs: The keyword arguments to pass to the underlying pyshacl.validate function.
8080
:return: The validation result object containing the defined properties.
8181
"""

0 commit comments

Comments
 (0)