-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4167f4d
commit 5ce21f0
Showing
36 changed files
with
349 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
core/sail/shacl/src/test/resources/test-cases/nodeKind/oneOrMorePath/invalid/case3/query1.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
PREFIX ex: <http://example.com/ns#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
INSERT DATA { | ||
ex:validPerson1 a ex:Person . | ||
|
||
|
||
ex:p2 ex:knows2 ex:p3. | ||
ex:p3 ex:knows3 "1234". | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
core/sail/shacl/src/test/resources/test-cases/nodeKind/oneOrMorePath/invalid/case3/query2.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
PREFIX ex: <http://example.com/ns#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
INSERT DATA { | ||
ex:validPerson1 ex:knows1 ex:p2. | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
.../sail/shacl/src/test/resources/test-cases/nodeKind/oneOrMorePath/invalid/case3/report.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@prefix ex: <http://example.com/ns#> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix rsx: <http://rdf4j.org/shacl-extensions#> . | ||
@prefix rdf4j: <http://rdf4j.org/schema/rdf4j#> . | ||
|
||
[] a sh:ValidationReport; | ||
rdf4j:truncated false; | ||
sh:conforms false; | ||
sh:result [ a sh:ValidationResult; | ||
rsx:dataGraph rdf4j:nil; | ||
rsx:shapesGraph rdf4j:nil; | ||
sh:focusNode ex:validPerson1; | ||
sh:resultPath _:2efb3d13c1264a1e82f94864ebbc900614999; | ||
sh:resultSeverity sh:Violation; | ||
sh:sourceConstraintComponent sh:NodeKindConstraintComponent; | ||
sh:sourceShape [ a sh:PropertyShape; | ||
sh:nodeKind sh:BlankNodeOrIRI; | ||
sh:path _:2efb3d13c1264a1e82f94864ebbc900614999 | ||
]; | ||
sh:value "1234" | ||
] . | ||
|
||
_:2efb3d13c1264a1e82f94864ebbc900614999 sh:oneOrMorePath (ex:knows1 ex:knows2 ex:knows3) . |
14 changes: 14 additions & 0 deletions
14
core/sail/shacl/src/test/resources/test-cases/nodeKind/oneOrMorePath/invalid/case4/query1.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
PREFIX ex: <http://example.com/ns#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
INSERT DATA { | ||
ex:validPerson1 a ex:Person ; | ||
ex:knows1 ex:p2. | ||
|
||
ex:p2 ex:knows2 ex:p3. | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
core/sail/shacl/src/test/resources/test-cases/nodeKind/oneOrMorePath/invalid/case4/query2.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
PREFIX ex: <http://example.com/ns#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
INSERT DATA { | ||
ex:p3 ex:knows3 "1234". | ||
} |
27 changes: 27 additions & 0 deletions
27
.../sail/shacl/src/test/resources/test-cases/nodeKind/oneOrMorePath/invalid/case4/report.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@prefix ex: <http://example.com/ns#> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix rsx: <http://rdf4j.org/shacl-extensions#> . | ||
@prefix rdf4j: <http://rdf4j.org/schema/rdf4j#> . | ||
|
||
[] a sh:ValidationReport; | ||
rdf4j:truncated false; | ||
sh:conforms false; | ||
sh:result [ a sh:ValidationResult; | ||
rsx:dataGraph rdf4j:nil; | ||
rsx:shapesGraph rdf4j:nil; | ||
sh:focusNode ex:validPerson1; | ||
sh:resultPath _:2efb3d13c1264a1e82f94864ebbc900614999; | ||
sh:resultSeverity sh:Violation; | ||
sh:sourceConstraintComponent sh:NodeKindConstraintComponent; | ||
sh:sourceShape [ a sh:PropertyShape; | ||
sh:nodeKind sh:BlankNodeOrIRI; | ||
sh:path _:2efb3d13c1264a1e82f94864ebbc900614999 | ||
]; | ||
sh:value "1234" | ||
] . | ||
|
||
_:2efb3d13c1264a1e82f94864ebbc900614999 sh:oneOrMorePath (ex:knows1 ex:knows2 ex:knows3) . |
14 changes: 14 additions & 0 deletions
14
core/sail/shacl/src/test/resources/test-cases/nodeKind/oneOrMorePath/invalid/case5/query1.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
PREFIX ex: <http://example.com/ns#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
INSERT DATA { | ||
ex:validPerson1 ex:knows1 ex:p2. | ||
|
||
ex:p2 ex:knows2 ex:p3. | ||
ex:p3 ex:knows3 "1234". | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
core/sail/shacl/src/test/resources/test-cases/nodeKind/oneOrMorePath/invalid/case5/query2.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
PREFIX ex: <http://example.com/ns#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
INSERT DATA { | ||
ex:validPerson1 a ex:Person . | ||
|
||
} |
27 changes: 27 additions & 0 deletions
27
.../sail/shacl/src/test/resources/test-cases/nodeKind/oneOrMorePath/invalid/case5/report.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@prefix ex: <http://example.com/ns#> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix rsx: <http://rdf4j.org/shacl-extensions#> . | ||
@prefix rdf4j: <http://rdf4j.org/schema/rdf4j#> . | ||
|
||
[] a sh:ValidationReport; | ||
rdf4j:truncated false; | ||
sh:conforms false; | ||
sh:result [ a sh:ValidationResult; | ||
rsx:dataGraph rdf4j:nil; | ||
rsx:shapesGraph rdf4j:nil; | ||
sh:focusNode ex:validPerson1; | ||
sh:resultPath _:2efb3d13c1264a1e82f94864ebbc900614999; | ||
sh:resultSeverity sh:Violation; | ||
sh:sourceConstraintComponent sh:NodeKindConstraintComponent; | ||
sh:sourceShape [ a sh:PropertyShape; | ||
sh:nodeKind sh:BlankNodeOrIRI; | ||
sh:path _:2efb3d13c1264a1e82f94864ebbc900614999 | ||
]; | ||
sh:value "1234" | ||
] . | ||
|
||
_:2efb3d13c1264a1e82f94864ebbc900614999 sh:oneOrMorePath (ex:knows1 ex:knows2 ex:knows3) . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...shacl/src/test/resources/test-cases/nodeKind/oneOrMorePathComplex/invalid/case1/query1.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
PREFIX ex: <http://example.com/ns#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
INSERT DATA { | ||
ex:validPerson1 a ex:Person ; | ||
ex:knows [ ex:knows [ ex:knows "1234" ]]. | ||
|
||
|
||
} |
27 changes: 27 additions & 0 deletions
27
...hacl/src/test/resources/test-cases/nodeKind/oneOrMorePathComplex/invalid/case1/report.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@prefix ex: <http://example.com/ns#> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix rsx: <http://rdf4j.org/shacl-extensions#> . | ||
@prefix rdf4j: <http://rdf4j.org/schema/rdf4j#> . | ||
|
||
[] a sh:ValidationReport; | ||
rdf4j:truncated false; | ||
sh:conforms false; | ||
sh:result [ a sh:ValidationResult; | ||
rsx:dataGraph rdf4j:nil; | ||
rsx:shapesGraph rdf4j:nil; | ||
sh:focusNode ex:validPerson1; | ||
sh:resultPath _:e6bc97aad3a0460c9710ad6f22a9570d15019; | ||
sh:resultSeverity sh:Violation; | ||
sh:sourceConstraintComponent sh:NodeKindConstraintComponent; | ||
sh:sourceShape [ a sh:PropertyShape; | ||
sh:nodeKind sh:BlankNodeOrIRI; | ||
sh:path _:e6bc97aad3a0460c9710ad6f22a9570d15019 | ||
]; | ||
sh:value "1234" | ||
] . | ||
|
||
_:e6bc97aad3a0460c9710ad6f22a9570d15019 sh:oneOrMorePath ex:knows . |
10 changes: 10 additions & 0 deletions
10
...shacl/src/test/resources/test-cases/nodeKind/oneOrMorePathComplex/invalid/case2/query1.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
PREFIX ex: <http://example.com/ns#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
INSERT DATA { | ||
ex:validPerson1 ex:knows [ ex:knows [ ex:knows "1234" ]]. | ||
} |
12 changes: 12 additions & 0 deletions
12
...shacl/src/test/resources/test-cases/nodeKind/oneOrMorePathComplex/invalid/case2/query2.rq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
PREFIX ex: <http://example.com/ns#> | ||
PREFIX owl: <http://www.w3.org/2002/07/owl#> | ||
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | ||
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | ||
PREFIX sh: <http://www.w3.org/ns/shacl#> | ||
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
|
||
INSERT DATA { | ||
ex:validPerson1 a ex:Person . | ||
|
||
|
||
} |
27 changes: 27 additions & 0 deletions
27
...hacl/src/test/resources/test-cases/nodeKind/oneOrMorePathComplex/invalid/case2/report.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@prefix ex: <http://example.com/ns#> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix rsx: <http://rdf4j.org/shacl-extensions#> . | ||
@prefix rdf4j: <http://rdf4j.org/schema/rdf4j#> . | ||
|
||
[] a sh:ValidationReport; | ||
rdf4j:truncated false; | ||
sh:conforms false; | ||
sh:result [ a sh:ValidationResult; | ||
rsx:dataGraph rdf4j:nil; | ||
rsx:shapesGraph rdf4j:nil; | ||
sh:focusNode ex:validPerson1; | ||
sh:resultPath _:e6bc97aad3a0460c9710ad6f22a9570d15035; | ||
sh:resultSeverity sh:Violation; | ||
sh:sourceConstraintComponent sh:NodeKindConstraintComponent; | ||
sh:sourceShape [ a sh:PropertyShape; | ||
sh:nodeKind sh:BlankNodeOrIRI; | ||
sh:path _:e6bc97aad3a0460c9710ad6f22a9570d15035 | ||
]; | ||
sh:value "1234" | ||
] . | ||
|
||
_:e6bc97aad3a0460c9710ad6f22a9570d15035 sh:oneOrMorePath ex:knows . |
18 changes: 18 additions & 0 deletions
18
core/sail/shacl/src/test/resources/test-cases/nodeKind/oneOrMorePathComplex/shacl.trig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@prefix ex: <http://example.com/ns#> . | ||
@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix sh: <http://www.w3.org/ns/shacl#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix rdf4j: <http://rdf4j.org/schema/rdf4j#> . | ||
|
||
{ | ||
ex:PersonShape a sh:NodeShape; | ||
sh:targetClass ex:Person; | ||
sh:property [ | ||
sh:path [ sh:oneOrMorePath ex:knows ]; | ||
sh:nodeKind sh:BlankNodeOrIRI | ||
] . | ||
rdf4j:nil sh:shapesGraph rdf4j:nil. | ||
|
||
} |
Oops, something went wrong.