Skip to content

Commit cb7b0ae

Browse files
committed
add debug, trace severity level tests
1 parent 98d3f4c commit cb7b0ae

File tree

3 files changed

+88
-0
lines changed

3 files changed

+88
-0
lines changed

shacl12-test-suite/tests/core/misc/manifest.ttl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313
mf:include <severity-001.ttl> ;
1414
mf:include <severity-002.ttl> ;
1515
mf:include <severity-003.ttl> ;
16+
mf:include <severity-004.ttl> ;
17+
mf:include <severity-005.ttl> ;
1618
.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@prefix dash: <http://datashapes.org/dash#> .
2+
@prefix ex: <http://example.com/ns#> .
3+
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
4+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
5+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
6+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
7+
@prefix sh: <http://www.w3.org/ns/shacl#> .
8+
@prefix sht: <http://www.w3.org/ns/shacl-test#> .
9+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
10+
11+
ex:TestShape
12+
rdf:type sh:NodeShape ;
13+
sh:datatype xsd:integer ;
14+
sh:severity sh:Debug ;
15+
sh:targetNode "Hello" ;
16+
.
17+
<>
18+
rdf:type mf:Manifest ;
19+
mf:entries (
20+
<severity-004>
21+
) ;
22+
.
23+
<severity-004>
24+
rdf:type sht:Validate ;
25+
rdfs:label "Test of sh:severity sh:Debug 004" ;
26+
mf:action [
27+
sht:dataGraph <> ;
28+
sht:shapesGraph <> ;
29+
] ;
30+
mf:result [
31+
rdf:type sh:ValidationReport ;
32+
sh:conforms "true"^^xsd:boolean ;
33+
sh:result [
34+
rdf:type sh:ValidationResult ;
35+
sh:focusNode "Hello" ;
36+
sh:resultSeverity sh:Debug ;
37+
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
38+
sh:sourceShape ex:TestShape ;
39+
sh:value "Hello" ;
40+
] ;
41+
] ;
42+
mf:status sht:approved ;
43+
.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
@prefix dash: <http://datashapes.org/dash#> .
2+
@prefix ex: <http://example.com/ns#> .
3+
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
4+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
5+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
6+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
7+
@prefix sh: <http://www.w3.org/ns/shacl#> .
8+
@prefix sht: <http://www.w3.org/ns/shacl-test#> .
9+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
10+
11+
ex:TestShape
12+
rdf:type sh:NodeShape ;
13+
sh:datatype xsd:integer ;
14+
sh:severity sh:Trace ;
15+
sh:targetNode "Hello" ;
16+
.
17+
<>
18+
rdf:type mf:Manifest ;
19+
mf:entries (
20+
<severity-005>
21+
) ;
22+
.
23+
<severity-005>
24+
rdf:type sht:Validate ;
25+
rdfs:label "Test of sh:severity sh:Trace 005" ;
26+
mf:action [
27+
sht:dataGraph <> ;
28+
sht:shapesGraph <> ;
29+
] ;
30+
mf:result [
31+
rdf:type sh:ValidationReport ;
32+
sh:conforms "true"^^xsd:boolean ;
33+
sh:result [
34+
rdf:type sh:ValidationResult ;
35+
sh:focusNode "Hello" ;
36+
sh:resultSeverity sh:Trace ;
37+
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
38+
sh:sourceShape ex:TestShape ;
39+
sh:value "Hello" ;
40+
] ;
41+
] ;
42+
mf:status sht:approved ;
43+
.

0 commit comments

Comments
 (0)