// dataset is used for a read transaction.
// An application can have other Datasets, in the same JVM,
// tied to the same TDB database performing read or write
// transactions concurrently.
dataset.begin(ReadWrite.READ) ;
try
{
// Do some queries
String sparqlQueryString1 = "SELECT (count(*) AS ?count) { ?s ?p ?o }" ;
execQuery(sparqlQueryString1, dataset) ;