Skip to content

Commit fdb9ef0

Browse files
Move reifier test cases (#424)
* Moving sh:reifierShape tests from node to property because they are using sh:property * Also changed namespace to new convention * Fixed missing resultPath * Declared sh:reificationRequired as optional, fixed other test case
1 parent 9a431d7 commit fdb9ef0

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
mf:include <or-001.ttl> ;
4343
mf:include <pattern-001.ttl> ;
4444
mf:include <pattern-002.ttl> ;
45-
mf:include <reifierShape-001.ttl> ;
46-
mf:include <reifierShape-002.ttl> ;
4745
mf:include <uniqueMembers-001.ttl> ;
4846
mf:include <xone-001.ttl> ;
4947
mf:include <xone-duplicate.ttl> ;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
mf:include <qualifiedMinCountDisjoint-001.ttl> ;
4848
mf:include <qualifiedValueShape-001.ttl> ;
4949
mf:include <qualifiedValueShapesDisjoint-001.ttl> ;
50+
mf:include <reifierShape-001.ttl> ;
51+
mf:include <reifierShape-002.ttl> ;
5052
mf:include <singleLine-001.ttl> ;
5153
mf:include <uniqueLang-001.ttl> ;
5254
mf:include <uniqueLang-002.ttl> ;

shacl12-test-suite/tests/core/node/reifierShape-001.ttl renamed to shacl12-test-suite/tests/core/property/reifierShape-001.ttl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@prefix dash: <http://datashapes.org/dash#> .
2-
@prefix ex: <http://datashapes.org/sh/tests/core/node/reifierShape-001.test#> .
2+
@prefix ex: <http://example.com/ns#> .
33
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
44
@prefix owl: <http://www.w3.org/2002/07/owl#> .
55
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@@ -56,6 +56,7 @@ ex:ValidResource1
5656
sh:result [
5757
rdf:type sh:ValidationResult ;
5858
sh:focusNode ex:InvalidResource1 ;
59+
sh:resultPath ex:propertyA ;
5960
sh:resultSeverity sh:Violation ;
6061
sh:sourceConstraintComponent sh:ReifierShapeConstraintComponent ;
6162
sh:sourceShape ex:TestShape-propertyA ;

shacl12-test-suite/tests/core/node/reifierShape-002.ttl renamed to shacl12-test-suite/tests/core/property/reifierShape-002.ttl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@prefix dash: <http://datashapes.org/dash#> .
2-
@prefix ex: <http://datashapes.org/sh/tests/core/node/reifierShape-002.test#> .
2+
@prefix ex: <http://example.com/ns#> .
33
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
44
@prefix owl: <http://www.w3.org/2002/07/owl#> .
55
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@@ -54,6 +54,7 @@ ex:ValidResource1
5454
sh:result [
5555
rdf:type sh:ValidationResult ;
5656
sh:focusNode ex:InvalidResource1 ;
57+
sh:resultPath ex:propertyA ;
5758
sh:resultSeverity sh:Violation ;
5859
sh:sourceConstraintComponent sh:ReifierShapeConstraintComponent ;
5960
sh:sourceShape ex:TestShape-propertyA ;

shacl12-vocabularies/shacl.ttl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1234,6 +1234,7 @@ sh:ReifierShapeConstraintComponent-reificationRequired
12341234
a sh:Parameter ;
12351235
sh:path sh:reificationRequired ;
12361236
sh:datatype xsd:boolean ;
1237+
sh:optional true ;
12371238
rdfs:isDefinedBy sh: .
12381239

12391240
sh:reifierShape

0 commit comments

Comments
 (0)