Skip to content

Commit

Permalink
Spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
stkenny committed Jul 26, 2024
1 parent af714ce commit a5febd4
Showing 1 changed file with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ public VirtuosoRemoteQueryExecutor(String sparqlEndpointUrl, String defaultGraph
public ResultSet sparql(String sparql) {
// we use QueryEngineHTTP to skip query validation as Virtuoso
// needs non-standardised extensions and will not pass ARQ validation
QueryExecutionHTTPBuilder qBuilder = QueryExecutionHTTPBuilder.service(sparqlEndpointUrl);
qBuilder.addDefaultGraphURI(defaultGraphUri);
qBuilder.queryString(sparql);
QueryExecutionHTTP qExec = qBuilder.build();
ResultSet results = null;
try {
ResultSet res = qExec.execSelect();
results = ResultSetFactory.copyResults(res);
} finally {
qExec.close();
}
QueryExecutionHTTPBuilder qBuilder = QueryExecutionHTTPBuilder.service(sparqlEndpointUrl);
qBuilder.addDefaultGraphURI(defaultGraphUri);
qBuilder.queryString(sparql);
QueryExecutionHTTP qExec = qBuilder.build();
ResultSet results = null;
try {
ResultSet res = qExec.execSelect();
results = ResultSetFactory.copyResults(res);
} finally {
qExec.close();
}

return results;
}
Expand Down

0 comments on commit a5febd4

Please sign in to comment.