File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed
tests/case_utils/case_validate/cli Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,14 @@ def main() -> None:
122
122
default = "none" ,
123
123
help = '(As with pyshacl CLI) Choose a type of inferencing to run against the Data Graph before validating. Default is "none".' ,
124
124
)
125
+ parser .add_argument (
126
+ "-m" ,
127
+ "--metashacl" ,
128
+ dest = "metashacl" ,
129
+ action = "store_true" ,
130
+ default = False ,
131
+ help = "(As with pyshacl CLI) Validate the SHACL Shapes graph against the shacl-shacl Shapes Graph before validating the Data Graph." ,
132
+ )
125
133
parser .add_argument (
126
134
"-o" ,
127
135
"--output" ,
@@ -170,6 +178,7 @@ def main() -> None:
170
178
shacl_graph = ontology_graph ,
171
179
ont_graph = ontology_graph ,
172
180
inference = args .inference ,
181
+ meta_shacl = args .metashacl ,
173
182
abort_on_first = args .abort ,
174
183
allow_infos = True if args .allow_infos else False ,
175
184
allow_warnings = True if args .allow_warnings else False ,
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ files_to_generate := \
41
41
format_unspecified_output_txt.txt \
42
42
format_unspecified_output_unspecified.txt \
43
43
split_data_graph_PASS.txt \
44
- split_data_graph_XFAIL.txt
44
+ split_data_graph_XFAIL.txt \
45
+ thing_metashacl_PASS.txt
45
46
46
47
all : \
47
48
$(files_to_generate)
@@ -216,3 +217,17 @@ split_data_graph_XFAIL.txt: \
216
217
> _$@ \
217
218
; rc=$$? ; test 1 -eq $$rc
218
219
mv _$@ $@
220
+
221
+ thing_metashacl_PASS.txt : \
222
+ $(tests_srcdir)/.venv.done.log \
223
+ $(top_srcdir)/.ontology.done.log \
224
+ $(top_srcdir)/case_utils/case_validate/__init__.py \
225
+ $(top_srcdir)/case_utils/ontology/__init__.py \
226
+ thing.ttl
227
+ rm -f _$@
228
+ source $(tests_srcdir)/venv/bin/activate \
229
+ && case_validate \
230
+ --metashacl \
231
+ thing.ttl \
232
+ > _$@
233
+ mv _$@ $@
Original file line number Diff line number Diff line change
1
+ @prefix owl: <http://www.w3.org/2002/07/owl#> .
2
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
3
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
4
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
5
+
6
+ []
7
+ a owl:Thing ;
8
+ .
9
+
You can’t perform that action at this time.
0 commit comments