Skip to content

Commit

Permalink
Made rdf.sparqlConstructRemote() properly return an IRDFStore
Browse files Browse the repository at this point in the history
  • Loading branch information
samuell committed Sep 17, 2010
1 parent 1d48fac commit a3e287a
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -394,6 +394,7 @@ public IRDFStore sparqlConstructRemote(
monitor = new NullProgressMonitor();

Model sparqlOutput = null;
JenaModel rdfStore = null;

monitor.beginTask("Sparqling the remote service..", 100);
Query query = QueryFactory.create(sparqlQueryString);
Expand All @@ -403,11 +404,12 @@ public IRDFStore sparqlConstructRemote(
try {
sparqlOutput = qexec.execConstruct();
monitor.worked(20);
rdfStore = new JenaModel( sparqlOutput );
} finally {
qexec.close();
monitor.done();
}
IRDFStore rdfStore = (IRDFStore) sparqlOutput;
return rdfStore;
}

Expand Down

0 comments on commit a3e287a

Please sign in to comment.