public class VarGenerator extends Object
?x1, ?x2, ?x3, ...
Constructor and Description |
---|
VarGenerator()
A variable generator with the default prefix
s , i.e. |
VarGenerator(String base) |
Modifier and Type | Method and Description |
---|---|
org.apache.jena.sparql.core.Var |
newVar()
Generate a new variable of form
${base}${cnt} and increment the counter. |
void |
reset()
Reset the counter.
|
public VarGenerator(String base)
base
- the base variable name, which will be used as prefix, e.g. x
will result in variables
?x1, ?x2, ?x3, ...
public VarGenerator()
s
, i.e. ?s1, ?s2, ?s3, ...
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2019 Jens Lehmann