Skip to content

Commit eb3bdd3

Browse files
Merge pull request #104 from ashleysommer/patch-1
Fix personexample.ttl
2 parents a5582ac + 0c29652 commit eb3bdd3

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

data-shapes-test-suite/tests/core/complex/personexample.ttl

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,8 @@ ex:PersonShape
2828
sh:ignoredProperties (
2929
rdf:type
3030
) ;
31-
sh:property [
32-
sh:path ex:ssn ;
33-
sh:datatype xsd:string ;
34-
sh:maxCount 1 ;
35-
sh:pattern "^\\d{3}-\\d{2}-\\d{4}$" ;
36-
] ;
37-
sh:property [
38-
sh:path ex:worksFor ;
39-
sh:class ex:Company ;
40-
sh:nodeKind sh:IRI ;
41-
] ;
31+
sh:property _:b61064 ;
32+
sh:property _:b60054 ;
4233
sh:property [
4334
sh:path [
4435
sh:inversePath ex:worksFor ;
@@ -47,6 +38,17 @@ ex:PersonShape
4738
] ;
4839
sh:targetClass ex:Person ;
4940
.
41+
_:b61064
42+
sh:path ex:ssn ;
43+
sh:datatype xsd:string ;
44+
sh:maxCount 1 ;
45+
sh:pattern "^\\d{3}-\\d{2}-\\d{4}$"
46+
.
47+
_:b60054
48+
sh:path ex:worksFor ;
49+
sh:class ex:Company ;
50+
sh:nodeKind sh:IRI
51+
.
5052
<>
5153
rdf:type mf:Manifest ;
5254
mf:entries (
@@ -95,7 +97,7 @@ ex:PersonShape
9597
sh:resultPath ex:worksFor ;
9698
sh:resultSeverity sh:Violation ;
9799
sh:sourceConstraintComponent sh:ClassConstraintComponent ;
98-
sh:sourceShape [] ;
100+
sh:sourceShape _:b60054 ;
99101
sh:value ex:UntypedCompany ;
100102
] ;
101103
] ;

0 commit comments

Comments
 (0)