File tree Expand file tree Collapse file tree 3 files changed +32
-22
lines changed
shacl12-test-suite/tests/core Expand file tree Collapse file tree 3 files changed +32
-22
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,12 @@ ex:TestClass
17
17
rdf:type sh:NodeShape ;
18
18
rdfs:label " Test class" ;
19
19
rdfs:subClassOf rdfs:Resource ;
20
- sh:node [
21
- sh:class ex:OtherClass ;
22
- ] ;
20
+ # Only using an IRI Expression here because Core doesn't define interesting node expressions
21
+ sh:node ex:TestNodeShape ;
22
+ .
23
+ ex:TestNodeShape
24
+ rdf:type sh:NodeShape ;
25
+ sh:class ex:OtherClass ;
23
26
.
24
27
ex:ValidInstance
25
28
rdf:type ex:OtherClass ;
@@ -46,6 +49,7 @@ ex:ValidInstance
46
49
rdf:type sh:ValidationResult ;
47
50
sh:focusNode ex:InvalidInstance ;
48
51
sh:resultSeverity sh:Violation ;
52
+ sh:sourceConstraint ex:TestNodeShape ;
49
53
sh:sourceConstraintComponent sh:NodeConstraintComponent ;
50
54
sh:sourceShape ex:TestClass ;
51
55
sh:value ex:InvalidInstance ;
Original file line number Diff line number Diff line change @@ -12,6 +12,20 @@ ex:Anon
12
12
rdf:type ex:Person ;
13
13
ex:firstName " Anon" ;
14
14
.
15
+ ex:AssignedToShape ;
16
+ rdf:type sh:NodeShape ;
17
+ rdfs:comment " All assignees must have an email and a last name." ;
18
+ sh:property [
19
+ sh:path ex:email ;
20
+ sh:maxCount 1 ;
21
+ sh:minCount 1 ;
22
+ ] ;
23
+ sh:property [
24
+ sh:path ex:lastName ;
25
+ sh:maxCount 1 ;
26
+ sh:minCount 1 ;
27
+ ] ;
28
+ .
15
29
ex:Issue
16
30
rdf:type rdfs:Class ;
17
31
rdf:type sh:NodeShape ;
@@ -23,19 +37,8 @@ ex:Issue
23
37
ex:Issue-assignedTo
24
38
sh:path ex:assignedTo ;
25
39
sh:class ex:Person ;
26
- sh:node [
27
- rdfs:comment " All assignees must have an email and a last name." ;
28
- sh:property [
29
- sh:path ex:email ;
30
- sh:maxCount 1 ;
31
- sh:minCount 1 ;
32
- ] ;
33
- sh:property [
34
- sh:path ex:lastName ;
35
- sh:maxCount 1 ;
36
- sh:minCount 1 ;
37
- ] ;
38
- ] ;
40
+ # Only using an IRI Expression here because Core doesn't define interesting node expressions
41
+ sh:node ex:AssignedToShape ;
39
42
.
40
43
ex:Issue-submittedBy
41
44
sh:path ex:submittedBy ;
@@ -104,6 +107,7 @@ ex:Person
104
107
sh:focusNode ex:Issue_1 ;
105
108
sh:resultPath ex:assignedTo ;
106
109
sh:resultSeverity sh:Violation ;
110
+ sh:sourceConstraint ex:AssignedToShape ;
107
111
sh:sourceConstraintComponent sh:NodeConstraintComponent ;
108
112
sh:sourceShape ex:Issue-assignedTo ;
109
113
sh:value ex:Anon ;
Original file line number Diff line number Diff line change @@ -20,15 +20,17 @@ ex:APGARObservationShape-related
20
20
sh:qualifiedValueShape [
21
21
sh:property [
22
22
sh:path ex:related_target ;
23
- sh:node [
24
- sh:property [
25
- sh:path ex:reference ;
26
- sh:hasValue ex:something ;
27
- ] ;
28
- ] ;
23
+ sh:node ex:NestedNodeShape ;
29
24
] ;
30
25
] ;
31
26
.
27
+ ex:NestedNodeShape
28
+ rdf:type sh:NodeShape ;
29
+ sh:property [
30
+ sh:path ex:reference ;
31
+ sh:hasValue ex:something ;
32
+ ] ;
33
+ .
32
34
ex:Observation1
33
35
rdf:type ex:Observation ;
34
36
ex:related [
You can’t perform that action at this time.
0 commit comments