/** * Load results as a SPARQLResult. If the results are a model, no conversion * to a result set is attempted here. */ public SPARQLResult getResults() { if ( resultFile == null ) return null ; ResultsFormat format = ResultsFormat.guessSyntax(resultFile) ; if ( ResultsFormat.isRDFGraphSyntax(format) ) { Model m = FileManager.get().loadModel(resultFile) ; return new SPARQLResult(m) ; } if ( ResultsFormat.isDatasetSyntax(format) ) { Dataset d = RDFDataMgr.loadDataset(resultFile) ; return new SPARQLResult(d) ; } // Attempt to handle as a resulset or boolean result.s SPARQLResult x = ResultSetFactory.result(resultFile) ; return x ; }