Skip to content

Commit 09e98a3

Browse files
committed
GH-5153 reduced default threshold for using SPARQL based validation of sh:maxCount to sh:maxCount=1 or below
1 parent 0963f6f commit 09e98a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/sail/shacl/src/main/java/org/eclipse/rdf4j/sail/shacl/ast/constraintcomponents/MaxCountConstraintComponent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public class MaxCountConstraintComponent extends AbstractConstraintComponent {
5454
// Performance degrades quickly as the maxCount increases when using a SPARQL Validation Approach. The default is 5,
5555
// but it can be tuned using the system property below.
5656
private static final String SPARQL_VALIDATION_APPROACH_LIMIT_PROPERTY = "org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.MaxCountConstraintComponent.sparqlValidationApproachLimit";
57-
private static final long SPARQL_VALIDATION_APPROACH_LIMIT = System
58-
.getProperty(SPARQL_VALIDATION_APPROACH_LIMIT_PROPERTY) == null ? 5
57+
public static long SPARQL_VALIDATION_APPROACH_LIMIT = System
58+
.getProperty(SPARQL_VALIDATION_APPROACH_LIMIT_PROPERTY) == null ? 1
5959
: Long.parseLong(System.getProperty(SPARQL_VALIDATION_APPROACH_LIMIT_PROPERTY));
6060

6161
private final long maxCount;

0 commit comments

Comments
 (0)