public class BatchReverseConverter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<java.lang.String> |
attrList |
(package private) java.util.Map<java.lang.String,java.lang.Integer> |
attrStatistics |
private ReverseConfiguration |
currentConfig |
(package private) org.apache.jena.query.Dataset |
dataset |
(package private) java.lang.String |
dir |
(package private) java.lang.String[] |
inputFiles |
(package private) org.apache.jena.rdf.model.Model |
model |
(package private) Assistant |
myAssistant |
int |
numRecs |
int |
numTriples |
int |
numValues |
(package private) java.util.List<java.util.List<java.lang.String>> |
results |
private long |
t_start |
Constructor and Description |
---|
BatchReverseConverter(ReverseConfiguration config,
java.lang.String[] inFiles)
Constructs a ReverseConverter object.
|
Modifier and Type | Method and Description |
---|---|
void |
closeModel()
Closes the graph model and releases all system resources.
|
void |
createModel()
Creates a graph that can store RDF triples and enable SPARQL queries.
|
void |
queryModel(java.lang.String sparql,
ReverseConverter conv)
Submits a SPARQL query and evaluates it against this model.
|
private void |
updateStatistics(java.lang.String attrKey)
Update statistics (currently only a counter) of values transformed for a particular attribute
|
Assistant myAssistant
java.lang.String[] inputFiles
org.apache.jena.query.Dataset dataset
java.lang.String dir
org.apache.jena.rdf.model.Model model
java.util.List<java.util.List<java.lang.String>> results
java.util.List<java.lang.String> attrList
java.util.Map<java.lang.String,java.lang.Integer> attrStatistics
private ReverseConfiguration currentConfig
public int numRecs
public int numValues
public int numTriples
private long t_start
public BatchReverseConverter(ReverseConfiguration config, java.lang.String[] inFiles)
config
- User-specified configuration for the reverse transformation process.inFiles
- Array of input file namespublic void createModel()
public void closeModel()
public void queryModel(java.lang.String sparql, ReverseConverter conv)
sparql
- A SELECT query in SPARQL against the RDF graph. Syntax must comply will the ontology of the model.conv
- A ReverseConverter object that will apply the reverse transformation against the results of the query.private void updateStatistics(java.lang.String attrKey)
attrKey
- The name of the attribute