Package org.eclipse.rdf4j.sail.shacl.ast
Class StatementMatcher.StableRandomVariableProvider
- java.lang.Object
-
- org.eclipse.rdf4j.sail.shacl.ast.StatementMatcher.StableRandomVariableProvider
-
- Enclosing class:
- StatementMatcher
public static class StatementMatcher.StableRandomVariableProvider extends Object
-
-
Constructor Summary
Constructors Constructor Description StableRandomVariableProvider()StableRandomVariableProvider(String prefix)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StatementMatcher.Variable<org.eclipse.rdf4j.model.Value>current()StatementMatcher.Variable<org.eclipse.rdf4j.model.Value>next()static Stringnormalize(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.
-
-
-
Constructor Detail
-
StableRandomVariableProvider
public StableRandomVariableProvider()
-
StableRandomVariableProvider
public StableRandomVariableProvider(String prefix)
-
-
Method Detail
-
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
-
next
public StatementMatcher.Variable<org.eclipse.rdf4j.model.Value> next()
-
current
public StatementMatcher.Variable<org.eclipse.rdf4j.model.Value> current()
-
-