public class RandomValueGenerator
extends com.google.common.collect.UnmodifiableIterator<org.openrdf.model.Value>
next() is called the value probabilites
are used to decide if a URI, bnode, or a literal will be generated. The literal probabilities are used to decide what kind of literal is generated. Only plain, integer,
float, double, or dateTime literals will be generated. Setting any probability top 0 will disable generation of that type.| Constructor and Description |
|---|
RandomValueGenerator()
Creates a value generator with a single namespace.
|
RandomValueGenerator(int nameSpaceCount)
Creates a value generator with the requested number of namespaces.
|
RandomValueGenerator(long randomSeed,
int nameSpaceCount)
Creates a value generator with the given seed and the requested number of namespaces.
|
RandomValueGenerator(long randomSeed,
String[] nameSpaces)
Creates a value generator with the given seed and namespaces.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getBnodeProbability() |
float |
getDateProbability() |
float |
getDoubleProbability() |
float |
getFloatProbability() |
float |
getIntProbability() |
float |
getLiteralProbability() |
int |
getMaxBnodeLength() |
int |
getMaxLiteralLength() |
int |
getMaxLocalNameLength() |
int |
getMinBnodeLength() |
int |
getMinLiteralLength() |
int |
getMinLocalNameLength() |
String[] |
getNameSpaces() |
Random |
getRandom() |
float |
getStringProbability() |
float |
getURIProbability() |
boolean |
hasNext() |
boolean |
isBuiltinBnode() |
static void |
main(String[] args) |
org.openrdf.model.Value |
next() |
org.openrdf.model.BNode |
nextBnode() |
org.openrdf.model.Literal |
nextLiteral() |
org.openrdf.model.Literal |
nextLiteral(int length) |
org.openrdf.model.Resource |
nextResource() |
org.openrdf.model.IRI |
nextURI() |
void |
setBuiltinBnode(boolean builtinBnode) |
void |
setLiteralProbability(float stringProbability,
float intProbability,
float floatProbability,
float doubleProbability,
float dateProbability) |
void |
setMaxBnodeLength(int maxBnodeLength) |
void |
setMaxLiteralLength(int maxLiteralLength) |
void |
setMaxLocalNameLength(int maxLocalNameLength) |
void |
setMinBnodeLength(int minBnodeLength) |
void |
setMinLiteralLength(int minLiteralLength) |
void |
setMinLocalNameLength(int minLocalNameLength) |
void |
setRandom(Random random) |
void |
setValueProbability(float uriProbability,
float bnodeProbability,
float literalProbability) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic RandomValueGenerator()
public RandomValueGenerator(int nameSpaceCount)
public RandomValueGenerator(long randomSeed,
int nameSpaceCount)
public RandomValueGenerator(long randomSeed,
String[] nameSpaces)
public String[] getNameSpaces()
public boolean hasNext()
public org.openrdf.model.Value next()
public org.openrdf.model.Resource nextResource()
public org.openrdf.model.Literal nextLiteral()
public org.openrdf.model.Literal nextLiteral(int length)
public org.openrdf.model.IRI nextURI()
public org.openrdf.model.BNode nextBnode()
public Random getRandom()
public void setRandom(Random random)
public int getMinLiteralLength()
public void setMinLiteralLength(int minLiteralLength)
public int getMaxLiteralLength()
public void setMaxLiteralLength(int maxLiteralLength)
public int getMinLocalNameLength()
public void setMinLocalNameLength(int minLocalNameLength)
public int getMaxLocalNameLength()
public void setMaxLocalNameLength(int maxLocalNameLength)
public int getMinBnodeLength()
public void setMinBnodeLength(int minBnodeLength)
public int getMaxBnodeLength()
public void setMaxBnodeLength(int maxBnodeLength)
public boolean isBuiltinBnode()
public void setBuiltinBnode(boolean builtinBnode)
public float getLiteralProbability()
public float getBnodeProbability()
public float getURIProbability()
public void setValueProbability(float uriProbability,
float bnodeProbability,
float literalProbability)
public void setLiteralProbability(float stringProbability,
float intProbability,
float floatProbability,
float doubleProbability,
float dateProbability)
public float getIntProbability()
public float getFloatProbability()
public float getDoubleProbability()
public float getDateProbability()
public float getStringProbability()
public static void main(String[] args)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.