public class TarqlQueryExecution
extends java.lang.Object
TarqlQuery over a particular CSV file.
Results can be delivered written into a Model or as an
iterator over triples.| Modifier and Type | Field and Description |
|---|---|
private CSVTable |
table |
private TarqlQuery |
tq |
| Constructor and Description |
|---|
TarqlQueryExecution(InputStreamSource source,
CSVOptions options,
TarqlQuery query)
Sets up a new query execution.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close CSV table input.
|
void |
exec(com.hp.hpl.jena.rdf.model.Model model)
Execute all queries over the table.
|
com.hp.hpl.jena.query.ResultSet |
execSelect()
Execute a select over the model.
|
java.util.Iterator<com.hp.hpl.jena.graph.Triple> |
execTriples() |
com.hp.hpl.jena.query.Query |
getFirstQuery() |
private void |
modifyQuery(com.hp.hpl.jena.query.Query query,
com.hp.hpl.jena.sparql.algebra.Table table)
Modifies a query so that it operates onto a table.
|
private final CSVTable table
private final TarqlQuery tq
public TarqlQueryExecution(InputStreamSource source, CSVOptions options, TarqlQuery query)
source - The input CSV file.options - Configuration options for the CSV file.query - The input query.private void modifyQuery(com.hp.hpl.jena.query.Query query,
com.hp.hpl.jena.sparql.algebra.Table table)
query - Original query; will be modified in placetable - Data table to be added into the querypublic void exec(com.hp.hpl.jena.rdf.model.Model model)
throws java.io.IOException
model - Input model.java.io.IOExceptionpublic java.util.Iterator<com.hp.hpl.jena.graph.Triple> execTriples()
throws java.io.IOException
java.io.IOExceptionpublic com.hp.hpl.jena.query.Query getFirstQuery()
public com.hp.hpl.jena.query.ResultSet execSelect()
public void close()