Skip to content

Commit

Permalink
GH-5153 reduced default threshold for using SPARQL based validation o…
Browse files Browse the repository at this point in the history
…f sh:maxCount to sh:maxCount=1 or below
  • Loading branch information
hmottestad committed Oct 18, 2024
1 parent 0963f6f commit 09e98a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public class MaxCountConstraintComponent extends AbstractConstraintComponent {
// Performance degrades quickly as the maxCount increases when using a SPARQL Validation Approach. The default is 5,
// but it can be tuned using the system property below.
private static final String SPARQL_VALIDATION_APPROACH_LIMIT_PROPERTY = "org.eclipse.rdf4j.sail.shacl.ast.constraintcomponents.MaxCountConstraintComponent.sparqlValidationApproachLimit";
private static final long SPARQL_VALIDATION_APPROACH_LIMIT = System
.getProperty(SPARQL_VALIDATION_APPROACH_LIMIT_PROPERTY) == null ? 5
public static long SPARQL_VALIDATION_APPROACH_LIMIT = System
.getProperty(SPARQL_VALIDATION_APPROACH_LIMIT_PROPERTY) == null ? 1
: Long.parseLong(System.getProperty(SPARQL_VALIDATION_APPROACH_LIMIT_PROPERTY));

private final long maxCount;
Expand Down

0 comments on commit 09e98a3

Please sign in to comment.