{
InputStream in = null ;
try {
in = FileManager.get().open(filenameOrURI) ;
if ( in == null )
throw new NotFoundException(filenameOrURI) ;
}
catch (NotFoundException ex) { throw new NotFoundException("File not found: "+filenameOrURI) ; }
SPARQLResult x = null ;
if ( format.equals(ResultsFormat.FMT_RS_JSON) )
return JSONInput.make(in, GraphFactory.makeDefaultModel()) ;