Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions case_utils/case_validate/__init__.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -86,10 +86,20 @@ def main() -> None:
action="store_true",
help="(As with pyshacl CLI) Abort on first invalid data.",
)
parser.add_argument(
"--allow-info",
"--allow-infos",
dest="allow_infos",
action="store_true",
default=False,
help="(As with pyshacl CLI) Shapes marked with severity of Info will not cause result to be invalid.",
)
parser.add_argument(
"-w",
"--allow-warning",
"--allow-warnings",
action="store_true",
dest="allow_warnings",
help="(As with pyshacl CLI) Shapes marked with severity of Warning or Info will not cause result to be invalid.",
)
parser.add_argument(
Expand DownExpand Up@@ -161,6 +171,7 @@ def main() -> None:
ont_graph=ontology_graph,
inference=args.inference,
abort_on_first=args.abort,
allow_infos=True if args.allow_infos else False,
allow_warnings=True if args.allow_warnings else False,
debug=True if args.debug else False,
do_owl_imports=True if args.imports else False,
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -48,7 +48,7 @@ all: \
rm -f __$@ _$@
source $(tests_srcdir)/venv/bin/activate \
&& case_validate \
--allow-warnings \
--allow-infos \
--debug \
--format turtle \
--output __$@ \
Expand Down
2 changes: 1 addition & 1 deletion tests/case_utils/case_validate/uco_test_examples/Makefile
Original file line numberDiff line numberDiff line change
Expand Up@@ -76,7 +76,7 @@ all: \
$(top_srcdir)/case_utils/ontology/__init__.py
source $(tests_srcdir)/venv/bin/activate \
&& case_validate \
--allow-warnings \
--allow-infos \
--debug \
--format turtle \
$< \
Expand Down