Class StatementMatcher.StableRandomVariableProvider

  • Enclosing class:
    StatementMatcher

    public static class StatementMatcher.StableRandomVariableProvider
    extends java.lang.Object
    • Field Detail

      • BASE

        private static final java.lang.String BASE
      • max

        private static volatile int max
      • prefix

        private final java.lang.String prefix
      • counter

        private int counter
    • Constructor Detail

      • StableRandomVariableProvider

        public StableRandomVariableProvider()
      • StableRandomVariableProvider

        public StableRandomVariableProvider​(java.lang.String prefix)
    • Method Detail

      • normalize

        public static java.lang.String normalize​(java.lang.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 java.lang.String normalizeRange​(java.lang.String inputQuery,
                                                       int lowest,
                                                       int highest)