Class StatementMatcher.StableRandomVariableProvider
java.lang.Object
org.eclipse.rdf4j.sail.shacl.ast.StatementMatcher.StableRandomVariableProvider
- Enclosing class:
StatementMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrent()next()static Stringnormalize(String inputQuery, List<? extends StatementMatcher.Variable> protectedVars, List<StatementMatcher> union) Normalize the use of random variables in a SPARQL query so that the numbering of queries starts at 0 in increments of one.
-
Constructor Details
-
StableRandomVariableProvider
public StableRandomVariableProvider() -
StableRandomVariableProvider
-
-
Method Details
-
normalize
public static String normalize(String inputQuery, List<? extends StatementMatcher.Variable> protectedVars, List<StatementMatcher> union) 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 normalizedunion-- Returns:
- a normalized query string
-
next
-
current
-