Skip to content

Commit

Permalink
ISSUE-103: Switched to sh:equals, sh:notEquals, sh:lessThan, sh:lessT…
Browse files Browse the repository at this point in the history
…hanOrEquals
  • Loading branch information
HolgerKnublauch committed Jan 9, 2016
1 parent 7ab1a5e commit 5e2434a
Show file tree
Hide file tree
Showing 6 changed files with 216 additions and 220 deletions.
16 changes: 6 additions & 10 deletions data-shapes-test-suite/tests/features/core/equal-001.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -22,47 +22,43 @@ ex:MyShape
sh:scopeNode ex:InvalidResource2 ;
sh:scopeNode ex:InvalidResource3 ;
sh:scopeNode ex:InvalidResource4 ;
sh:constraint [
a sh:EqualConstraint ;
sh:predicate1 ex:property1 ;
sh:predicate2 ex:property2 ;
sh:property [
sh:predicate ex:property1 ;
sh:equals ex:property2 ;
]
.

# Instances -------------------------------------------------------------------

ex:property1 a rdf:Property .
ex:property2 a rdf:Property .

ex:ValidResource1
sh:nodeShape ex:MyShape ;
ex:property1 "A" ;
ex:property2 "A" ;
.

ex:ValidResource2
sh:nodeShape ex:MyShape ;
ex:property1 "A" ;
ex:property1 "B" ;
ex:property2 "A" ;
ex:property2 "B" ;
.

ex:InvalidResource1
sh:nodeShape ex:MyShape ;
ex:property1 "A" ;
ex:property2 "B" ;
.

ex:InvalidResource2
sh:nodeShape ex:MyShape ;
ex:property1 "A" ;
.

ex:InvalidResource3
sh:nodeShape ex:MyShape ;
ex:property2 "A" ;
.

ex:InvalidResource4
sh:nodeShape ex:MyShape ;
ex:property1 "A" ;
ex:property1 "B" ;
ex:property2 "A" ;
Expand Down
10 changes: 6 additions & 4 deletions data-shapes-test-suite/tests/features/core/lessThan-001.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@ ex:MyShape
sh:scopeNode ex:InvalidResource1 ;
sh:scopeNode ex:InvalidResource2 ;
sh:scopeNode ex:InvalidResource3 ;
sh:constraint [
a sh:LessThanConstraint ;
sh:predicate1 ex:property1 ;
sh:predicate2 ex:property2 ;
sh:property [
sh:predicate ex:property1 ;
sh:lessThan ex:property2 ;
]
.

# Instances -------------------------------------------------------------------

ex:property1 a rdf:Property .
ex:property2 a rdf:Property .

ex:ValidResource1
ex:property1 4 ;
ex:property2 6 ;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,17 @@ ex:MyShape
sh:scopeNode ex:ValidResource3 ;
sh:scopeNode ex:InvalidResource1 ;
sh:scopeNode ex:InvalidResource2 ;
sh:constraint [
a sh:LessThanOrEqualConstraint ;
sh:predicate1 ex:property1 ;
sh:predicate2 ex:property2 ;
]
sh:property [
sh:predicate ex:property1 ;
sh:lessThanOrEquals ex:property2 ;
]
.

# Instances -------------------------------------------------------------------

ex:property1 a rdf:Property .
ex:property2 a rdf:Property .

ex:ValidResource1
ex:property1 4 ;
ex:property2 6 ;
Expand Down
4 changes: 2 additions & 2 deletions data-shapes-test-suite/tests/features/core/manifest.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
sh:severity sh:Violation ;
sh:focusNode ex:InvalidResource1 ;
sh:subject ex:InvalidResource1 ;
sh:predicate ex:property2 ;
sh:predicate ex:property1 ;
sh:object "B" ;
] ;
mf:result [
Expand All @@ -299,7 +299,7 @@
sh:severity sh:Violation ;
sh:focusNode ex:InvalidResource3 ;
sh:subject ex:InvalidResource3 ;
sh:predicate ex:property2 ;
sh:predicate ex:property1 ;
sh:object "A" ;
] ;
mf:result [
Expand Down
10 changes: 6 additions & 4 deletions data-shapes-test-suite/tests/features/core/notEqual-001.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,17 @@ ex:MyShape
sh:scopeNode ex:ValidResource2 ;
sh:scopeNode ex:InvalidResource1 ;
sh:scopeNode ex:InvalidResource2 ;
sh:constraint [
a sh:NotEqualConstraint ;
sh:predicate1 ex:property1 ;
sh:predicate2 ex:property2 ;
sh:property [
sh:predicate ex:property1 ;
sh:notEquals ex:property2 ;
]
.

# Instances -------------------------------------------------------------------

ex:property1 a rdf:Property .
ex:property2 a rdf:Property .

ex:ValidResource1
ex:property1 "A" ;
ex:property2 "B" ;
Expand Down
Loading

0 comments on commit 5e2434a

Please sign in to comment.