Skip to content

Commit 611baab

Browse files
committed
GH-5676 shacl sail customizable inference
1 parent d47155f commit 611baab

2 files changed

Lines changed: 13 additions & 18 deletions

File tree

  • core/sail/shacl/src/test/resources/test-cases/or/nodeKindMinLength/invalid/case4

core/sail/shacl/src/test/resources/test-cases/or/nodeKindMinLength/invalid/case4/query2.rq

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ INSERT {
1616
ex:validPerson1 ex:iriOrMinLength5String [].
1717

1818
}
19-
WHERE{?a ?b ?c.}
19+
WHERE{
20+
21+
ex:validPerson1 ex:iriOrMinLength5String "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis id elementum turpis. Suspendisse metus.".
22+
23+
}
2024

2125

core/sail/shacl/src/test/resources/test-cases/or/nodeKindMinLength/invalid/case4/report.ttl

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,13 @@
1616
sh:resultPath ex:iriOrMinLength5String;
1717
sh:resultSeverity sh:Violation;
1818
sh:sourceConstraintComponent sh:OrConstraintComponent;
19-
sh:sourceShape _:5089a376325a403b926b5c31d5e95e7215198;
20-
sh:value []
21-
], [ a sh:ValidationResult;
22-
rsx:shapesGraph rdf4j:SHACLShapeGraph;
23-
sh:focusNode ex:validPerson1;
24-
sh:resultPath ex:iriOrMinLength5String;
25-
sh:resultSeverity sh:Violation;
26-
sh:sourceConstraintComponent sh:OrConstraintComponent;
27-
sh:sourceShape _:5089a376325a403b926b5c31d5e95e7215198;
19+
sh:sourceShape [ a sh:PropertyShape;
20+
sh:or ([ a sh:NodeShape;
21+
sh:nodeKind sh:IRI
22+
] [ a sh:NodeShape;
23+
sh:minLength 100
24+
]);
25+
sh:path ex:iriOrMinLength5String
26+
];
2827
sh:value []
2928
] .
30-
31-
_:5089a376325a403b926b5c31d5e95e7215198 a sh:PropertyShape;
32-
sh:or ([ a sh:NodeShape;
33-
sh:nodeKind sh:IRI
34-
] [ a sh:NodeShape;
35-
sh:minLength 100
36-
]);
37-
sh:path ex:iriOrMinLength5String .

0 commit comments

Comments
 (0)