-
Notifications
You must be signed in to change notification settings - Fork 163
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
eeeb28f
commit df36528
Showing
50 changed files
with
219 additions
and
1 deletion.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
...shacl/src/test/resources/test-cases/qualifiedShape/maxCountString/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,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:person1 a ex:Person; | ||
ex:name "en val"@en, "whatever", "other". | ||
} | ||
|
26 changes: 26 additions & 0 deletions
26
...hacl/src/test/resources/test-cases/qualifiedShape/maxCountString/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,26 @@ | ||
@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:shapesGraph rdf4j:SHACLShapeGraph; | ||
sh:focusNode ex:person1; | ||
sh:resultPath ex:name; | ||
sh:resultSeverity sh:Violation; | ||
sh:sourceConstraintComponent sh:QualifiedMaxCountConstraintComponent; | ||
sh:sourceShape [ a sh:PropertyShape; | ||
sh:path ex:name; | ||
sh:qualifiedMaxCount 1; | ||
sh:qualifiedValueShape [ a sh:NodeShape; | ||
sh:datatype xsd:string | ||
] | ||
] | ||
] . |
9 changes: 9 additions & 0 deletions
9
...rc/test/resources/test-cases/qualifiedShape/maxCountString/invalid/case2/initialData.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,9 @@ | ||
@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#> . | ||
|
||
ex:person1 a ex:Person ; | ||
ex:name "en val"@en, "whatever" . |
22 changes: 22 additions & 0 deletions
22
...shacl/src/test/resources/test-cases/qualifiedShape/maxCountString/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,22 @@ | ||
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 { | ||
GRAPH ex:graph2 { | ||
ex:person2 ex:change ?entity_iri . | ||
} | ||
?entity_iri ex:name "NONE (string) value updated 2", "NONE (string) value updated 3". | ||
} WHERE { | ||
VALUES ?entity_iri { | ||
ex:person1 | ||
} | ||
?entity_iri rdf:type ?entity_iri_rdf_type__0 . | ||
|
||
FILTER (?entity_iri_rdf_type__0 = ex:Person) | ||
BIND ('LangStringUniq' as ?entity_iri_ignore__1) . | ||
} | ||
|
26 changes: 26 additions & 0 deletions
26
...hacl/src/test/resources/test-cases/qualifiedShape/maxCountString/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,26 @@ | ||
@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:shapesGraph rdf4j:SHACLShapeGraph; | ||
sh:focusNode ex:person1; | ||
sh:resultPath ex:name; | ||
sh:resultSeverity sh:Violation; | ||
sh:sourceConstraintComponent sh:QualifiedMaxCountConstraintComponent; | ||
sh:sourceShape [ a sh:PropertyShape; | ||
sh:path ex:name; | ||
sh:qualifiedMaxCount 1; | ||
sh:qualifiedValueShape [ a sh:NodeShape; | ||
sh:datatype xsd:string | ||
] | ||
] | ||
] . |
9 changes: 9 additions & 0 deletions
9
...rc/test/resources/test-cases/qualifiedShape/maxCountString/invalid/case3/initialData.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,9 @@ | ||
@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#> . | ||
|
||
ex:person1 a ex:Person ; | ||
ex:name "en val"@en, "whatever" . |
11 changes: 11 additions & 0 deletions
11
...shacl/src/test/resources/test-cases/qualifiedShape/maxCountString/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,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:person1 ex:name "other". | ||
} | ||
|
26 changes: 26 additions & 0 deletions
26
...hacl/src/test/resources/test-cases/qualifiedShape/maxCountString/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,26 @@ | ||
@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:shapesGraph rdf4j:SHACLShapeGraph; | ||
sh:focusNode ex:person1; | ||
sh:resultPath ex:name; | ||
sh:resultSeverity sh:Violation; | ||
sh:sourceConstraintComponent sh:QualifiedMaxCountConstraintComponent; | ||
sh:sourceShape [ a sh:PropertyShape; | ||
sh:path ex:name; | ||
sh:qualifiedMaxCount 1; | ||
sh:qualifiedValueShape [ a sh:NodeShape; | ||
sh:datatype xsd:string | ||
] | ||
] | ||
] . |
17 changes: 17 additions & 0 deletions
17
core/sail/shacl/src/test/resources/test-cases/qualifiedShape/maxCountString/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,17 @@ | ||
@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#> . | ||
|
||
rdf4j:SHACLShapeGraph { | ||
ex:PersonShape a sh:NodeShape; | ||
sh:targetClass ex:Person; | ||
sh:property [ | ||
sh:path ex:name; | ||
sh:qualifiedValueShape [sh:datatype xsd:string ; ] ; | ||
sh:qualifiedMaxCount 1 ; | ||
] . | ||
} |
12 changes: 12 additions & 0 deletions
12
...l/shacl/src/test/resources/test-cases/qualifiedShape/maxCountString/valid/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,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:person1 a ex:Person; | ||
ex:name "en val"@en, "whatever" . | ||
} | ||
|
12 changes: 12 additions & 0 deletions
12
.../shacl/src/test/resources/test-cases/qualifiedShape/maxCountString/valid/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,12 @@ | ||
@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 true . |
11 changes: 11 additions & 0 deletions
11
...l/shacl/src/test/resources/test-cases/qualifiedShape/maxCountString/valid/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,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:person1 ex:name "en val"@en, "whatever" . | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
...l/shacl/src/test/resources/test-cases/qualifiedShape/maxCountString/valid/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,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:person1 a ex:Person. | ||
} | ||
|
12 changes: 12 additions & 0 deletions
12
.../shacl/src/test/resources/test-cases/qualifiedShape/maxCountString/valid/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,12 @@ | ||
@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 true . |
File renamed without changes.