Class StatementMatcher.StableRandomVariableProvider

java.lang.Object
org.eclipse.rdf4j.sail.shacl.ast.StatementMatcher.StableRandomVariableProvider
Enclosing class:
StatementMatcher

public static class StatementMatcher.StableRandomVariableProvider extends Object
  • Field Details

    • BASE

      private static final String BASE
    • max

      private static volatile int max
    • prefix

      private final String prefix
    • counter

      private int counter
  • Constructor Details

    • StableRandomVariableProvider

      public StableRandomVariableProvider()
    • StableRandomVariableProvider

      public StableRandomVariableProvider(String prefix)
  • Method Details

    • normalize

      public static String normalize(String inputQuery)
      Normalize the use of random variables in a SPARQL query so that the numbering of queries starts at 0 in increments of one.
      Parameters:
      inputQuery - the query string that should be normalized
      Returns:
      a normalized query string
    • normalizeRange

      private static String normalizeRange(String inputQuery, int lowest, int highest)
    • next

    • current

      public StatementMatcher.Variable<Value> current()